Package | Description |
---|---|
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy | |
org.jenkinsci.plugins.scriptsecurity.scripts |
Modifier and Type | Method and Description |
---|---|
SecureGroovyScript |
SecureGroovyScript.configuring(ApprovalContext context)
To be called in your own
DataBoundConstructor when storing the field of this type. |
Modifier and Type | Method and 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(hudson.model.Item item)
Associates an item with this approval, used only for display purposes.
|
ApprovalContext |
ApprovalContext.withItemAsKey(hudson.model.Item item)
Associates an item with this approval for display, as well as setting a unique key
based on the
Item.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.
|
Modifier and Type | Method and Description |
---|---|
RejectedAccessException |
ScriptApproval.accessRejected(RejectedAccessException x,
ApprovalContext context)
To be called when a sandbox rejects access for a script not using manual approval.
|
void |
ScriptApproval.configuring(ClasspathEntry entry,
ApprovalContext context)
Called when configuring a classpath entry.
|
String |
ScriptApproval.configuring(String script,
Language language,
ApprovalContext context)
Used when someone is configuring a script.
|
Copyright © 2015. All rights reserved.