public class SystemAuthorizationStrategy extends AuthorizeProjectStrategy
ACL.SYSTEM. Using this strategy becomes important when
GlobalQueueItemAuthenticator
is forcing jobs to a user other than ACL.SYSTEM.| Modifier and Type | Class and Description |
|---|---|
static class |
SystemAuthorizationStrategy.DescriptorImpl
Our descriptor
|
| Constructor and Description |
|---|
SystemAuthorizationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
org.acegisecurity.Authentication |
authenticate(hudson.model.Job<?,?> job,
hudson.model.Queue.Item item)
Returns the
Authentication for the build. |
boolean |
equals(Object obj)
For now we are an object with no configurable fields, so strict instanceof establishes equality.
|
protected static SystemAuthorizationStrategy |
getCurrentStrategy(hudson.model.Job<?,?> job)
Return
SystemAuthorizationStrategy configured in a job. |
SystemAuthorizationStrategy.DescriptorImpl |
getDescriptor() |
boolean |
hasAuthorizationConfigurePermission(hudson.security.AccessControlled context)
Tests if the authorization can be configured by the current user.
|
int |
hashCode()
For now we are an object with no configurable fields, so return a fixed value.
|
boolean |
hasJobConfigurePermission(hudson.security.AccessControlled context)
Tests if the job can be reconfigured by the current user when this strategy is the configured strategy.
|
all, authenticate, checkAuthorizationConfigurePermission, checkJobConfigurePermission, readResolve@DataBoundConstructor public SystemAuthorizationStrategy()
public org.acegisecurity.Authentication authenticate(hudson.model.Job<?,?> job,
hudson.model.Queue.Item item)
Authentication for the build.authenticate in class AuthorizeProjectStrategyjob - the project to run.item - the item in queue, which will be a build.true if authentication was successfulprotected static SystemAuthorizationStrategy getCurrentStrategy(hudson.model.Job<?,?> job)
SystemAuthorizationStrategy configured in a job.job - the JobSystemAuthorizationStrategy or nullpublic final int hashCode()
public final boolean equals(Object obj)
equals in class Objectobj - the object to test equality with.true if and only if this is a equivalent SystemAuthorizationStrategy instance.public boolean hasJobConfigurePermission(hudson.security.AccessControlled context)
Jenkins.ADMINISTER permission skips this check.hasJobConfigurePermission in class AuthorizeProjectStrategycontext - the context of the jobtrue if and only if the current user is allowed to reconfigure the specified job.public boolean hasAuthorizationConfigurePermission(hudson.security.AccessControlled context)
Jenkins.ADMINISTER permission skips this check.hasAuthorizationConfigurePermission in class AuthorizeProjectStrategycontext - the context of the jobtrue if and only if the current user is allowed to configure this authorization.public SystemAuthorizationStrategy.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<AuthorizeProjectStrategy>getDescriptor in class AuthorizeProjectStrategyCopyright © 2016–2017. All rights reserved.