Class DimensionsAPI

    • Constructor Detail

      • DimensionsAPI

        public DimensionsAPI()
    • Method Detail

      • getLogger

        public final PrintStream getLogger()
        Gets the logger.
        Returns:
        the task logger
      • setLogger

        public final void setLogger​(PrintStream logger)
        Set the logger.
      • getSCMUserID

        public final String getSCMUserID()
        Gets the user ID for the connection.
        Returns:
        the user ID of the user as whom to connect
      • getDmVersion

        public final int getDmVersion()
        Gets the Dimensions version if set.
        Returns:
        version
      • getSCMDatabase

        public final String getSCMDatabase()
        Gets the base database for the connection (as "NAME@CONNECTION").
        Returns:
        the name of the base database to connect to
      • getSCMBaseDb

        public final String getSCMBaseDb()
        Gets the base database for the connection.
        Returns:
        the name of the base database only
      • getSCMDsn

        public final String getSCMDsn()
        Gets the database DNS for the connection.
        Returns:
        the name of the DSN only
      • getSCMServer

        public final String getSCMServer()
        Gets the server for the connection.
        Returns:
        the name of the server to connect to
      • getSCMProject

        public final String getSCMProject()
        Gets the project ID for the connection.
        Returns:
        the project ID
      • getSCMPath

        public final String getSCMPath()
        Gets the project path.
        Returns:
        the project path
      • getCon

        public final com.serena.dmclient.api.DimensionsConnection getCon​(long key)
        Gets the repository connection class
        Returns:
        the SCM repository connection
      • logout

        public final void logout​(long key)
        Disconnects from the Dimensions repository
      • logout

        public final void logout​(long key,
                                 Run<?,​?> build)
        Disconnects from the Dimensions repository, with additional tracing from supplied build details.
      • lockProject

        public com.serena.dmclient.api.DimensionsResult lockProject​(long key,
                                                                    String projectId)
        Lock a project.
      • unlockProject

        public com.serena.dmclient.api.DimensionsResult unlockProject​(long key,
                                                                      String projectId)
        Unlock a project.
      • buildBaseline

        public com.serena.dmclient.api.DimensionsResult buildBaseline​(long key,
                                                                      String area,
                                                                      String projectId,
                                                                      boolean batch,
                                                                      boolean buildClean,
                                                                      String buildConfig,
                                                                      String options,
                                                                      boolean capture,
                                                                      String requests,
                                                                      String targets,
                                                                      Run<?,​?> build,
                                                                      String blnName)
        Build a baseline.
      • buildProject

        public com.serena.dmclient.api.DimensionsResult buildProject​(long key,
                                                                     String area,
                                                                     String projectId,
                                                                     boolean batch,
                                                                     boolean buildClean,
                                                                     String buildConfig,
                                                                     String options,
                                                                     boolean capture,
                                                                     String requests,
                                                                     String targets,
                                                                     String stage,
                                                                     String type,
                                                                     boolean audit,
                                                                     boolean populate,
                                                                     boolean touch,
                                                                     Run<?,​?> build)
        Build a project.
      • UploadFiles

        public com.serena.dmclient.api.DimensionsResult UploadFiles​(long key,
                                                                    FilePath rootDir,
                                                                    String projectId,
                                                                    File cmdFile,
                                                                    String projectName,
                                                                    int buildNo,
                                                                    String requests,
                                                                    boolean forceCheckIn,
                                                                    boolean forceTip,
                                                                    String owningPart)
        Upload files.
      • createBaseline

        public com.serena.dmclient.api.DimensionsResult createBaseline​(long key,
                                                                       String dcmProjectVersion,
                                                                       Run<?,​?> build,
                                                                       String blnScope,
                                                                       String blnTemplate,
                                                                       String blnOwningPart,
                                                                       String blnType,
                                                                       String requestId,
                                                                       String blnId,
                                                                       String blnName,
                                                                       StringBuffer cblId)
        Create a project tag.
      • deployBaseline

        public com.serena.dmclient.api.DimensionsResult deployBaseline​(long key,
                                                                       String projectId,
                                                                       Run<?,​?> build,
                                                                       String state,
                                                                       String blnName)
        Deploy a baseline.
      • actionBaseline

        public com.serena.dmclient.api.DimensionsResult actionBaseline​(long key,
                                                                       String projectId,
                                                                       Run<?,​?> build,
                                                                       String state,
                                                                       String blnName)
        Action a baseline.
      • isStream

        public boolean isStream​(long key,
                                String projectId)
      • getItemsInRequests

        public List<com.serena.dmclient.api.ItemRevision> getItemsInRequests​(com.serena.dmclient.api.DimensionsConnection connection,
                                                                             String projectName,
                                                                             String requests,
                                                                             String dateAfter,
                                                                             String dateBefore)
        Populate list with all the items related to a set of requests.
        Parameters:
        connection - Dimensions connection
        projectName - Name of the project
        requests - List of requests
        dateAfter - Date filter
        dateBefore - Date filter
        Returns:
        List