Class Process

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Process>, Id<Integer>, IdTitle<Integer>, Title

public class Process extends IdTitle implements Comparable<Process>, Cloneable
See Also:
  • Field Details

  • Constructor Details

    • Process

      public Process()
    • Process

      public Process(int id)
  • Method Details

    • getTypeId

      public int getTypeId()
    • setTypeId

      public void setTypeId(int value)
    • withTypeId

      public Process withTypeId(int value)
    • getType

      public ProcessType getType()
      Returns:
      process type object from ProcessTypeCache.getProcessTypeSafe(int).
    • getTypeTitle

      public String getTypeTitle()
      Returns:
      process types title from getType().
    • getCreateTime

      public Date getCreateTime()
    • setCreateTime

      public void setCreateTime(Date createTime)
    • getCreateUserId

      public int getCreateUserId()
    • setCreateUserId

      public void setCreateUserId(int createUserId)
    • getCloseUserId

      public int getCloseUserId()
    • setCloseUserId

      public void setCloseUserId(int closeUserId)
    • getCloseTime

      public Date getCloseTime()
    • setCloseTime

      public void setCloseTime(Date closeTime)
    • getStatusId

      public int getStatusId()
    • setStatusId

      public void setStatusId(int statusId)
    • withStatusId

      public Process withStatusId(int value)
    • getStatus

      public Status getStatus()
      Returns:
      process status object from ProcessTypeCache.getStatusSafe(int).
    • getStatusTitle

      public String getStatusTitle()
    • getAllowedToChangeStatusIds

      public Set<Integer> getAllowedToChangeStatusIds()
    • getStatusTime

      public Date getStatusTime()
    • setStatusTime

      public void setStatusTime(Date statusTime)
    • getStatusUserId

      public int getStatusUserId()
    • setStatusUserId

      public void setStatusUserId(int statusUserId)
    • getStatusChange

      public StatusChange getStatusChange()
    • setStatusChange

      public void setStatusChange(StatusChange status)
    • getPriority

      public int getPriority()
    • setPriority

      public void setPriority(int priority)
    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface Title
      Overrides:
      getTitle in class IdTitle
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String value)
    • withDescription

      public Process withDescription(String value)
    • getGroups

      public ProcessGroups getGroups()
      Returns:
      execution groups.
    • setGroups

      public void setGroups(ProcessGroups value)
    • withGroups

      public Process withGroups(ProcessGroups value)
    • getGroupIds

      public Set<Integer> getGroupIds()
    • getRoleSet

      public Set<Integer> getRoleSet()
    • getGroupIdsWithRole

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

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

      public Set<ProcessExecutor> getExecutors()
    • setExecutors

      public void setExecutors(Set<ProcessExecutor> value)
    • withExecutors

      public Process withExecutors(Set<ProcessExecutor> value)
    • getExecutorIds

      public Set<Integer> getExecutorIds()
    • getExecutorIdsWithRole

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

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

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

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

      public String getChangesLog(Process oldProcess)
    • compareTo

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Id
    • isEqualProperties

      public boolean isEqualProperties(Process process)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class IdTitle
    • clone

      public Process clone()
      Overrides:
      clone in class Object
    • getProcessExecutors

      @Deprecated public Set<ProcessExecutor> getProcessExecutors()
      Deprecated.
    • getProcessExecutorsWithRole

      @Deprecated public Set<Integer> getProcessExecutorsWithRole(int roleId)
      Deprecated.
    • getProcessExecutorsWithRoles

      @Deprecated public Set<Integer> getProcessExecutorsWithRoles(Set<Integer> roleIds)
      Deprecated.
    • getProcessExecutorsInGroupWithRole

      @Deprecated public Set<Integer> getProcessExecutorsInGroupWithRole(int roleId, int groupId)
      Deprecated.
    • getProcessExecutorsWithGroups

      @Deprecated public Set<Integer> getProcessExecutorsWithGroups(Set<Integer> groupIds)
      Deprecated.
    • setProcessExecutors

      @Deprecated public void setProcessExecutors(Set<ProcessExecutor> processExecutors)
      Deprecated.
    • getProcessGroups

      @Deprecated public Set<ProcessGroup> getProcessGroups()
      Deprecated.
    • getProcessGroupWithRole

      @Deprecated public Set<ProcessGroup> getProcessGroupWithRole(int roleId)
      Deprecated.
    • getProcessGroupWithRoles

      @Deprecated public Set<ProcessGroup> getProcessGroupWithRoles(Set<Integer> roleIds)
      Deprecated.
    • setProcessGroups

      @Deprecated public void setProcessGroups(Set<ProcessGroup> processGroups)
      Deprecated.
      Use
      invalid reference
      #setGroups(Set)
      .