Class EngineLabel


  • public class EngineLabel
    extends java.lang.Object
    Label support
    Since:
    Chrome/IS2007
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  EngineLabel.ScriptLabelArgsBean
      This bean is made available when a Label trigger is fired.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addLabel​(int issueID, int labelz, java.lang.String label, java.lang.String comment, java.util.Date d, java.sql.Connection c, int userID, mks.ci.common.ManipulateLabelArgs args)
      Add the specified label to the specified issue at the specified time.
      static EngineLabel getInstance()  
      int getLabelID​(java.lang.String label, java.sql.Connection c)
      Allocate a new label swizzle id.
      void manipulateLabel​(mks.ci.common.ManipulateLabelArgs args, int issueID, int userID)
      RMI Entrypoint from Agent
      boolean moveLabel​(int issueID, int labelz, java.lang.String label, java.lang.String comment, java.util.Date d, java.sql.Connection c, int userID, mks.ci.common.ManipulateLabelArgs args)
      Move the specified label on a specified issue to a new time.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getInstance

        public static EngineLabel getInstance()
      • manipulateLabel

        public void manipulateLabel​(mks.ci.common.ManipulateLabelArgs args,
                                    int issueID,
                                    int userID)
                             throws mks.ci.exception.CIException,
                                    java.sql.SQLException
        RMI Entrypoint from Agent
        Throws:
        mks.ci.exception.CIException
        java.sql.SQLException
      • addLabel

        public void addLabel​(int issueID,
                             int labelz,
                             java.lang.String label,
                             java.lang.String comment,
                             java.util.Date d,
                             java.sql.Connection c,
                             int userID,
                             mks.ci.common.ManipulateLabelArgs args)
                      throws mks.ci.exception.CIException,
                             java.sql.SQLException
        Add the specified label to the specified issue at the specified time. If the label already exists on the issue, throw an exception.
        Throws:
        mks.ci.exception.CIException
        java.sql.SQLException
      • moveLabel

        public boolean moveLabel​(int issueID,
                                 int labelz,
                                 java.lang.String label,
                                 java.lang.String comment,
                                 java.util.Date d,
                                 java.sql.Connection c,
                                 int userID,
                                 mks.ci.common.ManipulateLabelArgs args)
                          throws mks.ci.exception.CIException,
                                 java.sql.SQLException
        Move the specified label on a specified issue to a new time. If the label isn't there, just add it at the new time.
        Parameters:
        userID -
        Throws:
        mks.ci.exception.CIException
        java.sql.SQLException
      • getLabelID

        public int getLabelID​(java.lang.String label,
                              java.sql.Connection c)
                       throws java.sql.SQLException,
                              mks.ci.exception.NoConnectionException,
                              mks.ci.exception.CIException
        Allocate a new label swizzle id.
        Throws:
        java.sql.SQLException
        mks.ci.exception.NoConnectionException
        mks.ci.exception.CIException