org.jenkinsci.plugins.authorizeproject
Class AuthorizeProjectStrategyDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<AuthorizeProjectStrategy>
      extended by org.jenkinsci.plugins.authorizeproject.AuthorizeProjectStrategyDescriptor
All Implemented Interfaces:
hudson.model.Saveable
Direct Known Subclasses:
AnonymousAuthorizationStrategy.DescriptorImpl, SpecificUsersAuthorizationStrategy.DescriptorImpl, TriggeringUsersAuthorizationStrategy.DescriptorImpl

public abstract class AuthorizeProjectStrategyDescriptor
extends hudson.model.Descriptor<AuthorizeProjectStrategy>


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
protected AuthorizeProjectStrategyDescriptor()
           
protected AuthorizeProjectStrategyDescriptor(Class<? extends AuthorizeProjectStrategy> clazz)
           
 
Method Summary
 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.
protected  hudson.XmlFile getConfigFile()
           
static List<AuthorizeProjectStrategyDescriptor> getDescriptorsForGlobalSecurityConfigPage()
           
 String getGlobalSecurityConfigPage()
           
 boolean isEnabledByDefault()
           
 
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckMethod, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorizeProjectStrategyDescriptor

protected AuthorizeProjectStrategyDescriptor()

AuthorizeProjectStrategyDescriptor

protected AuthorizeProjectStrategyDescriptor(Class<? extends AuthorizeProjectStrategy> clazz)
Parameters:
clazz -
Method Detail

getConfigFile

protected final hudson.XmlFile getConfigFile()
Overrides:
getConfigFile in class hudson.model.Descriptor<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 hudson.model.Descriptor.FormException
Invoked when configuration is submitted from "Configure Global Security" as a child of ProjectQueueItemAuthenticator. You should call save() by yourself.

Parameters:
req -
js -
Throws:
FormException
hudson.model.Descriptor.FormException

isEnabledByDefault

public boolean isEnabledByDefault()
Returns:
this strategy can be enabled by default.


Copyright © 2004-2015. All Rights Reserved.