Enum User.Profile
- java.lang.Object
-
- java.lang.Enum<User.Profile>
-
- org.gcube.spatial.data.geonetwork.model.User.Profile
-
- All Implemented Interfaces:
Serializable,Comparable<User.Profile>
- Enclosing class:
- User
public static enum User.Profile extends Enum<User.Profile>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AdministratorEditorGuestMonitorRegisteredUserReviewerUserAdmin
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static User.ProfilevalueOf(String name)Returns the enum constant of this type with the specified name.static User.Profile[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Editor
public static final User.Profile Editor
-
RegisteredUser
public static final User.Profile RegisteredUser
-
Administrator
public static final User.Profile Administrator
-
UserAdmin
public static final User.Profile UserAdmin
-
Reviewer
public static final User.Profile Reviewer
-
Guest
public static final User.Profile Guest
-
Monitor
public static final User.Profile Monitor
-
-
Method Detail
-
values
public static User.Profile[] 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 (User.Profile c : User.Profile.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static User.Profile 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
-
-