Package org.ametys.core.user
Enum Class User.UserCreationOrigin
- All Implemented Interfaces:
Serializable
,Comparable<User.UserCreationOrigin>
,java.lang.constant.Constable
- Enclosing class:
- User
Enumeration for the user creation origin
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUser created by an administratorWhen user creation is unknown or not availableUser created by systemUser created by user signup -
Method Summary
Modifier and TypeMethodDescriptionstatic User.UserCreationOrigin
Returns the enum constant of this class with the specified name.static User.UserCreationOrigin[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SYSTEM
User created by system -
ADMIN
User created by an administrator -
USER_SIGNUP
User created by user signup -
NOT_AVAILABLE
When user creation is unknown or not available
-
-
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
-