Class Process

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Process>

    public class Process
    extends Id
    implements java.lang.Comparable<Process>, java.lang.Cloneable
    See Also:
    Serialized Form
    • Constructor Detail

      • Process

        public Process()
      • Process

        public Process​(int id)
    • Method Detail

      • getProcessExecutorsWithRole

        @Deprecated
        public java.util.Set<java.lang.Integer> getProcessExecutorsWithRole​(int roleId)
        Deprecated.
      • getExecutorIdsWithRole

        public java.util.Set<java.lang.Integer> getExecutorIdsWithRole​(int roleId)
        Returns the set of executor user IDs for the certain role.
        Parameters:
        roleId -
        Returns:
      • getProcessExecutorsWithRoles

        @Deprecated
        public java.util.Set<java.lang.Integer> getProcessExecutorsWithRoles​(java.util.Set<java.lang.Integer> roleIds)
        Deprecated.
      • getExecutorIdsWithRoles

        public java.util.Set<java.lang.Integer> getExecutorIdsWithRoles​(java.util.Set<java.lang.Integer> roleIds)
        Returns the set of executor user IDs for the certain roles.
        Parameters:
        roleIds -
        Returns:
      • getProcessExecutorsInGroupWithRole

        @Deprecated
        public java.util.Set<java.lang.Integer> getProcessExecutorsInGroupWithRole​(int roleId,
                                                                                   int groupId)
        Deprecated.
      • getExecutorIdsWithGroupAndRole

        public java.util.Set<java.lang.Integer> getExecutorIdsWithGroupAndRole​(int groupId,
                                                                               int roleId)
        Returns the set of executor user IDs for the certain role and group.
        Parameters:
        groupId -
        roleId -
        Returns:
      • getProcessExecutorsWithGroups

        @Deprecated
        public java.util.Set<java.lang.Integer> getProcessExecutorsWithGroups​(java.util.Set<java.lang.Integer> groupIds)
        Deprecated.
      • getExecutorIdsWithGroups

        public java.util.Set<java.lang.Integer> getExecutorIdsWithGroups​(java.util.Set<java.lang.Integer> groupIds)
        Returns the set of executor user IDs for the certain groups.
        Parameters:
        groupIds -
        Returns:
      • getExecutorIds

        public java.util.Set<java.lang.Integer> getExecutorIds()
      • setExecutors

        public void setExecutors​(java.util.Set<ProcessExecutor> value)
      • getProcessGroups

        @Deprecated
        public java.util.Set<ProcessGroup> getProcessGroups()
        Deprecated.
      • getGroups

        public java.util.Set<ProcessGroup> getGroups()
      • getGroupIdsWithRole

        public java.util.Set<java.lang.Integer> getGroupIdsWithRole​(int roleId)
        Returns the set of execution group IDs for the certain role.
        Parameters:
        roleId -
        Returns:
      • getProcessGroupWithRoles

        @Deprecated
        public java.util.Set<ProcessGroup> getProcessGroupWithRoles​(java.util.Set<java.lang.Integer> roleIds)
        Deprecated.
      • getGroupIdsWithRoles

        public java.util.Set<java.lang.Integer> getGroupIdsWithRoles​(java.util.Set<java.lang.Integer> roleIds)
        Returns the set of execution group IDs for the certain roles.
        Parameters:
        roleIds -
        Returns:
      • getGroupIds

        public java.util.Set<java.lang.Integer> getGroupIds()
      • setProcessGroups

        @Deprecated
        public void setProcessGroups​(java.util.Set<ProcessGroup> processGroups)
        Deprecated.
      • setGroups

        public void setGroups​(java.util.Set<ProcessGroup> value)
      • getTypeId

        public int getTypeId()
      • setTypeId

        public void setTypeId​(int value)
      • withTypeId

        public Process withTypeId​(int value)
      • getTypeTitle

        public java.lang.String getTypeTitle()
        Returns:
        process types title from getType().
      • getStatusId

        public int getStatusId()
      • setStatusId

        public void setStatusId​(int statusId)
      • getStatusTime

        public java.util.Date getStatusTime()
      • setStatusTime

        public void setStatusTime​(java.util.Date statusTime)
      • getStatusUserId

        public int getStatusUserId()
      • setStatusUserId

        public void setStatusUserId​(int statusUserId)
      • getDescription

        public java.lang.String getDescription()
      • setDescription

        public void setDescription​(java.lang.String value)
      • withDescription

        public Process withDescription​(java.lang.String value)
      • getReference

        public java.lang.String getReference()
      • setReference

        public void setReference​(java.lang.String reference)
      • getCreateTime

        public java.util.Date getCreateTime()
      • setCreateTime

        public void setCreateTime​(java.util.Date createTime)
      • getCreateUserId

        public int getCreateUserId()
      • setCreateUserId

        public void setCreateUserId​(int createUserId)
      • getCloseUserId

        public int getCloseUserId()
      • setCloseUserId

        public void setCloseUserId​(int closeUserId)
      • getCloseTime

        public java.util.Date getCloseTime()
      • setCloseTime

        public void setCloseTime​(java.util.Date closeTime)
      • getStatusTitle

        public java.lang.String getStatusTitle()
      • setStatusChange

        public void setStatusChange​(StatusChange status)
      • getPriority

        public int getPriority()
      • setPriority

        public void setPriority​(int priority)
      • getRoleSet

        public java.util.Set<java.lang.Integer> getRoleSet()
      • getAllowedToChangeStatusIds

        public java.util.Set<java.lang.Integer> getAllowedToChangeStatusIds()
      • isEqualProperties

        public boolean isEqualProperties​(Process process)
      • getChangesLog

        public java.lang.String getChangesLog​(Process oldProcess)
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • compareTo

        public int compareTo​(Process o)
        Specified by:
        compareTo in interface java.lang.Comparable<Process>
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class Id
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Id
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getUnboundedExecutorsCount

        public int getUnboundedExecutorsCount()
      • clone

        public Process clone()
        Overrides:
        clone in class java.lang.Object