public static final class IntegritySCM.DescriptorImpl extends hudson.scm.SCMDescriptor<IntegritySCM> implements hudson.model.ModelObject
| Modifier and Type | Field and Description |
|---|---|
static IntegritySCM.DescriptorImpl |
INTEGRITY_DESCRIPTOR |
| Constructor and Description |
|---|
DescriptorImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
This method is invoked when the global configuration page is submitted.
|
hudson.util.ListBoxModel |
doFillServerConfigItems(String serverConfig)
Provides a list box for users to choose from a list of Integrity Server configurations
|
hudson.util.FormValidation |
doTestConnection(String hostName,
int port,
String userName,
String password,
boolean secure,
String ipHostName,
int ipPort)
A credentials validation helper
|
hudson.util.FormValidation |
doValidCheckoutThreadPoolSizeCheck(String value)
Validates that the thread pool size is numeric and within a valid range
|
hudson.util.FormValidation |
doValidCheckoutThreadTimeoutCheck(String value)
Validates that the thread timeout is numeric and within a valid range
|
int |
getCheckoutThreadPoolSize()
Returns the default thread pool size for a new project
|
int |
getCheckoutThreadTimeout()
Returns the default checkout thread timeout for a specific project
|
String |
getCheckpointLabel()
Returns the default groovy expression for the checkpoint label
|
IntegrityConfigurable |
getConfiguration(String name)
Return the IntegrityConfigurable object for the specified simple name
|
String |
getConfigurationName()
Returns a default value for the Configuration Name
|
List<IntegrityConfigurable> |
getConfigurations()
Returns the list of Integrity Server connections.
|
ConnectionPoolDataSource |
getDataSource()
Returns the pooled connection data source for the derby db
|
String |
getDisplayName()
Returns the name of the SCM, this is the name that will show up next to CVS, Subversion, etc.
|
boolean |
isApplicable(hudson.model.Job project) |
void |
load() |
hudson.scm.SCM |
newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
void |
setConfigurations(List<IntegrityConfigurable> configurations)
Sets the list of Integrity Server connections.
|
getBrowserDescriptors, isApplicable, isBrowserReusableaddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap@Extension public static final IntegritySCM.DescriptorImpl INTEGRITY_DESCRIPTOR
public void load()
load in class hudson.scm.SCMDescriptor<IntegritySCM>public hudson.scm.SCM newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws hudson.model.Descriptor.FormException
newInstance in class hudson.model.Descriptor<hudson.scm.SCM>hudson.model.Descriptor.FormExceptionpublic String getDisplayName()
getDisplayName in interface hudson.model.ModelObjectgetDisplayName in class hudson.model.Descriptor<hudson.scm.SCM>public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws hudson.model.Descriptor.FormException
configure in class hudson.model.Descriptor<hudson.scm.SCM>hudson.model.Descriptor.FormExceptionpublic boolean isApplicable(hudson.model.Job project)
isApplicable in class hudson.scm.SCMDescriptor<IntegritySCM>public ConnectionPoolDataSource getDataSource()
public String getCheckpointLabel()
public int getCheckoutThreadPoolSize()
public String getConfigurationName()
public int getCheckoutThreadTimeout()
public List<IntegrityConfigurable> getConfigurations()
public void setConfigurations(List<IntegrityConfigurable> configurations)
configurations - A list of IntegrityConfigurable objects.public IntegrityConfigurable getConfiguration(String name)
name - public hudson.util.ListBoxModel doFillServerConfigItems(@QueryParameter
String serverConfig)
configuration - Simple configuration namepublic hudson.util.FormValidation doTestConnection(@QueryParameter(value="serverConfig.hostName")
String hostName,
@QueryParameter(value="serverConfig.port")
int port,
@QueryParameter(value="serverConfig.userName")
String userName,
@QueryParameter(value="serverConfig.password")
String password,
@QueryParameter(value="serverConfig.secure")
boolean secure,
@QueryParameter(value="serverConfig.ipHostName")
String ipHostName,
@QueryParameter(value="serverConfig.ipPort")
int ipPort)
throws IOException,
javax.servlet.ServletException,
com.mks.api.response.APIException
hostName - port - userName - password - secure - ipHostName - ipPort - IOExceptionjavax.servlet.ServletExceptioncom.mks.api.response.APIExceptionpublic hudson.util.FormValidation doValidCheckoutThreadPoolSizeCheck(@QueryParameter
String value)
value - Integer value for Thread Pool Sizepublic hudson.util.FormValidation doValidCheckoutThreadTimeoutCheck(@QueryParameter
String value)
value - Integer value for Thread TimeoutCopyright © 2016–2024. All rights reserved.