Package org.duracloud.common.model
Enum DuraCloudUserType
- java.lang.Object
-
- java.lang.Enum<DuraCloudUserType>
-
- org.duracloud.common.model.DuraCloudUserType
-
- All Implemented Interfaces:
Serializable,Comparable<DuraCloudUserType>
public enum DuraCloudUserType extends Enum<DuraCloudUserType>
- Author:
- Andrew Woods Date: Mar 15, 2010
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DuraCloudUserTypefromString(String ut)StringtoString()static DuraCloudUserTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DuraCloudUserType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ROOT
public static final DuraCloudUserType ROOT
-
SYSTEM
public static final DuraCloudUserType SYSTEM
-
ADMIN
public static final DuraCloudUserType ADMIN
-
USER
public static final DuraCloudUserType USER
-
ANONYMOUS
public static final DuraCloudUserType ANONYMOUS
-
UNKNOWN
public static final DuraCloudUserType UNKNOWN
-
-
Method Detail
-
values
public static DuraCloudUserType[] 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 (DuraCloudUserType c : DuraCloudUserType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DuraCloudUserType 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
-
fromString
public static DuraCloudUserType fromString(String ut)
-
toString
public String toString()
- Overrides:
toStringin classEnum<DuraCloudUserType>
-
-