public class GroupUtils extends Object
Provides utility methods and constants related to working with groups.
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.collect.ImmutableList<String> |
ALL_SYSTEM_GROUP_VARIABLE_NAMES
A list of all the variable names that mark whether a group is one of the system groups.
|
static BooleanValue<Boolean> |
IS_ADMINISTRATOR_GROUP
The variable that flags whether the associated group work object is the administrator group.
|
static BooleanValue<Boolean> |
IS_ALL_USERS_GROUP
The variable that flags whether the associated group work object is the all users group.
|
static BooleanValue<Boolean> |
IS_MANAGER_GROUP
The variable that flags whether the associated group work object is the manager group.
|
static BooleanValue<Boolean> |
IS_MODELER_GROUP
The variable that flags whether the associated group work object is the modeler group.
|
static BooleanValue<Boolean> |
IS_SUPERVISOR_GROUP
The variable that flags whether the associated group work object is the supervisor group.
|
static BooleanValue<Boolean> |
IS_USER_GROUP
The variable that flags whether the associated group work object is the user group.
|
static com.google.common.collect.ImmutableMap<BooleanValue<Boolean>,GroupType> |
SYSTEM_GROUP_VARIABLE_NAME_TO_GROUP_TYPE_MAP
A mapping between the variable names of the system groups and the group types.
|
| Modifier and Type | Method and Description |
|---|---|
static Group |
convertToGroup(AnyWorkObject groupAnyWorkObject)
Converts an
AnyWorkObject user to a Group object. |
static AnyWorkObject |
convertToWorkObject(Group group)
Converts a
Group to an AnyWorkObject group object. |
public static final BooleanValue<Boolean> IS_USER_GROUP
The variable that flags whether the associated group work object is the user group.
public static final BooleanValue<Boolean> IS_MODELER_GROUP
The variable that flags whether the associated group work object is the modeler group.
public static final BooleanValue<Boolean> IS_MANAGER_GROUP
The variable that flags whether the associated group work object is the manager group.
public static final BooleanValue<Boolean> IS_ADMINISTRATOR_GROUP
The variable that flags whether the associated group work object is the administrator group.
public static final BooleanValue<Boolean> IS_SUPERVISOR_GROUP
The variable that flags whether the associated group work object is the supervisor group.
public static final BooleanValue<Boolean> IS_ALL_USERS_GROUP
The variable that flags whether the associated group work object is the all users group.
public static final com.google.common.collect.ImmutableList<String> ALL_SYSTEM_GROUP_VARIABLE_NAMES
A list of all the variable names that mark whether a group is one of the system groups.
public static final com.google.common.collect.ImmutableMap<BooleanValue<Boolean>,GroupType> SYSTEM_GROUP_VARIABLE_NAME_TO_GROUP_TYPE_MAP
A mapping between the variable names of the system groups and the group types.
public static Group convertToGroup(AnyWorkObject groupAnyWorkObject)
Converts an AnyWorkObject user to a Group object.
groupAnyWorkObject - the given AnyWorkObject group to convert to a Group objectGroup objectIllegalArgumentException - if the given AnyWorkObject group is nullpublic static AnyWorkObject convertToWorkObject(Group group)
Converts a Group to an AnyWorkObject group object.
group - the given Group to convert to an AnyWorkObjectAnyWorkObjectIllegalArgumentException - if the given Group object is nullCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.