public class ProcessGroup
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
groupId |
protected int |
roleId |
Constructor and Description |
---|
ProcessGroup() |
ProcessGroup(int groupId) |
ProcessGroup(int groupId,
int roleId) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkGroupAndRole(int groupId,
int roleId) |
ProcessGroup |
createProcessGroup() |
boolean |
equals(java.lang.Object obj) |
int |
getGroupId() |
static java.util.Set<java.lang.Integer> |
getGroupsWithRole(java.util.Set<ProcessGroup> processGroupSet,
int role) |
int |
getRoleId() |
int |
hashCode() |
static boolean |
isGroupWithRoleExist(java.util.Set<ProcessGroup> processGroupSet,
int group,
int role) |
static java.util.Set<ProcessGroup> |
parseFromStringSet(java.util.Set<java.lang.String> values) |
static java.util.Set<ProcessGroup> |
parseIdTitleSet(java.util.List<IdTitle> set) |
static java.util.Set<ProcessGroup> |
parseStringArray(java.lang.String[] array) |
static java.lang.String |
serialize(java.util.Set<ProcessGroup> processGroups) |
void |
setGroupId(int groupId) |
void |
setRoleId(int roleId) |
java.lang.String |
toGroupRolePair() |
static java.util.Set<java.lang.Integer> |
toGroupSet(java.util.Set<ProcessGroup> processGroups) |
static java.util.Set<ProcessGroup> |
toProcessGroupSet(java.util.Set<java.lang.Integer> set) |
public ProcessGroup()
public ProcessGroup(int groupId)
public ProcessGroup(int groupId, int roleId)
public int getRoleId()
public void setRoleId(int roleId)
public int getGroupId()
public void setGroupId(int groupId)
public java.lang.String toGroupRolePair()
public boolean checkGroupAndRole(int groupId, int roleId)
public ProcessGroup createProcessGroup()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static java.util.Set<ProcessGroup> parseIdTitleSet(java.util.List<IdTitle> set)
public static java.util.Set<ProcessGroup> parseStringArray(java.lang.String[] array)
public static final java.lang.String serialize(java.util.Set<ProcessGroup> processGroups)
public static final java.util.Set<java.lang.Integer> toGroupSet(java.util.Set<ProcessGroup> processGroups)
public static java.util.Set<ProcessGroup> toProcessGroupSet(java.util.Set<java.lang.Integer> set)
public static java.util.Set<ProcessGroup> parseFromStringSet(java.util.Set<java.lang.String> values)
public static java.util.Set<java.lang.Integer> getGroupsWithRole(java.util.Set<ProcessGroup> processGroupSet, int role)
public static boolean isGroupWithRoleExist(java.util.Set<ProcessGroup> processGroupSet, int group, int role)