Package com.attivio.sdk.security
Enum AttivioPrincipal.PrincipalType
- java.lang.Object
-
- java.lang.Enum<AttivioPrincipal.PrincipalType>
-
- com.attivio.sdk.security.AttivioPrincipal.PrincipalType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AttivioPrincipal.PrincipalType>
- Enclosing class:
- AttivioPrincipal
public static enum AttivioPrincipal.PrincipalType extends java.lang.Enum<AttivioPrincipal.PrincipalType>
Contains the possible principal types.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttivioPrincipal.PrincipalType
fromExternal(java.lang.String value)
Converts an external value to aPrincipalType
value.java.lang.String
toString()
Returns a string representation of the enumeration member.static AttivioPrincipal.PrincipalType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AttivioPrincipal.PrincipalType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USER
public static final AttivioPrincipal.PrincipalType USER
The 'user' principal type.
-
GROUP
public static final AttivioPrincipal.PrincipalType GROUP
The 'group' principal type.
-
UNKNOWN
public static final AttivioPrincipal.PrincipalType UNKNOWN
The 'unknown' principal type.
-
-
Method Detail
-
values
public static AttivioPrincipal.PrincipalType[] 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 (AttivioPrincipal.PrincipalType c : AttivioPrincipal.PrincipalType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AttivioPrincipal.PrincipalType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromExternal
public static AttivioPrincipal.PrincipalType fromExternal(java.lang.String value)
Converts an external value to aPrincipalType
value.- Parameters:
value
- the external value- Returns:
- the type
- Throws:
java.lang.IllegalArgumentException
- if an invalid principal type is passed in
-
toString
public java.lang.String toString()
Returns a string representation of the enumeration member.- Overrides:
toString
in classjava.lang.Enum<AttivioPrincipal.PrincipalType>
- Returns:
- the string representation of the enumeration member
-
-