Class AuthorizeProjectStrategyDescriptor
- java.lang.Object
-
- hudson.model.Descriptor<AuthorizeProjectStrategy>
-
- org.jenkinsci.plugins.authorizeproject.AuthorizeProjectStrategyDescriptor
-
- Direct Known Subclasses:
AnonymousAuthorizationStrategy.DescriptorImpl
,SpecificUsersAuthorizationStrategy.DescriptorImpl
,SystemAuthorizationStrategy.DescriptorImpl
,TriggeringUsersAuthorizationStrategy.DescriptorImpl
public abstract class AuthorizeProjectStrategyDescriptor extends Descriptor<AuthorizeProjectStrategy>
BaseDescriptor
class forAuthorizeProjectStrategy
instances.
-
-
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 Modifier Constructor Description protected
AuthorizeProjectStrategyDescriptor()
protected
AuthorizeProjectStrategyDescriptor(Class<? extends AuthorizeProjectStrategy> clazz)
-
Method Summary
All Methods Static 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
.protected XmlFile
getConfigFile()
static List<AuthorizeProjectStrategyDescriptor>
getDescriptorsForGlobalSecurityConfigPage()
String
getGlobalSecurityConfigPage()
boolean
isApplicableToGlobal()
boolean
isEnabledByDefault()
-
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, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Constructor Detail
-
AuthorizeProjectStrategyDescriptor
protected AuthorizeProjectStrategyDescriptor()
-
AuthorizeProjectStrategyDescriptor
protected AuthorizeProjectStrategyDescriptor(Class<? extends AuthorizeProjectStrategy> clazz)
-
-
Method Detail
-
getConfigFile
protected final XmlFile getConfigFile()
- Overrides:
getConfigFile
in classDescriptor<AuthorizeProjectStrategy>
-
getGlobalSecurityConfigPage
public String getGlobalSecurityConfigPage()
- Returns:
- descriptors with configuration views in "Configure Global Security" as a child of
ProjectQueueItemAuthenticator
.
-
getDescriptorsForGlobalSecurityConfigPage
public static List<AuthorizeProjectStrategyDescriptor> getDescriptorsForGlobalSecurityConfigPage()
- Returns:
- descriptors to display page in "Configure Global Security" as a child of
ProjectQueueItemAuthenticator
.
-
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.- Throws:
Descriptor.FormException
-
isEnabledByDefault
public boolean isEnabledByDefault()
- Returns:
- this strategy can be enabled by default.
-
isApplicableToGlobal
public boolean isApplicableToGlobal()
- Returns:
- whether configurable for
GlobalQueueItemAuthenticator
- Since:
- 1.2.0
-
-