public class AuthorizeProjectProperty extends JobProperty<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 . |
BuildStep.PublisherList
ExtensionPoint.LegacyInstancesAreScopedToHudson
owner
BUILDERS, PUBLISHERS
Constructor and Description |
---|
AuthorizeProjectProperty(AuthorizeProjectStrategy strategy)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
Authentication |
authenticate(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.
|
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.
|
getDescriptor, getJobAction, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, setOwner
@DataBoundConstructor public AuthorizeProjectProperty(AuthorizeProjectStrategy strategy)
strategy
- the strategypublic AuthorizeProjectStrategy getStrategy()
@CheckForNull public AuthorizeProjectStrategy getEnabledStrategy()
null
if not enabled.null
otherwise.public Authentication authenticate(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 JobProperty<?> reconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form) throws Descriptor.FormException
reconfigure
in interface ReconfigurableDescribable<JobProperty<?>>
reconfigure
in class JobProperty<Job<?,?>>
Descriptor.FormException
Copyright © 2016–2021. All rights reserved.