Class EngineLabel.ScriptLabelArgsBean

  • All Implemented Interfaces:
    mks.frame.triggers.ScriptExposableBean
    Enclosing class:
    EngineLabel

    public static class EngineLabel.ScriptLabelArgsBean
    extends LocalTriggerManager.ScriptIMBaseBean
    implements mks.frame.triggers.ScriptExposableBean
    This bean is made available when a Label trigger is fired. It is available during both Pre and Post Label triggers.
    • Constructor Detail

      • ScriptLabelArgsBean

        public ScriptLabelArgsBean​(mks.ci.common.ManipulateLabelArgs args,
                                   int issueID,
                                   int userId,
                                   java.sql.Connection c)
    • Method Detail

      • getAsOfDate

        public java.util.Date getAsOfDate()
                                   throws mks.frame.triggers.TriggerException
        For an add or move label operation, this is the time the label should be placed at.
        Returns:
        a Date object. If an as of time or label was not specified on the operation, null is returned.
        Throws:
        mks.frame.triggers.TriggerException - if the operation being performed is a delete label.
      • getIssueID

        public int getIssueID()
        Get the issue id against which the label is being applied.
      • isAddLabel

        public boolean isAddLabel()
        Is this an issue add, without the movelabel option?
      • isMoveLabel

        public boolean isMoveLabel()
        Is this an issue add, with the movelabel option?
      • isDeleteLabel

        public boolean isDeleteLabel()
        Is this an issue delete?
      • getLabel

        public java.lang.String getLabel()
        Return the label name being operated on.
      • getExposedName

        public java.lang.String getExposedName()
        The name of this bean: imLabelArgsBean
        Specified by:
        getExposedName in interface mks.frame.triggers.ScriptExposableBean
        Specified by:
        getExposedName in class ScriptBaseBean
        Returns:
        the bean name: siMemberBean.