Class ApprovalListener
- java.lang.Object
-
- org.jenkinsci.plugins.scriptsecurity.scripts.ApprovalListener
-
- All Implemented Interfaces:
ExtensionPoint
public abstract class ApprovalListener extends Object implements ExtensionPoint
Receives notifications on approval-related events.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ApprovalListener()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
onApproved(String hash)
Called when a script is approved.void
onApprovedClasspathEntry(String hash, URL url)
Called when a classpath entry is approved.
-
-
-
Method Detail
-
onApproved
public abstract void onApproved(String hash)
Called when a script is approved.- Parameters:
hash
- an opaque token as inUnapprovedUsageException.getHash()
-
onApprovedClasspathEntry
public void onApprovedClasspathEntry(String hash, URL url)
Called when a classpath entry is approved.- Parameters:
hash
- an opaque token as inUnapprovedClasspathException.getHash()
url
- its location
-
-