Uses of Class
org.jenkinsci.plugins.scriptsecurity.scripts.ApprovalContext
Package
Description
-
Uses of ApprovalContext in org.jenkinsci.plugins.scriptsecurity.sandbox.groovy
Modifier and TypeMethodDescriptionSecureGroovyScript.configuring
(ApprovalContext context) To be called in your ownDataBoundConstructor
when storing the field of this type.GroovySandbox.withApprovalContext
(ApprovalContext context) Specify an approval context. -
Uses of ApprovalContext in org.jenkinsci.plugins.scriptsecurity.scripts
Modifier and TypeMethodDescriptionstatic ApprovalContext
ApprovalContext.create()
Creates a new context with no information.ScriptApproval.PendingThing.getContext()
ApprovalContext.withCurrentUser()
Creates a context with the user associated with the current thread.Associates an item with this approval, used only for display purposes.ApprovalContext.withItemAsKey
(Item item) Associates an item with this approval for display, as well as setting a unique key based on theItem.getFullName()
which would cancel any previous approvals for the same item.Associates a unique key with this approval.Creates a context with a specified user ID.Modifier and TypeMethodDescriptionScriptApproval.accessRejected
(RejectedAccessException x, ApprovalContext context) Deprecated.ScriptApproval.configuring
(String script, Language language, ApprovalContext context) Deprecated.ScriptApproval.configuring
(String script, Language language, ApprovalContext context, boolean approveIfAdmin) Used when someone is configuring a script.void
ScriptApproval.configuring
(ClasspathEntry entry, ApprovalContext context) Called when configuring a classpath entry.
GroovySandbox.enter()
.