Package hudson.plugins.collabnet.auth
Class CNAuthorizationStrategy.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<AuthorizationStrategy>
-
- hudson.plugins.collabnet.auth.CNAuthorizationStrategy.DescriptorImpl
-
- Enclosing class:
- CNAuthorizationStrategy
@Extension public static final class CNAuthorizationStrategy.DescriptorImpl extends Descriptor<AuthorizationStrategy>
The CNAuthorizationStrategy Descriptor class.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
Fields Modifier and Type Field Description static String
GOOD_VERSION
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description DescriptorImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FormValidation
doCheckAdminGroupsStr(String groups, String users)
Check that the groups are valid.FormValidation
doCheckAdminUsersStr(String value)
Check that the users are valid.FormValidation
doCheckAuthCacheTimeoutMin(String value)
Check that the timeout number is greater than or equal to 0FormValidation
doCheckReadGroupsStr(String value)
FormValidation
doCheckReadUsersStr(String value)
static String
getCollabNetUrl()
String
getDisplayName()
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Field Detail
-
GOOD_VERSION
public static String GOOD_VERSION
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<AuthorizationStrategy>
- Returns:
- string to display for configuration screen.
-
getCollabNetUrl
public static String getCollabNetUrl()
- Returns:
- the currently saved configured CollabNet url
-
doCheckAdminUsersStr
public FormValidation doCheckAdminUsersStr(@QueryParameter String value) throws IOException
Check that the users are valid.- Throws:
IOException
-
doCheckReadUsersStr
public FormValidation doCheckReadUsersStr(@QueryParameter String value) throws IOException
- Throws:
IOException
-
doCheckAdminGroupsStr
public FormValidation doCheckAdminGroupsStr(@QueryParameter String groups, @QueryParameter String users) throws IOException
Check that the groups are valid.- Throws:
IOException
-
doCheckReadGroupsStr
public FormValidation doCheckReadGroupsStr(@QueryParameter String value) throws IOException
- Throws:
IOException
-
doCheckAuthCacheTimeoutMin
public FormValidation doCheckAuthCacheTimeoutMin(@QueryParameter String value)
Check that the timeout number is greater than or equal to 0- Parameters:
value
- the timeout to be checked
-
-