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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureFromGlobalSecurity
(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject js) Invoked when configuration is submitted from "Configure Global Security" as a child ofProjectQueueItemAuthenticator
.doCheckPermitReconfiguration
(boolean value) boolean
boolean
Tests if an object is aJob
boolean
Gets the flag to mark where changing a job using this strategy requires administrator permissions.newInstance
(org.kohsuke.stapler.StaplerRequest2 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, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, 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, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayName
in classDescriptor<AuthorizeProjectStrategy>
- Returns:
- the name shown in project configuration pages.
- See Also:
-
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
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.StaplerRequest2 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.StaplerRequest2 req, net.sf.json.JSONObject formData) throws Descriptor.FormException - Overrides:
newInstance
in classDescriptor<AuthorizeProjectStrategy>
- Throws:
Descriptor.FormException
-
doCheckPermitReconfiguration
-