Enum UserPermissions
- java.lang.Object
-
- java.lang.Enum<UserPermissions>
-
- org.alfresco.rest.rm.community.model.user.UserPermissions
-
- All Implemented Interfaces:
Serializable,Comparable<UserPermissions>
public enum UserPermissions extends Enum<UserPermissions>
Constants for RM user capabilities- Since:
- 2.6
- Author:
- Kristijan Conkas
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PERMISSION_FILE_RECORDSPERMISSION_FILINGPERMISSION_READ_RECORDS
-
Field Summary
Fields Modifier and Type Field Description StringpermissionId
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UserPermissionsvalueOf(String name)Returns the enum constant of this type with the specified name.static UserPermissions[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PERMISSION_FILING
public static final UserPermissions PERMISSION_FILING
-
PERMISSION_READ_RECORDS
public static final UserPermissions PERMISSION_READ_RECORDS
-
PERMISSION_FILE_RECORDS
public static final UserPermissions PERMISSION_FILE_RECORDS
-
-
Field Detail
-
permissionId
public final String permissionId
-
-
Method Detail
-
values
public static UserPermissions[] 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 (UserPermissions c : UserPermissions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UserPermissions 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
-
-