Package ru.bgcrm.model.process
Class ProcessGroup
java.lang.Object
ru.bgcrm.model.process.ProcessGroup
- All Implemented Interfaces:
Comparable<ProcessGroup>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkGroupAndRole
(int groupId, int roleId) int
boolean
int
getGroupsWithRole
(Set<ProcessGroup> processGroupSet, int role) int
int
hashCode()
static boolean
isGroupWithRoleExist
(Set<ProcessGroup> processGroupSet, int group, int role) static Set
<ProcessGroup> parseFromStringSet
(Set<String> values) static final String
serialize
(Set<ProcessGroup> processGroups) void
setGroupId
(int groupId) void
setRoleId
(int roleId) toGroupSet
(Set<ProcessGroup> processGroups) static ProcessGroups
toProcessGroupSet
(Set<Integer> set, int roleId)
-
Field Details
-
Constructor Details
-
Method Details
-
getRoleId
public int getRoleId() -
setRoleId
public void setRoleId(int roleId) -
getGroupId
public int getGroupId() -
setGroupId
public void setGroupId(int groupId) -
toGroupRolePair
-
checkGroupAndRole
public boolean checkGroupAndRole(int groupId, int roleId) -
createProcessGroup
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ProcessGroup>
-
serialize
-
toGroupSet
-
toProcessGroupSet
-
parseFromStringSet
-
getGroupsWithRole
-
isGroupWithRoleExist
-