public abstract class AuthorizeProjectStrategy extends hudson.model.AbstractDescribableImpl<AuthorizeProjectStrategy> implements hudson.ExtensionPoint
| Constructor and Description |
|---|
AuthorizeProjectStrategy() |
| Modifier and Type | Method and Description |
|---|---|
static hudson.DescriptorExtensionList<AuthorizeProjectStrategy,hudson.model.Descriptor<AuthorizeProjectStrategy>> |
all() |
org.acegisecurity.Authentication |
authenticate(hudson.model.AbstractProject<?,?> project,
hudson.model.Queue.Item item)
Deprecated.
use
authenticate(hudson.model.Job, Queue.Item) instead. |
org.acegisecurity.Authentication |
authenticate(hudson.model.Job<?,?> project,
hudson.model.Queue.Item item)
Returns the
Authentication for the build. |
void |
checkAuthorizationConfigurePermission(hudson.security.AccessControlled context)
Checks that the authorization can be configured by the current user.
|
void |
checkJobConfigurePermission(hudson.security.AccessControlled context)
Checks that the job can be reconfigured by the current user when this strategy is the configured strategy.
|
AuthorizeProjectStrategyDescriptor |
getDescriptor() |
boolean |
hasAuthorizationConfigurePermission(hudson.security.AccessControlled context)
Tests if the authorization can be configured by the current user.
|
boolean |
hasJobConfigurePermission(hudson.security.AccessControlled context)
Tests if the job can be reconfigured by the current user when this strategy is the configured strategy.
|
protected Object |
readResolve()
If we are being deserialized outside of loading the initial jobs (or reloading) then we need to cross check
the strategy permissions to defend against somebody trying to push a configuration relating to a user other
than themselves.
|
public static hudson.DescriptorExtensionList<AuthorizeProjectStrategy,hudson.model.Descriptor<AuthorizeProjectStrategy>> all()
AuthorizeProjectStrategy.public org.acegisecurity.Authentication authenticate(hudson.model.Job<?,?> project,
hudson.model.Queue.Item item)
Authentication for the build.project - the project to run.item - the item in queue, which will be a build.true if authentication was successful@Deprecated public org.acegisecurity.Authentication authenticate(hudson.model.AbstractProject<?,?> project, hudson.model.Queue.Item item)
authenticate(hudson.model.Job, Queue.Item) instead.AbstractProject based version of authenticate(Job, Queue.Item).project - the project to run.item - the item in queue, which will be a build.true if authentication was successfulpublic AuthorizeProjectStrategyDescriptor getDescriptor()
getDescriptor in interface hudson.model.Describable<AuthorizeProjectStrategy>getDescriptor in class hudson.model.AbstractDescribableImpl<AuthorizeProjectStrategy>public final void checkJobConfigurePermission(hudson.security.AccessControlled context)
context - the context of the joborg.acegisecurity.AccessDeniedException - if the current user is not allowed to reconfigure the specified jobpublic boolean hasJobConfigurePermission(hudson.security.AccessControlled context)
Jenkins.ADMINISTER permission skips this check.context - the context of the jobtrue if and only if the current user is allowed to reconfigure the specified job.public final void checkAuthorizationConfigurePermission(hudson.security.AccessControlled context)
context - the context of the joborg.acegisecurity.AccessDeniedException - if the current user is not allowed to configure this authorizationpublic boolean hasAuthorizationConfigurePermission(hudson.security.AccessControlled context)
Jenkins.ADMINISTER permission skips this check.context - the context of the jobtrue if and only if the current user is allowed to configure this authorization.protected Object readResolve() throws ObjectStreamException
thisObjectStreamException - if the object cannot be deserialized.AuthorizeProjectProperty.setStrategyCritical()Copyright © 2016–2017. All rights reserved.