Package ru.bgcrm.model.process
Class Process
java.lang.Object
org.bgerp.model.base.Id
org.bgerp.model.base.IdTitle
ru.bgcrm.model.process.Process
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Process>,Id<Integer>,IdTitle<Integer>,Title
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleangetChangesLog(Process oldProcess) intintgetExecutorIdsWithGroupAndRole(int groupId, int roleId) Returns the set of executor user IDs for the certain role and group.getExecutorIdsWithGroups(Set<Integer> groupIds) Returns the set of executor user IDs for the certain groups.getExecutorIdsWithRole(int roleId) Returns the set of executor user IDs for the certain role.getExecutorIdsWithRoles(Set<Integer> roleIds) Returns the set of executor user IDs for the certain roles.getGroupIdsWithRole(int roleId) Returns the set of execution group IDs for the certain role.getGroupIdsWithRoles(Set<Integer> roleIds) Returns the set of execution group IDs for the certain roles.intProvides configured priority colorDeprecated.getProcessExecutorsInGroupWithRole(int roleId, int groupId) Deprecated.getProcessExecutorsWithGroups(Set<Integer> groupIds) Deprecated.getProcessExecutorsWithRole(int roleId) Deprecated.getProcessExecutorsWithRoles(Set<Integer> roleIds) Deprecated.Deprecated.getProcessGroupWithRole(int roleId) Deprecated.getProcessGroupWithRoles(Set<Integer> roleIds) Deprecated.intintgetTitle()getType()intinthashCode()booleanisEqualProperties(Process process) voidsetCloseTime(Date closeTime) voidsetCloseUserId(int closeUserId) voidsetCreateTime(Date createTime) voidsetCreateUserId(int createUserId) voidsetDescription(String value) voidsetExecutors(Set<ProcessExecutor> value) voidsetGroups(ProcessGroups value) voidsetPriority(int priority) voidsetProcessExecutors(Set<ProcessExecutor> processExecutors) Deprecated.voidsetProcessGroups(Set<ProcessGroup> processGroups) Deprecated.voidsetStatusChange(StatusChange status) voidsetStatusId(int statusId) voidsetStatusTime(Date statusTime) voidsetStatusUserId(int statusUserId) voidsetTypeId(int value) toString()withDescription(String value) withExecutors(Set<ProcessExecutor> value) withGroups(ProcessGroups value) withStatusId(int value) withTypeId(int value)
-
Field Details
-
OBJECT_TYPE
- See Also:
-
LINK_TYPE_LINK
- See Also:
-
LINK_TYPE_DEPEND
- See Also:
-
LINK_TYPE_MADE
- See Also:
-
-
Constructor Details
-
Process
public Process() -
Process
public Process(int id)
-
-
Method Details
-
getTypeId
public int getTypeId() -
setTypeId
public void setTypeId(int value) -
withTypeId
-
getType
- Returns:
- process type object from
ProcessTypeCache.getProcessTypeSafe(int).
-
getTypeTitle
- Returns:
- process types title from
getType().
-
getCreateTime
-
setCreateTime
-
getCreateUserId
public int getCreateUserId() -
setCreateUserId
public void setCreateUserId(int createUserId) -
getCloseUserId
public int getCloseUserId() -
setCloseUserId
public void setCloseUserId(int closeUserId) -
getCloseTime
-
setCloseTime
-
getStatusId
public int getStatusId() -
setStatusId
public void setStatusId(int statusId) -
withStatusId
-
getStatus
- Returns:
- process status object from
ProcessTypeCache.getStatusSafe(int).
-
getStatusTitle
-
getAllowedToChangeStatusIds
-
getStatusTime
-
setStatusTime
-
getStatusUserId
public int getStatusUserId() -
setStatusUserId
public void setStatusUserId(int statusUserId) -
getStatusChange
-
setStatusChange
-
getPriority
public int getPriority() -
setPriority
public void setPriority(int priority) -
getPriorityColor
Provides configured priority color- Returns:
- HTML color string or
null
-
getTitle
-
getDescription
-
setDescription
-
withDescription
-
getGroups
- Returns:
- execution groups.
-
setGroups
-
withGroups
-
getGroupIds
-
getRoleSet
-
getGroupIdsWithRole
Returns the set of execution group IDs for the certain role.- Parameters:
roleId-- Returns:
-
getGroupIdsWithRoles
Returns the set of execution group IDs for the certain roles.- Parameters:
roleIds-- Returns:
-
getExecutors
-
setExecutors
-
withExecutors
-
getExecutorIds
-
getExecutorIdsWithRole
Returns the set of executor user IDs for the certain role.- Parameters:
roleId-- Returns:
-
getExecutorIdsWithRoles
Returns the set of executor user IDs for the certain roles.- Parameters:
roleIds-- Returns:
-
getExecutorIdsWithGroupAndRole
Returns the set of executor user IDs for the certain role and group.- Parameters:
groupId-roleId-- Returns:
-
getExecutorIdsWithGroups
Returns the set of executor user IDs for the certain groups.- Parameters:
groupIds-- Returns:
-
getChangesLog
-
compareTo
- Specified by:
compareToin interfaceComparable<Process>
-
equals
-
isEqualProperties
-
hashCode
public int hashCode() -
toString
-
clone
-
getProcessExecutors
Deprecated.UsegetExecutors(). -
getProcessExecutorsWithRole
Deprecated. -
getProcessExecutorsWithRoles
Deprecated. -
getProcessExecutorsInGroupWithRole
Deprecated. -
getProcessExecutorsWithGroups
Deprecated. -
setProcessExecutors
Deprecated.UsesetExecutors(Set). -
getProcessGroups
Deprecated.UsegetGroups(). -
getProcessGroupWithRole
Deprecated. -
getProcessGroupWithRoles
Deprecated. -
setProcessGroups
Deprecated.Use.invalid reference
#setGroups(Set)
-