Package hudson.plugins.dimensionsscm
Class DimensionsSCM.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<SCM>
-
- hudson.scm.SCMDescriptor<DimensionsSCM>
-
- hudson.plugins.dimensionsscm.DimensionsSCM.DescriptorImpl
-
- All Implemented Interfaces:
ModelObject
,Saveable
,OnMaster
- Enclosing class:
- DimensionsSCM
public static class DimensionsSCM.DescriptorImpl extends SCMDescriptor<DimensionsSCM> implements ModelObject
Implementation class for Dimensions CM SCM plugin.
-
-
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.scm.SCMDescriptor
repositoryBrowser
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description DescriptorImpl()
Loads the SCM descriptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject jobj)
Save the SCM descriptor configuration.FormValidation
doCheckServerConfig(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, String credentialsId, String credentialsType, String jobuser, String jobPasswd, String jobServerUser, String jobDatabaseUser, String jobServerPlugin, String jobDatabasePlugin, Item item)
Check if the specified Dimensions server is valid (config.jelly).FormValidation
doCheckServerGlobal(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, String credentialsId, String credentialsType, String user, String passwd, String serverUser, String serverPlugin, String databaseUser, String databasePlugin, Item item)
Check if the specified Dimensions server is valid (global.jelly).FormValidation
doCheckServerKeystore(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, String keystorePath, String keystorePassword, String keystoreServer, String keystoreDatabase, String certificatePassword, String certificateAlias, Item item)
FormValidation
docheckTz(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, String timezone)
Check if the specified Dimensions server is valid.ListBoxModel
doFillCredentialsIdItems(Item project, String credentialsId)
FormValidation
domanadatoryFieldCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
DimensionsSCMRepositoryBrowser
getBrowser()
String
getCertificateAlias()
Gets the certificate alias.Secret
getCertificatePassword()
Gets the certificate password as a Secret instance.String
getCertificatePath()
Gets the certificate remote path.String
getCredentialsId()
Gets the credentials id.String
getCredentialsType()
Gets the credentials type.String
getDatabase()
Gets the base database for the connection (as "NAME@CONNECTION").String
getDisplayName()
Secret
getKeystorePassword()
Gets the keystore password as a Secret instance.String
getKeystorePath()
Gets the keystore path.Secret
getPassword()
Gets the password as a Secret instance.Secret
getRemoteCertificatePassword()
Gets the remote certificate password as a Secret instance.String
getServer()
Gets the server for the connection.String
getTimeZone()
Gets the timezone for the connection.String
getUserName()
Gets the user ID for the connection.String
getWebUrl()
Gets the web URL for the connection.boolean
isApplicable(Job project)
boolean
isCanUpdate()
Gets the update.boolean
isChecked(String type)
boolean
isSecureAgentAuth()
Check if need perform secure auth for remote.SCM
newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
void
setCanUpdate(boolean x)
Sets the update.void
setDatabase(String database)
Sets the base database for the connection (as "NAME@CONNECTION").void
setPasswd(String password)
Sets the password.void
setServer(String server)
Sets the server for the connection.void
setTimeZone(String x)
Sets the timezone for the connection.void
setUserName(String userName)
Sets the user ID for the connection.void
setWebUrl(String x)
Sets the web URL for the connection.-
Methods inherited from class hudson.scm.SCMDescriptor
getBrowserDescriptors, getGeneration, incrementGeneration, isApplicable, isBrowserReusable, load
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, 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
-
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceModelObject
- Overrides:
getDisplayName
in classDescriptor<SCM>
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject jobj) throws Descriptor.FormException
Save the SCM descriptor configuration.- Overrides:
configure
in classDescriptor<SCM>
- Throws:
Descriptor.FormException
-
newInstance
public SCM newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException
- Overrides:
newInstance
in classDescriptor<SCM>
- Throws:
Descriptor.FormException
-
isApplicable
public boolean isApplicable(Job project)
- Overrides:
isApplicable
in classSCMDescriptor<DimensionsSCM>
-
isChecked
public boolean isChecked(String type)
-
doFillCredentialsIdItems
public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item project, @QueryParameter String credentialsId)
-
getBrowser
public DimensionsSCMRepositoryBrowser getBrowser()
-
getTimeZone
public String getTimeZone()
Gets the timezone for the connection.- Returns:
- the timezone
-
getWebUrl
public String getWebUrl()
Gets the web URL for the connection.- Returns:
- the web URL
-
getUserName
public String getUserName()
Gets the user ID for the connection.- Returns:
- the user ID of the user as whom to connect
-
getCredentialsId
public String getCredentialsId()
Gets the credentials id.- Returns:
- the credentials ID of user
-
getCredentialsType
public String getCredentialsType()
Gets the credentials type.- Returns:
- the credentials type
-
getDatabase
public String getDatabase()
Gets the base database for the connection (as "NAME@CONNECTION").- Returns:
- the name of the base database to connect to
-
getServer
public String getServer()
Gets the server for the connection.- Returns:
- the name of the server to connect to
-
isSecureAgentAuth
public boolean isSecureAgentAuth()
Check if need perform secure auth for remote.- Returns:
- secure auth
-
getPassword
public Secret getPassword()
Gets the password as a Secret instance.- Returns:
- the password (as a Secret instance)
-
getKeystorePassword
public Secret getKeystorePassword()
Gets the keystore password as a Secret instance.- Returns:
- the password (as a Secret instance)
-
getCertificatePassword
public Secret getCertificatePassword()
Gets the certificate password as a Secret instance.- Returns:
- the password (as a Secret instance)
-
getRemoteCertificatePassword
public Secret getRemoteCertificatePassword()
Gets the remote certificate password as a Secret instance.- Returns:
- the password (as a Secret instance)
-
getCertificateAlias
public String getCertificateAlias()
Gets the certificate alias.- Returns:
- alias
-
getKeystorePath
public String getKeystorePath()
Gets the keystore path.- Returns:
- the path
-
getCertificatePath
public String getCertificatePath()
Gets the certificate remote path.- Returns:
- the path
-
isCanUpdate
public boolean isCanUpdate()
Gets the update.- Returns:
- the update
-
setCanUpdate
public void setCanUpdate(boolean x)
Sets the update.
-
setUserName
public void setUserName(String userName)
Sets the user ID for the connection.
-
setDatabase
public void setDatabase(String database)
Sets the base database for the connection (as "NAME@CONNECTION").
-
setServer
public void setServer(String server)
Sets the server for the connection.
-
setPasswd
public void setPasswd(String password)
Sets the password.
-
setTimeZone
public void setTimeZone(String x)
Sets the timezone for the connection.
-
setWebUrl
public void setWebUrl(String x)
Sets the web URL for the connection.
-
domanadatoryFieldCheck
public FormValidation domanadatoryFieldCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
-
docheckTz
@POST public FormValidation docheckTz(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter("dimensionsscm.timeZone") String timezone)
Check if the specified Dimensions server is valid.
-
doCheckServerGlobal
@POST public FormValidation doCheckServerGlobal(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter("credentialsId") String credentialsId, @QueryParameter("credentialsType") String credentialsType, @QueryParameter("dimensionsscm.userName") String user, @QueryParameter("dimensionsscm.passwd") String passwd, @QueryParameter("dimensionsscm.serverUser") String serverUser, @QueryParameter("dimensionsscm.serverPlugin") String serverPlugin, @QueryParameter("dimensionsscm.databaseUser") String databaseUser, @QueryParameter("dimensionsscm.databasePlugin") String databasePlugin, @AncestorInPath Item item)
Check if the specified Dimensions server is valid (global.jelly).
-
doCheckServerKeystore
@POST public FormValidation doCheckServerKeystore(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter("dimensionsscm.keystorePath") String keystorePath, @QueryParameter("dimensionsscm.keystorePassword") String keystorePassword, @QueryParameter("dimensionsscm.keystoreServer") String keystoreServer, @QueryParameter("dimensionsscm.keystoreDatabase") String keystoreDatabase, @QueryParameter("dimensionsscm.certificatePassword") String certificatePassword, @QueryParameter("dimensionsscm.certificateAlias") String certificateAlias, @AncestorInPath Item item)
-
doCheckServerConfig
@POST public FormValidation doCheckServerConfig(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter("credentialsId") String credentialsId, @QueryParameter("credentialsType") String credentialsType, @QueryParameter("dimensionsscm.userName") String jobuser, @QueryParameter("dimensionsscm.password") String jobPasswd, @QueryParameter("dimensionsscm.userServer") String jobServerUser, @QueryParameter("dimensionsscm.userDatabase") String jobDatabaseUser, @QueryParameter("dimensionsscm.pluginServer") String jobServerPlugin, @QueryParameter("dimensionsscm.pluginDatabase") String jobDatabasePlugin, @AncestorInPath Item item)
Check if the specified Dimensions server is valid (config.jelly).
-
-