public class AuthorizeProjectProperty
extends hudson.model.JobProperty<hudson.model.Job<?,?>>
| Modifier and Type | Class and Description |
|---|---|
static class |
AuthorizeProjectProperty.AuthorizationAction
The action that allows configuring a jobs authorization.
|
static class |
AuthorizeProjectProperty.DescriptorImpl
Descriptor for
AuthorizeProjectProperty. |
static class |
AuthorizeProjectProperty.TransientActionFactoryImpl
The action factory responsible for adding the
AuthorizeProjectProperty.AuthorizationAction. |
| Constructor and Description |
|---|
AuthorizeProjectProperty(AuthorizeProjectStrategy strategy)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
org.acegisecurity.Authentication |
authenticate(hudson.model.Queue.Item item)
Return the authorization for a build.
|
AuthorizeProjectStrategy |
getEnabledStrategy()
Gets the strategy if enabled or
null if not enabled. |
AuthorizeProjectStrategy |
getStrategy()
Gets the strategy.
|
hudson.model.JobProperty<?> |
reconfigure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject form) |
static void |
setStrategyCritical()
Ensure that deserialization failures in this field result in a failure to deserialize the job.
|
@DataBoundConstructor public AuthorizeProjectProperty(AuthorizeProjectStrategy strategy)
strategy - the strategypublic AuthorizeProjectStrategy getStrategy()
@CheckForNull public AuthorizeProjectStrategy getEnabledStrategy()
null if not enabled.null otherwise.public org.acegisecurity.Authentication authenticate(hudson.model.Queue.Item item)
item - the item in queue, which will be a build.AuthorizeProjectStrategy.authenticate(hudson.model.Job, hudson.model.Queue.Item)@Initializer(after=PLUGINS_STARTED) public static void setStrategyCritical()
public hudson.model.JobProperty<?> reconfigure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject form)
throws hudson.model.Descriptor.FormException
reconfigure in interface hudson.model.ReconfigurableDescribable<hudson.model.JobProperty<?>>reconfigure in class hudson.model.JobProperty<hudson.model.Job<?,?>>hudson.model.Descriptor.FormExceptionCopyright © 2016–2017. All rights reserved.