Class SystemAuthorizationStrategy.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<AuthorizeProjectStrategy>
-
- org.jenkinsci.plugins.authorizeproject.AuthorizeProjectStrategyDescriptor
-
- org.jenkinsci.plugins.authorizeproject.strategy.SystemAuthorizationStrategy.DescriptorImpl
-
- Enclosing class:
- SystemAuthorizationStrategy
@Extension(ordinal=-100.0) public static class SystemAuthorizationStrategy.DescriptorImpl extends AuthorizeProjectStrategyDescriptor
Our descriptor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description DescriptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 ofProjectQueueItemAuthenticator
.FormValidation
doCheckPermitReconfiguration(boolean value)
String
getDisplayName()
boolean
isEnabledByDefault()
boolean
isJob(Object it)
Tests if an object is aJob
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.-
Methods inherited from class org.jenkinsci.plugins.authorizeproject.AuthorizeProjectStrategyDescriptor
getConfigFile, getDescriptorsForGlobalSecurityConfigPage, getGlobalSecurityConfigPage, isApplicableToGlobal
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<AuthorizeProjectStrategy>
- Returns:
- the name shown in project configuration pages.
- See Also:
Descriptor.getDisplayName()
-
isEnabledByDefault
public boolean isEnabledByDefault()
- Overrides:
isEnabledByDefault
in classAuthorizeProjectStrategyDescriptor
- Returns:
- this strategy can be enabled by default.
-
isPermitReconfiguration
public boolean isPermitReconfiguration()
Gets the flag to mark where changing a job using this strategy requires administrator permissions.- Returns:
true
if non-admins are allowed to modify jobs that are using this strategy.
-
setPermitReconfiguration
public void setPermitReconfiguration(boolean permitReconfiguration)
Sets the flag to mark where changing a job using this strategy requires administrator permissions.- Parameters:
permitReconfiguration
-true
if non-admins are allowed to modify jobs that are using this strategy.
-
isJob
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean isJob(Object it)
Tests if an object is aJob
- Parameters:
it
- the object.- Returns:
true
if and only if the supplied object is aJob
-
configureFromGlobalSecurity
public void configureFromGlobalSecurity(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject js) throws Descriptor.FormException
Invoked when configuration is submitted from "Configure Global Security" as a child ofProjectQueueItemAuthenticator
. You should call save() by yourself.- Overrides:
configureFromGlobalSecurity
in classAuthorizeProjectStrategyDescriptor
- Throws:
Descriptor.FormException
-
newInstance
public SystemAuthorizationStrategy newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException
- Overrides:
newInstance
in classDescriptor<AuthorizeProjectStrategy>
- Throws:
Descriptor.FormException
-
doCheckPermitReconfiguration
public FormValidation doCheckPermitReconfiguration(@QueryParameter boolean value)
-
-