Package org.cyclos.model.users.groups
Enum AdminGroupType
- java.lang.Object
-
- java.lang.Enum<AdminGroupType>
-
- org.cyclos.model.users.groups.AdminGroupType
-
- All Implemented Interfaces:
Serializable,Comparable<AdminGroupType>
public enum AdminGroupType extends Enum<AdminGroupType>
Contains the types for special administrator groups
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AdminGroupTypevalueOf(String name)Returns the enum constant of this type with the specified name.static AdminGroupType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GLOBAL
public static final AdminGroupType GLOBAL
Global administrators can manage networks and global data and switch to a specific network, impersonating that network's admin
-
NETWORK
public static final AdminGroupType NETWORK
Network administrators manage everything within a network. They always have thePermission.SYSTEM_CONFIGURATION_VIEW,Permission.SYSTEM_CONFIGURATION_MANAGE,Permission.USER_CONFIGURATION_VIEW,Permission.USER_CONFIGURATION_MANAGE,Permission.ACCOUNT_CONFIGURATION_VIEWandPermission.ACCOUNT_CONFIGURATION_MANAGEpermissions, no matter which products they have.
-
-
Method Detail
-
values
public static AdminGroupType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AdminGroupType c : AdminGroupType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AdminGroupType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-