Class Process

java.lang.Object
org.bgerp.model.base.Id
ru.bgcrm.model.process.Process
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Process>, Id<Integer>

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

  • Constructor Details

    • Process

      public Process()
    • Process

      public Process(int id)
  • Method Details

    • getProcessExecutors

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

      public Set<ProcessExecutor> getExecutors()
    • getProcessExecutorsWithRole

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

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

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

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

      @Deprecated public Set<Integer> getProcessExecutorsInGroupWithRole(int roleId, int groupId)
      Deprecated.
    • 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:
    • getProcessExecutorsWithGroups

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

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

      public Set<Integer> getExecutorIds()
    • setProcessExecutors

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

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

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

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

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

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

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

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

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

      public Set<Integer> getGroupIds()
    • setProcessGroups

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

      public void setGroups(ProcessGroups value)
    • withGroups

      public Process withGroups(ProcessGroups value)
    • 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().
    • getStatusId

      public int getStatusId()
    • setStatusId

      public void setStatusId(int statusId)
    • getStatus

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

      public Date getStatusTime()
    • setStatusTime

      public void setStatusTime(Date statusTime)
    • getStatusUserId

      public int getStatusUserId()
    • setStatusUserId

      public void setStatusUserId(int statusUserId)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String value)
    • withDescription

      public Process withDescription(String value)
    • getReference

      public String getReference()
    • setReference

      public void setReference(String reference)
    • reference

      public Reference reference()
    • 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)
    • getStatusTitle

      public String getStatusTitle()
    • getStatusChange

      public StatusChange getStatusChange()
    • setStatusChange

      public void setStatusChange(StatusChange status)
    • getPriority

      public int getPriority()
    • setPriority

      public void setPriority(int priority)
    • getRoleSet

      public Set<Integer> getRoleSet()
    • getAllowedToChangeStatusIds

      public Set<Integer> getAllowedToChangeStatusIds()
    • isEqualProperties

      public boolean isEqualProperties(Process process)
    • 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
    • hashCode

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

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

      public Process clone()
      Overrides:
      clone in class Object