Package hudson.plugins.collabnet.auth
Class CNAuthProjectProperty.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<JobProperty<?>>
-
- hudson.model.JobPropertyDescriptor
-
- hudson.plugins.collabnet.auth.CNAuthProjectProperty.DescriptorImpl
-
- Enclosing class:
- CNAuthProjectProperty
@Extension public static class CNAuthProjectProperty.DescriptorImpl extends JobPropertyDescriptor
Descriptor class.
-
-
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 FormValidation
doCheckProject(String value)
Form validation for the project field.ComboBoxModel
doFillProjectItems()
Get a list of projects to choose from.String
getCollabNetUrl()
String
getDisplayName()
boolean
isApplicable(Class<? extends Job> jobType)
-
Methods inherited from class hudson.model.JobPropertyDescriptor
all, getPropertyDescriptors, newInstance
-
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, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<JobProperty<?>>
- Returns:
- string to display.
-
isApplicable
public boolean isApplicable(Class<? extends Job> jobType)
- Overrides:
isApplicable
in classJobPropertyDescriptor
- Parameters:
jobType
- job type class- Returns:
- true when the CNAuthorizationStrategy is in effect.
-
doCheckProject
public FormValidation doCheckProject(@QueryParameter String value) throws IOException
Form validation for the project field.- Throws:
IOException
-
doFillProjectItems
public ComboBoxModel doFillProjectItems() throws RemoteException
Get a list of projects to choose from.- Returns:
- an array of project names.
- Throws:
RemoteException
-
getCollabNetUrl
public String getCollabNetUrl()
- Returns:
- the CollabNet server url.
-
-