Class GeneXusServerSCM.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<SCM>
-
- hudson.scm.SCMDescriptor<GeneXusServerSCM>
-
- org.jenkinsci.plugins.genexus.server.GeneXusServerSCM.DescriptorImpl
-
- Enclosing class:
- GeneXusServerSCM
@Extension public static final class GeneXusServerSCM.DescriptorImpl extends SCMDescriptor<GeneXusServerSCM>
-
-
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
DEFAULT_GENEXUS_PATH
static String
DEFAULT_SERVER_URL
-
Fields inherited from class hudson.scm.SCMDescriptor
repositoryBrowser
-
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 boolean
configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
FormValidation
doCheckCredentialsId(Item item, String value, String serverURL)
Validate the value for GeneXus Server credentials.FormValidation
doCheckKbDbCredentialsId(Item item, String value, String kBDbServerInstance)
Validate the value for the SQL Server credentials.FormValidation
doCheckKbDbServerInstance(String value)
Validate the value for a SQL Server Instance.FormValidation
doCheckServerURL(String value)
Validate the value for a GeneXus Server connection.ListBoxModel
doFillCredentialsIdItems(Item item, String credentialsId, String serverURL)
ListBoxModel
doFillGxInstallationIdItems()
ListBoxModel
doFillKbDbCredentialsIdItems(Item item, String kbDbCredentialsId, String kbDbServerInstance)
String
getDisplayName()
boolean
isApplicable(Job project)
SCM
newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
-
Methods inherited from class hudson.scm.SCMDescriptor
getBrowserDescriptors, getGeneration, incrementGeneration, isApplicable, isBrowserReusable, load
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, 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, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Field Detail
-
DEFAULT_GENEXUS_PATH
public static final String DEFAULT_GENEXUS_PATH
- See Also:
- Constant Field Values
-
DEFAULT_SERVER_URL
public static final String DEFAULT_SERVER_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
isApplicable
public boolean isApplicable(Job project)
- Overrides:
isApplicable
in classSCMDescriptor<GeneXusServerSCM>
-
newInstance
public SCM newInstance(@Nullable org.kohsuke.stapler.StaplerRequest req, @Nonnull net.sf.json.JSONObject formData) throws Descriptor.FormException
- Overrides:
newInstance
in classDescriptor<SCM>
- Throws:
Descriptor.FormException
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<SCM>
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException
- Overrides:
configure
in classDescriptor<SCM>
- Throws:
Descriptor.FormException
-
doFillGxInstallationIdItems
public ListBoxModel doFillGxInstallationIdItems()
-
doFillCredentialsIdItems
public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item item, @QueryParameter String credentialsId, @QueryParameter String serverURL)
-
doFillKbDbCredentialsIdItems
public ListBoxModel doFillKbDbCredentialsIdItems(@AncestorInPath Item item, @QueryParameter String kbDbCredentialsId, @QueryParameter String kbDbServerInstance)
-
doCheckServerURL
public FormValidation doCheckServerURL(@QueryParameter String value)
Validate the value for a GeneXus Server connection.- Parameters:
value
- URL of a GeneXus Server installation- Returns:
- a FormValidation of a specific kind (OK, ERROR, WARNING)
-
doCheckCredentialsId
public FormValidation doCheckCredentialsId(@AncestorInPath Item item, @QueryParameter String value, @QueryParameter String serverURL)
Validate the value for GeneXus Server credentials.- Parameters:
item
- Item to which the credentials applyvalue
- id of credentials to validateserverURL
- URL of a GeneXus Server installation- Returns:
- a FormValidation of a specific kind (OK, ERROR, WARNING)
-
doCheckKbDbServerInstance
public FormValidation doCheckKbDbServerInstance(@QueryParameter String value)
Validate the value for a SQL Server Instance.- Parameters:
value
- SQL Server instance- Returns:
- a FormValidation of a specific kind (OK, ERROR, WARNING)
-
doCheckKbDbCredentialsId
public FormValidation doCheckKbDbCredentialsId(@AncestorInPath Item item, @QueryParameter String value, @QueryParameter String kBDbServerInstance)
Validate the value for the SQL Server credentials.- Parameters:
item
- Item to which the credentials applyvalue
- id of credentials to validatekBDbServerInstance
- SQL Server instance used for the KB- Returns:
- a FormValidation of a specific kind (OK, ERROR, WARNING)
-
-