Enum Class IdType
- All Implemented Interfaces:
Serializable,Comparable<IdType>,Constable
General-purpose annotation used for configuring details of user
identification.
- Author:
- Rakesh Roshan, Loganathan Sekar
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()Gets the alias.Gets the alias or type.static StringgetAliasStrOrSameStr(String type) Gets the alias str or same str.Look for id type or alias either "UIN" or "VID" or "USERID".static IdTypegetIDTypeOrDefault(String type) Gets the ID type or default.static StringgetIDTypeStrOrDefault(String type) Gets the ID type str or default.static StringgetIDTypeStrOrSameStr(String type) Gets the ID type str or same str.getType()get id-type.static voidinitializeAliases(org.springframework.core.env.Environment env) Initialize aliases.toString()static IdTypeReturns the enum constant of this class with the specified name.static IdType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UIN
The uin. -
VID
The vid. -
HANDLE
-
-
Field Details
-
DEFAULT_ID_TYPE
Value that indicates that default id.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getType
get id-type.- Returns:
- type
-
toString
-
getIDType
Look for id type or alias either "UIN" or "VID" or "USERID". default id is "UIN"- Parameters:
typeOrAlias- String id-type or alias- Returns:
- IDType Optional with IdType
-
getIDTypeOrDefault
Gets the ID type or default.- Parameters:
type- the type- Returns:
- the ID type or default
-
getIDTypeStrOrDefault
Gets the ID type str or default.- Parameters:
type- the type- Returns:
- the ID type str or default
-
getIDTypeStrOrSameStr
Gets the ID type str or same str.- Parameters:
type- the type- Returns:
- the ID type str or same str
-
getAliasStrOrSameStr
Gets the alias str or same str.- Parameters:
type- the type- Returns:
- the alias str or same str
-
initializeAliases
public static void initializeAliases(org.springframework.core.env.Environment env) Initialize aliases.- Parameters:
env- the env
-
getAlias
Gets the alias.- Returns:
- the alias
-
getAliasOrType
Gets the alias or type.- Returns:
- the alias or type
-