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
|
ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
SystemAuthorizationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
Authentication |
authenticate(Job<?,?> job,
Queue.Item item)
Returns the
Authentication for the build. |
protected static SystemAuthorizationStrategy |
getCurrentStrategy(Job<?,?> job)
Return
SystemAuthorizationStrategy configured in a job. |
SystemAuthorizationStrategy.DescriptorImpl |
getDescriptor() |
boolean |
hasAuthorizationConfigurePermission(AccessControlled context)
Tests if the authorization can be configured by the current user.
|
boolean |
hasJobConfigurePermission(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 Authentication authenticate(Job<?,?> job, 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(Job<?,?> job)
SystemAuthorizationStrategy configured in a job.job - the JobSystemAuthorizationStrategy or nullpublic boolean hasJobConfigurePermission(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(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 Describable<AuthorizeProjectStrategy>getDescriptor in class AuthorizeProjectStrategyCopyright © 2016–2021. All rights reserved.