Package org.craftercms.profile.api
Enum TenantAction
- java.lang.Object
-
- java.lang.Enum<TenantAction>
-
- org.craftercms.profile.api.TenantAction
-
- All Implemented Interfaces:
Serializable
,Comparable<TenantAction>
public enum TenantAction extends Enum<TenantAction>
Enum with actions that can be executed on tenants and their user profiles by applications.- Author:
- avasquez
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATE_TENANT
DELETE_TENANT
MANAGE_PROFILES
MANAGE_TICKETS
READ_TENANT
UPDATE_TENANT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TenantAction
valueOf(String name)
Returns the enum constant of this type with the specified name.static TenantAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE_TENANT
public static final TenantAction CREATE_TENANT
-
READ_TENANT
public static final TenantAction READ_TENANT
-
UPDATE_TENANT
public static final TenantAction UPDATE_TENANT
-
DELETE_TENANT
public static final TenantAction DELETE_TENANT
-
MANAGE_PROFILES
public static final TenantAction MANAGE_PROFILES
-
MANAGE_TICKETS
public static final TenantAction MANAGE_TICKETS
-
-
Method Detail
-
values
public static TenantAction[] 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 (TenantAction c : TenantAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TenantAction 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
-
-