Class LocalTriggerManager.ScriptChangePackageBean

    • Constructor Detail

      • ScriptChangePackageBean

        public ScriptChangePackageBean​(int userId,
                                       mks.ci.cp.api.IChangePackage cp,
                                       java.sql.Connection c)
    • Method Detail

      • getDescription

        public java.lang.String getDescription()
                                        throws mks.frame.triggers.TriggerException
        Return the description of the change package.
        Throws:
        mks.frame.triggers.TriggerException
      • getUser

        public java.lang.String getUser()
                                 throws mks.frame.triggers.TriggerException
        Return the name of the user that created this change package. Only that user is permitted to close the change package or to create entries under it.
        Throws:
        mks.frame.triggers.TriggerException
      • isClosed

        public boolean isClosed()
                         throws mks.frame.triggers.TriggerException
        Returns true if the change package currently has a closed status.
        Throws:
        mks.frame.triggers.TriggerException
      • isOpen

        public boolean isOpen()
                       throws mks.frame.triggers.TriggerException
        Returns true if the change package currently has an open status.
        Throws:
        mks.frame.triggers.TriggerException
      • isSubmitted

        public boolean isSubmitted()
                            throws mks.frame.triggers.TriggerException
        Returns true if the change package currently has a submitted status.
        Throws:
        mks.frame.triggers.TriggerException
      • isAccepted

        public boolean isAccepted()
                           throws mks.frame.triggers.TriggerException
        Returns true if the change package currently has an accepted status.
        Throws:
        mks.frame.triggers.TriggerException
      • isRejected

        public boolean isRejected()
                           throws mks.frame.triggers.TriggerException
        Returns true if the change package currently has a rejected status.
        Throws:
        mks.frame.triggers.TriggerException
      • isDiscarded

        public boolean isDiscarded()
                            throws mks.frame.triggers.TriggerException
        Returns true if the change package currently has a discarded status.
        Throws:
        mks.frame.triggers.TriggerException
      • isCommitFailed

        public boolean isCommitFailed()
                               throws mks.frame.triggers.TriggerException
        Returns true if the change package currently has a commit failed status.
        Throws:
        mks.frame.triggers.TriggerException
      • isResolution

        public boolean isResolution()
                             throws mks.frame.triggers.TriggerException
        Returns true if the change package is a resolution change package.
        Throws:
        mks.frame.triggers.TriggerException
      • isDevelopment

        public boolean isDevelopment()
                              throws mks.frame.triggers.TriggerException
        Returns true if the change package is a development change package.
        Throws:
        mks.frame.triggers.TriggerException
        Since:
        Integrity Solution 2006
      • isPropagation

        public boolean isPropagation()
                              throws mks.frame.triggers.TriggerException
        Returns true if the change package is a propagation change package.
        Throws:
        mks.frame.triggers.TriggerException
        Since:
        Integrity Solution 2006
      • isStaging

        public boolean isStaging()
                          throws mks.frame.triggers.TriggerException
        Returns true if the change package is a staging change package.
        Throws:
        mks.frame.triggers.TriggerException
        Since:
        Integrity Solution 2006
      • isDeploy

        public boolean isDeploy()
                         throws mks.frame.triggers.TriggerException
        Returns true if the change package is a deploy change package.
        Throws:
        mks.frame.triggers.TriggerException
        Since:
        Integrity Solution 2006
      • getClosedTime

        public java.util.Date getClosedTime()
                                     throws mks.frame.triggers.TriggerException
        Returns the date at which this change package was closed, as a Date object. If the change package is not closed, then null is returned.
        Throws:
        mks.frame.triggers.TriggerException
      • getCreationTime

        public java.util.Date getCreationTime()
                                       throws mks.frame.triggers.TriggerException
        Returns the date at which this change package was created, as a Date object.
        Throws:
        mks.frame.triggers.TriggerException
      • getServer

        public java.lang.String getServer()
                                   throws mks.frame.triggers.TriggerException
        Return the server and port of the Source Code Management server which created this change package.
        Returns:
        The server and port of the Source Code Management server which created this change package. For historical change packages this may be the empty string.
        Throws:
        mks.frame.triggers.TriggerException
      • getStagingSystem

        public java.lang.String getStagingSystem()
                                          throws mks.frame.triggers.TriggerException
        Return the name of the staging system which this change package is associated with.
        Returns:
        The name of the staging system which this change package is associated with, null if this is not a staging or deploy change package.
        Throws:
        mks.frame.triggers.TriggerException
        Since:
        Integrity Solution 2006
      • getStage

        public java.lang.String getStage()
                                  throws mks.frame.triggers.TriggerException
        Return the name of the stage which this change package is associated with.
        Returns:
        The name of the stage which this change package is associated with, null if this is not a staging or deploy change package.
        Throws:
        mks.frame.triggers.TriggerException
        Since:
        Integrity Solution 2006
      • getDeployTarget

        public java.lang.String getDeployTarget()
                                         throws mks.frame.triggers.TriggerException
        Return the name of the deploy target which this change package is associated with.
        Returns:
        The name of the deploy target which this change package is associated with, null if this is not a deploy change package.
        Throws:
        mks.frame.triggers.TriggerException
        Since:
        Integrity Solution 2006
      • getPropagated

        public java.util.Set<java.lang.String> getPropagated()
                                                      throws mks.frame.triggers.TriggerException
        Returns the set of change package IDs, which this change package was used to propagate.
        Returns:
        The set of change package IDs which this change package was used to propagate.
        Throws:
        mks.frame.triggers.TriggerException
        Since:
        Integrity Solution 2006
      • getPropagatedBy

        public java.util.Set<java.lang.String> getPropagatedBy()
                                                        throws mks.frame.triggers.TriggerException
        Returns the set of change package IDs which were used to propagate this change package.
        Returns:
        The set of change package IDs which were used to propagate this change package.
        Throws:
        mks.frame.triggers.TriggerException
        Since:
        Integrity Solution 2006
      • getReverted

        public java.util.Set<java.lang.String> getReverted()
                                                    throws mks.frame.triggers.TriggerException
        Returns the set of change package IDs, which this change package was used to revert.
        Returns:
        The set of change package IDs which this change package was used to revert.
        Throws:
        mks.frame.triggers.TriggerException
        Since:
        Integrity 10.8
      • getRevertedBy

        public java.util.Set<java.lang.String> getRevertedBy()
                                                      throws mks.frame.triggers.TriggerException
        Returns the set of change package IDs which were used to revert this change package.
        Returns:
        The set of change package IDs which were used to revert this change package.
        Throws:
        mks.frame.triggers.TriggerException
        Since:
        Integrity 10.8
      • getDeployRequestState

        public java.lang.String getDeployRequestState()
                                               throws mks.frame.triggers.TriggerException
        Get the state of the associated deploy request if one exists.
        Returns:
        The state of the deploy request.
        Throws:
        mks.frame.triggers.TriggerException
        Since:
        Integrity Solution 2006
      • getEntryBeans

        public LocalTriggerManager.ScriptChangePackageEntryBean[] getEntryBeans()
                                                                         throws mks.frame.triggers.TriggerException
        Returns an array of Beans, each of which are imChangePackageEntryBeans, one for each change package entry that is part of the change package.
        Throws:
        mks.frame.triggers.TriggerException
      • getExposedName

        public java.lang.String getExposedName()
        Returns the name of this bean that is exposed to the scripting language.
        Specified by:
        getExposedName in interface mks.frame.triggers.ScriptExposableBean
        Overrides:
        getExposedName in class LocalTriggerManager.ScriptGenericChangePackageBean
        Returns:
        the bean name: imChangePackageBean.