Package ru.bgcrm.model.process
Class ProcessExecutor
java.lang.Object
ru.bgcrm.model.process.ProcessExecutor
Process related executor with group and role.
-
Constructor Summary
ConstructorDescriptionProcessExecutor
(int userId, int groupId) ProcessExecutor
(int userId, int groupId, int roleId) -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getExecutorsWithRole
(Set<ProcessExecutor> processExecutorSet, int role) int
static final Set
<ProcessExecutor> getProcessExecutors
(Set<ProcessExecutor> processExecutors, Set<ProcessGroup> processGroups) static final Set
<ProcessExecutor> getProcessExecutors
(Set<ProcessExecutor> processExecutors, ProcessGroup processGroup) int
int
int
hashCode()
boolean
static final Set
<ProcessExecutor> parseSafe
(String value, Set<ProcessGroup> processGroups) static final Set
<ProcessExecutor> parseUnsafe
(Set<String> values, Set<ProcessGroup> processGroups) static final String
serialize
(Set<ProcessExecutor> processExecutors) void
setGroupId
(int groupId) void
setRoleId
(int roleId) void
setUserId
(int userId) toExecutorSet
(Set<ProcessExecutor> processExecutors) toGroupSet
(Set<ProcessExecutor> processExecutors) static final Set
<ProcessExecutor> toProcessExecutorSet
(Set<Integer> userIds, ProcessGroup processGroup) static final void
updateProcessExecutors
(Set<ProcessExecutor> processExecutors, ProcessGroup processGroup, Set<Integer> executorIds)
-
Constructor Details
-
ProcessExecutor
public ProcessExecutor() -
ProcessExecutor
public ProcessExecutor(int userId, int groupId) -
ProcessExecutor
public ProcessExecutor(int userId, int groupId, int roleId)
-
-
Method Details
-
getUserId
public int getUserId() -
setUserId
public void setUserId(int userId) -
getGroupId
public int getGroupId() -
setGroupId
public void setGroupId(int groupId) -
getRoleId
public int getRoleId() -
setRoleId
public void setRoleId(int roleId) -
isInProcessGroup
-
clone
-
hashCode
public int hashCode() -
equals
-
parseSafe
-
parseUnsafe
public static final Set<ProcessExecutor> parseUnsafe(Set<String> values, Set<ProcessGroup> processGroups) -
serialize
-
toGroupSet
-
toExecutorSet
-
toProcessExecutorSet
public static final Set<ProcessExecutor> toProcessExecutorSet(Set<Integer> userIds, ProcessGroup processGroup) -
getProcessExecutors
public static final Set<ProcessExecutor> getProcessExecutors(Set<ProcessExecutor> processExecutors, ProcessGroup processGroup) -
getProcessExecutors
public static final Set<ProcessExecutor> getProcessExecutors(Set<ProcessExecutor> processExecutors, Set<ProcessGroup> processGroups) -
createProcessGroup
-
updateProcessExecutors
public static final void updateProcessExecutors(Set<ProcessExecutor> processExecutors, ProcessGroup processGroup, Set<Integer> executorIds) -
getExecutorsWithRole
-