Enum PrincipalTypeNature
- java.lang.Object
-
- java.lang.Enum<PrincipalTypeNature>
-
- org.cyclos.model.access.principaltypes.PrincipalTypeNature
-
- All Implemented Interfaces:
Serializable,Comparable<PrincipalTypeNature>,HasMessageKey
public enum PrincipalTypeNature extends Enum<PrincipalTypeNature> implements HasMessageKey
Contains the possible principal types
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCESS_CLIENTAn access client (remote applications)BUILT_INBuilt-in types, like login name, internal id, email and mobile phoneCUSTOM_FIELDAn unique profile fieldNFC_TOKENA NFC tag/device.TOKENA token (card, bar code, etc)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static PrincipalTypeNaturevalueOf(String name)Returns the enum constant of this type with the specified name.static PrincipalTypeNature[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BUILT_IN
public static final PrincipalTypeNature BUILT_IN
Built-in types, like login name, internal id, email and mobile phone
-
CUSTOM_FIELD
public static final PrincipalTypeNature CUSTOM_FIELD
An unique profile field
-
TOKEN
public static final PrincipalTypeNature TOKEN
A token (card, bar code, etc)
-
NFC_TOKEN
public static final PrincipalTypeNature NFC_TOKEN
A NFC tag/device.
-
ACCESS_CLIENT
public static final PrincipalTypeNature ACCESS_CLIENT
An access client (remote applications)
-
-
Method Detail
-
values
public static PrincipalTypeNature[] 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 (PrincipalTypeNature c : PrincipalTypeNature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PrincipalTypeNature 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
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-