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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
int
boolean
getChangesLog
(Process oldProcess) int
int
getExecutorIdsWithGroupAndRole
(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.int
Deprecated.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.int
int
getTitle()
getType()
int
int
hashCode()
boolean
isEqualProperties
(Process process) void
setCloseTime
(Date closeTime) void
setCloseUserId
(int closeUserId) void
setCreateTime
(Date createTime) void
setCreateUserId
(int createUserId) void
setDescription
(String value) void
setExecutors
(Set<ProcessExecutor> value) void
setGroups
(ProcessGroups value) void
setPriority
(int priority) void
setProcessExecutors
(Set<ProcessExecutor> processExecutors) Deprecated.void
setProcessGroups
(Set<ProcessGroup> processGroups) Deprecated.void
setStatusChange
(StatusChange status) void
setStatusId
(int statusId) void
setStatusTime
(Date statusTime) void
setStatusUserId
(int statusUserId) void
setTypeId
(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) -
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:
compareTo
in 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.Useinvalid reference
#setGroups(Set)
-