Class DimensionsSCM.DescriptorImpl

    • Constructor Detail

      • DescriptorImpl

        public DescriptorImpl()
        Loads the SCM descriptor.
    • Method Detail

      • isChecked

        public boolean isChecked​(String type)
      • doFillCredentialsIdItems

        public ListBoxModel doFillCredentialsIdItems​(@AncestorInPath
                                                     Item project,
                                                     @QueryParameter
                                                     String credentialsId)
      • 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).