Uses of Class
org.jenkinsci.plugins.scriptsecurity.scripts.ApprovalContext
Packages that use ApprovalContext
Package
Description
-
Uses of ApprovalContext in org.jenkinsci.plugins.scriptsecurity.sandbox.groovy
Methods in org.jenkinsci.plugins.scriptsecurity.sandbox.groovy with parameters of type ApprovalContextModifier 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
Methods in org.jenkinsci.plugins.scriptsecurity.scripts that return ApprovalContextModifier 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.Methods in org.jenkinsci.plugins.scriptsecurity.scripts with parameters of type ApprovalContextModifier 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()
.