Uses of Class
org.jenkinsci.plugins.scriptsecurity.scripts.ApprovalContext
-
Packages that use ApprovalContext Package Description org.jenkinsci.plugins.scriptsecurity.sandbox.groovy org.jenkinsci.plugins.scriptsecurity.scripts -
-
Uses of ApprovalContext in org.jenkinsci.plugins.scriptsecurity.sandbox.groovy
Methods in org.jenkinsci.plugins.scriptsecurity.sandbox.groovy with parameters of type ApprovalContext Modifier and Type Method Description SecureGroovyScript
SecureGroovyScript. configuring(ApprovalContext context)
To be called in your ownDataBoundConstructor
when storing the field of this type.GroovySandbox
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 ApprovalContext Modifier and Type Method Description static ApprovalContext
ApprovalContext. create()
Creates a new context with no information.ApprovalContext
ScriptApproval.PendingThing. getContext()
ApprovalContext
ApprovalContext. withCurrentUser()
Creates a context with the user associated with the current thread.ApprovalContext
ApprovalContext. withItem(Item item)
Associates an item with this approval, used only for display purposes.ApprovalContext
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.ApprovalContext
ApprovalContext. withKey(String key)
Associates a unique key with this approval.ApprovalContext
ApprovalContext. withUser(String user)
Creates a context with a specified user ID.Methods in org.jenkinsci.plugins.scriptsecurity.scripts with parameters of type ApprovalContext Modifier and Type Method Description RejectedAccessException
ScriptApproval. accessRejected(RejectedAccessException x, ApprovalContext context)
Deprecated.Unnecessary if usingGroovySandbox.enter()
.String
ScriptApproval. configuring(String script, Language language, ApprovalContext context)
Deprecated.String
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.
-