public final class GroupUtils extends Object
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 com.edorasware.commons.core.entity.VariableName<Boolean,Boolean> |
IS_ADMINISTRATOR_GROUP
The variable that flags whether the associated group work object is the administrator group.
|
static com.edorasware.commons.core.entity.VariableName<Boolean,Boolean> |
IS_ALL_USERS_GROUP
The variable that flags whether the associated group work object is the all users group.
|
static com.edorasware.commons.core.entity.VariableName<Boolean,Boolean> |
IS_MANAGER_GROUP
The variable that flags whether the associated group work object is the manager group.
|
static com.edorasware.commons.core.entity.VariableName<Boolean,Boolean> |
IS_MODELER_GROUP
The variable that flags whether the associated group work object is the modeler group.
|
static com.edorasware.commons.core.entity.VariableName<Boolean,Boolean> |
IS_SUPERVISOR_GROUP
The variable that flags whether the associated group work object is the supervisor group.
|
static com.edorasware.commons.core.entity.VariableName<Boolean,Boolean> |
IS_USER_GROUP
The variable that flags whether the associated group work object is the user group.
|
static com.google.common.collect.ImmutableMap<com.edorasware.commons.core.entity.VariableName<Boolean,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(com.edorasware.commons.core.any.AnyWorkObject groupAnyWorkObject)
Converts an
AnyWorkObject user to a Group object. |
static com.edorasware.commons.core.any.AnyWorkObject |
convertToWorkObject(Group group)
Converts a
Group to an AnyWorkObject group object. |
public static final com.edorasware.commons.core.entity.VariableName<Boolean,Boolean> IS_USER_GROUP
public static final com.edorasware.commons.core.entity.VariableName<Boolean,Boolean> IS_MODELER_GROUP
public static final com.edorasware.commons.core.entity.VariableName<Boolean,Boolean> IS_MANAGER_GROUP
public static final com.edorasware.commons.core.entity.VariableName<Boolean,Boolean> IS_ADMINISTRATOR_GROUP
public static final com.edorasware.commons.core.entity.VariableName<Boolean,Boolean> IS_SUPERVISOR_GROUP
public static final com.edorasware.commons.core.entity.VariableName<Boolean,Boolean> IS_ALL_USERS_GROUP
public static final com.google.common.collect.ImmutableList<String> ALL_SYSTEM_GROUP_VARIABLE_NAMES
public static final com.google.common.collect.ImmutableMap<com.edorasware.commons.core.entity.VariableName<Boolean,Boolean>,GroupType> SYSTEM_GROUP_VARIABLE_NAME_TO_GROUP_TYPE_MAP
public static Group convertToGroup(com.edorasware.commons.core.any.AnyWorkObject groupAnyWorkObject)
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 com.edorasware.commons.core.any.AnyWorkObject convertToWorkObject(Group group)
Group
to an AnyWorkObject
group object.group
- the given Group
to convert to an AnyWorkObject
AnyWorkObject
IllegalArgumentException
- if the given Group
object is nullCopyright © 2010 - 2017 edorasware ag. All Rights Reserved.