public enum RMRole extends Enum<RMRole>
Enum Constant and Description |
---|
Administrator |
PowerUser |
RecordsManager |
SecurityOfficer |
User |
Modifier and Type | Method and Description |
---|---|
static RMRole |
getRandomRole() |
static RMRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RMRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RMRole User
public static final RMRole PowerUser
public static final RMRole RecordsManager
public static final RMRole SecurityOfficer
public static final RMRole Administrator
public static RMRole[] values()
for (RMRole c : RMRole.values()) System.out.println(c);
public static RMRole valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static RMRole getRandomRole()
Copyright © 2015. All rights reserved.