Class ADChangeSetHelper


  • public abstract class ADChangeSetHelper
    extends java.lang.Object
    The currently active change set of the assigned users.
    See Also:
    ADChangeSet
    • Method Detail

      • getChangeSetList

        public static ARG_ChangeSetList getChangeSetList​(SrvContext srvCtx,
                                                         boolean onlyActive,
                                                         boolean restrictOnLogin,
                                                         boolean withSealed,
                                                         ARG_ChangeSetPeriod valStart,
                                                         ARG_ChangeSetPeriod valEnd)
                                                  throws InoNetException,
                                                         SrvErrorException
        Returns a list of change sets with properties. The list may be restricted by the specified parameters.
        Parameters:
        srvCtx - The context of the related innovator server.
        onlyActive - true, if the list of change sets is restricted to active change sets
        restrictOnLogin - true, if the list of change sets is restricted to the actual login
        withSealed - true, if the list of change sets includes sealed change sets
        valStart - restrict the list of change sets by starting time
        valEnd - restrict the list of change sets by end time
        Throws:
        InoNetException
        SrvErrorException
      • getConfigChangeSetDlgCheck

        public static ARG_Ask getConfigChangeSetDlgCheck​(SrvContext srvCtx,
                                                         boolean isActiveLog,
                                                         boolean isActiveSet,
                                                         boolean isAnonym,
                                                         int maxDay,
                                                         boolean withExport)
                                                  throws InoNetException,
                                                         SrvErrorException
        Checks whether the modification of the change set configuration will reduce the number of closed change sets.
        Parameters:
        srvCtx - The context of the related innovator server.
        isActiveLog - true, if change logs are active
        isActiveSet - true, if change sets are active
        isAnonym - true, if change sets are anonymous
        maxDay - maximum duration of keeping change sets
        withExport - true, if change sets are exported
        Throws:
        InoNetException
        SrvErrorException
      • configChangeSetDlg

        public static void configChangeSetDlg​(SrvContext srvCtx,
                                              boolean isActiveLog,
                                              boolean isActiveSet,
                                              boolean isAnonym,
                                              int maxDay,
                                              boolean withExport)
                                       throws InoNetException,
                                              SrvErrorException
        Modifies the configuration of change sets.
        Parameters:
        srvCtx - The context of the related innovator server.
        isActiveLog - true, if change logs are active
        isActiveSet - true, if change sets are active
        isAnonym - true, if change sets are anonymous
        maxDay - maximum duration of keeping change sets
        withExport - true, if change sets are exported
        Throws:
        InoNetException
        SrvErrorException
      • create

        public static ADChangeSet create​(SrvContext srvCtx,
                                         java.lang.String strName,
                                         java.lang.String strNote,
                                         java.lang.String strLink,
                                         java.lang.String strId)
                                  throws InoNetException,
                                         SrvErrorException
        creates a change set assigned to the user of this login.
        Parameters:
        srvCtx - The context of the related innovator server.
        strName - change set name
        strNote - change set description
        strLink - link to an external tracking system
        strId - id at an external tracking system
        Throws:
        InoNetException
        SrvErrorException
      • splitChangeSet

        public static ADChangeSet splitChangeSet​(SrvContext srvCtx,
                                                 java.util.List<? extends ADCSOperation> seqOp,
                                                 boolean createNewChangeSet)
                                          throws InoNetException,
                                                 SrvErrorException
        Splits the change set content and moves the specified operations to another change set. If the creation of a new change set is required this changeset becomes active. Otherwise the active change set is used.
        Parameters:
        srvCtx - The context of the related innovator server.
        seqOp - list of change set operations
        createNewChangeSet - true/false means create a new change set / use the active change set
        Throws:
        InoNetException
        SrvErrorException