Class CopyTree.ScriptArgsBaseBean

    • Constructor Detail

      • ScriptArgsBaseBean

        public ScriptArgsBaseBean​(mks.ci.common.CopyTreeArgs args,
                                  int userId,
                                  java.sql.Connection c)
    • Method Detail

      • isCopyAttachments

        public boolean isCopyAttachments()
        Was the --copyAttachments flag specified?
        Returns:
        true if specified
      • asOfDate

        public java.util.Date asOfDate()
        The value of the --asOfDate option. The as of date is used to branch or copy from an issue at a point in its past.
        Returns:
        a Date object if it was specified, or null.
      • getCopyFields

        public java.lang.String[] getCopyFields​(java.lang.String type)
                                         throws mks.frame.triggers.TriggerException
        Retrieve for a specific type the set of fields to copy
        Parameters:
        type - the name of the type
        Returns:
        A string array of the fields which are to be copied for the specified type.

        A return value of null means that the type was not explicitly specified, and there was no generic all types list.

        An empty array indicates a request to copy all fields visible in the type.

        Throws:
        mks.frame.triggers.TriggerException - if the type does not exist
      • getPostFieldProject

        @Deprecated
        public java.lang.String getPostFieldProject​(java.lang.String type)
                                             throws mks.frame.triggers.TriggerException
        Deprecated.
        This method is for internal use only and is intended to be replaced with a more generic method in the future.
        Retrieve for a specific type any post field setting value for the project field.
        Returns:
        The project, as a string. null is returned if
        1. No post field were specified
        2. Post fields were specified, but the project field was not one of them.
        3. The project field was specified as a post field, but with the empty value.
        Throws:
        mks.frame.triggers.TriggerException - if the type does not exist.