Package hudson.plugins.collabnet
Class ConnectionFactory.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<ConnectionFactory>
-
- hudson.plugins.collabnet.ConnectionFactory.DescriptorImpl
-
- Enclosing class:
- ConnectionFactory
@Extension public static final class ConnectionFactory.DescriptorImpl extends Descriptor<ConnectionFactory>
-
-
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 boolean
isSiteConfigured
static String
url
-
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
doCheckPassword(ConnectionFactory connectionFactory, String value)
Check that a password is present and allows login.FormValidation
doCheckUrl(String value)
Form validation for the CollabNet URL.FormValidation
doCheckUsername(String value)
Form validation for username.String
getDisplayName()
static TeamForgeShare.TeamForgeShareDescriptor
getTeamForgeShareDescriptor()
static String
getUrl()
boolean
isSiteConfigured()
boolean
useGlobal()
-
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
-
url
public static String url
-
isSiteConfigured
public static boolean isSiteConfigured
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<ConnectionFactory>
-
getUrl
public static String getUrl()
-
useGlobal
public boolean useGlobal()
-
doCheckUrl
public FormValidation doCheckUrl(@QueryParameter String value)
Form validation for the CollabNet URL.- Parameters:
value
- url
-
isSiteConfigured
public boolean isSiteConfigured()
-
getTeamForgeShareDescriptor
public static TeamForgeShare.TeamForgeShareDescriptor getTeamForgeShareDescriptor()
- Returns:
- the TeamForge share descriptor.
-
doCheckUsername
public FormValidation doCheckUsername(@QueryParameter String value)
Form validation for username.- Parameters:
value
- to check
-
doCheckPassword
public FormValidation doCheckPassword(ConnectionFactory connectionFactory, @QueryParameter String value)
Check that a password is present and allows login.
-
-