Package hudson.plugins.collabnet.browser
Class TeamForge.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<RepositoryBrowser<?>>
-
- hudson.plugins.collabnet.browser.TeamForge.DescriptorImpl
-
- Enclosing class:
- TeamForge
public static final class TeamForge.DescriptorImpl extends Descriptor<RepositoryBrowser<?>>
-
-
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 Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canInheritAuth()
FormValidation
doCheckProject(CollabNetApp app, String value)
Form validation for the project field.FormValidation
doCheckRepo(org.kohsuke.stapler.StaplerRequest req)
Form validation for the repo field.ComboBoxModel
doFillProjectItems(CollabNetApp cna)
Gets a list of projects to choose from and write them as a JSON string into the response data.ComboBoxModel
doFillRepoItems(CollabNetApp cna, String project)
Gets a list of repos to choose from and write them as a JSON string into the response data.String
getDisplayName()
String
getHelpFile()
static String
getHelpUrl()
-
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, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<RepositoryBrowser<?>>
-
getHelpUrl
public static String getHelpUrl()
- Returns:
- the url that contains the help files.
-
getHelpFile
public String getHelpFile()
- Overrides:
getHelpFile
in classDescriptor<RepositoryBrowser<?>>
- Returns:
- a relative url to the main help file.
-
canInheritAuth
public boolean canInheritAuth()
- Returns:
- true if there is auth data that can be inherited.
-
doCheckProject
public FormValidation doCheckProject(CollabNetApp app, @QueryParameter String value) throws IOException
Form validation for the project field.- Throws:
IOException
-
doCheckRepo
public FormValidation doCheckRepo(org.kohsuke.stapler.StaplerRequest req) throws IOException
Form validation for the repo field.- Parameters:
req
- contains parameters from the config.jelly.- Throws:
IOException
- If any problem occrus when validating repo request
-
doFillProjectItems
public ComboBoxModel doFillProjectItems(CollabNetApp cna) throws IOException
Gets a list of projects to choose from and write them as a JSON string into the response data.- Throws:
IOException
-
doFillRepoItems
public ComboBoxModel doFillRepoItems(CollabNetApp cna, @QueryParameter String project) throws IOException
Gets a list of repos to choose from and write them as a JSON string into the response data.- Throws:
IOException
-
-