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 Link icon

  • Constructor Details Link icon

    • Process Link icon

      public Process()
    • Process Link icon

      public Process(int id)
  • Method Details Link icon

    • getTypeId Link icon

      public int getTypeId()
    • setTypeId Link icon

      public void setTypeId(int value)
    • withTypeId Link icon

      public Process withTypeId(int value)
    • getType Link icon

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

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

      public Date getCreateTime()
    • setCreateTime Link icon

      public void setCreateTime(Date createTime)
    • getCreateUserId Link icon

      public int getCreateUserId()
    • setCreateUserId Link icon

      public void setCreateUserId(int createUserId)
    • getCloseUserId Link icon

      public int getCloseUserId()
    • setCloseUserId Link icon

      public void setCloseUserId(int closeUserId)
    • getCloseTime Link icon

      public Date getCloseTime()
    • setCloseTime Link icon

      public void setCloseTime(Date closeTime)
    • getStatusId Link icon

      public int getStatusId()
    • setStatusId Link icon

      public void setStatusId(int statusId)
    • withStatusId Link icon

      public Process withStatusId(int value)
    • getStatus Link icon

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

      public String getStatusTitle()
    • getAllowedToChangeStatusIds Link icon

      public Set<Integer> getAllowedToChangeStatusIds()
    • getStatusTime Link icon

      public Date getStatusTime()
    • setStatusTime Link icon

      public void setStatusTime(Date statusTime)
    • getStatusUserId Link icon

      public int getStatusUserId()
    • setStatusUserId Link icon

      public void setStatusUserId(int statusUserId)
    • getStatusChange Link icon

      public StatusChange getStatusChange()
    • setStatusChange Link icon

      public void setStatusChange(StatusChange status)
    • getPriority Link icon

      public int getPriority()
    • setPriority Link icon

      public void setPriority(int priority)
    • getTitle Link icon

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

      public String getDescription()
    • setDescription Link icon

      public void setDescription(String value)
    • withDescription Link icon

      public Process withDescription(String value)
    • getGroups Link icon

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

      public void setGroups(ProcessGroups value)
    • withGroups Link icon

      public Process withGroups(ProcessGroups value)
    • getGroupIds Link icon

      public Set<Integer> getGroupIds()
    • getRoleSet Link icon

      public Set<Integer> getRoleSet()
    • getGroupIdsWithRole Link icon

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

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

      public Set<ProcessExecutor> getExecutors()
    • setExecutors Link icon

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

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

      public Set<Integer> getExecutorIds()
    • getExecutorIdsWithRole Link icon

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

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

      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 Link icon

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

      public String getChangesLog(Process oldProcess)
    • compareTo Link icon

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

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

      public boolean isEqualProperties(Process process)
    • hashCode Link icon

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

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

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

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

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

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

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

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

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

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

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

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

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