@Extension(ordinal=-100.0) public static class SystemAuthorizationStrategy.DescriptorImpl extends AuthorizeProjectStrategyDescriptor
| Constructor and Description |
|---|
SystemAuthorizationStrategy.DescriptorImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
configureFromGlobalSecurity(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject js)
Invoked when configuration is submitted from "Configure Global Security" as a child of
ProjectQueueItemAuthenticator. |
hudson.util.FormValidation |
doCheckPermitReconfiguration(boolean value) |
String |
getDisplayName() |
boolean |
isEnabledByDefault() |
boolean |
isJob(Object it)
Tests if an object is a
Job |
boolean |
isPermitReconfiguration()
Gets the flag to mark where changing a job using this strategy requires administrator permissions.
|
SystemAuthorizationStrategy |
newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
void |
setPermitReconfiguration(boolean permitReconfiguration)
Sets the flag to mark where changing a job using this strategy requires administrator permissions.
|
getConfigFile, getDescriptorsForGlobalSecurityConfigPage, getGlobalSecurityConfigPage, isApplicableToGlobaladdHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic SystemAuthorizationStrategy.DescriptorImpl()
public String getDisplayName()
getDisplayName in class hudson.model.Descriptor<AuthorizeProjectStrategy>Descriptor.getDisplayName()public boolean isEnabledByDefault()
isEnabledByDefault in class AuthorizeProjectStrategyDescriptorpublic boolean isPermitReconfiguration()
true if non-admins are allowed to modify jobs that are using this strategy.public void setPermitReconfiguration(boolean permitReconfiguration)
permitReconfiguration - true if non-admins are allowed to modify jobs that are using this strategy.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean isJob(Object it)
Jobit - the object.true if and only if the supplied object is a Jobpublic void configureFromGlobalSecurity(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject js)
throws hudson.model.Descriptor.FormException
ProjectQueueItemAuthenticator.
You should call save() by yourself.configureFromGlobalSecurity in class AuthorizeProjectStrategyDescriptorhudson.model.Descriptor.FormExceptionpublic SystemAuthorizationStrategy newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws hudson.model.Descriptor.FormException
newInstance in class hudson.model.Descriptor<AuthorizeProjectStrategy>hudson.model.Descriptor.FormExceptionpublic hudson.util.FormValidation doCheckPermitReconfiguration(@QueryParameter
boolean value)
Copyright © 2016. All rights reserved.