Enum Class UserType
- All Implemented Interfaces:
Serializable
,Comparable<UserType>
,Constable
This ENUM defines the possible type value of a user.
- Author:
- Infosys Equinox
-
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 TypeMethodDescriptionstatic boolean
doSkipMandatoryPropCheck
(int type) This method is used to check whether the given user type is skipped mandatory parameter.static boolean
isValidUserType
(int type) This method is used to check whether the given user type is valid or not.static boolean
restrictAddressOperationsType
(int type) This method is used to check whether the given user type is restricted for address operation or not.static boolean
restrictCredentialOperationsType
(int type) This method is used to check whether the given user type is restricted for credential operation or not.static boolean
restrictNotificationOperationsType
(int type) This method is used to check whether the given user type is restricted for notification operation or not.static UserType
Returns the enum constant of this class with the specified name.static UserType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REGISTER
-
GUEST
-
SUBSCRIBE
-
-
Field Details
-
typeList
-
typeDataList
-
-
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
-
isValidUserType
public static boolean isValidUserType(int type) This method is used to check whether the given user type is valid or not.- Parameters:
type
- Indicates the user type value.- Returns:
- The boolean value if it is valid user type.
-
restrictAddressOperationsType
public static boolean restrictAddressOperationsType(int type) This method is used to check whether the given user type is restricted for address operation or not.- Parameters:
type
- Indicates the user type value.- Returns:
- The boolean value if the given user type is restricted.
-
restrictCredentialOperationsType
public static boolean restrictCredentialOperationsType(int type) This method is used to check whether the given user type is restricted for credential operation or not.- Parameters:
type
- Indicates the user type value.- Returns:
- The boolean value if the given user type is restricted.
-
restrictNotificationOperationsType
public static boolean restrictNotificationOperationsType(int type) This method is used to check whether the given user type is restricted for notification operation or not.- Parameters:
type
- Indicates the user type value.- Returns:
- The boolean value if the given user type is restricted.
-
doSkipMandatoryPropCheck
public static boolean doSkipMandatoryPropCheck(int type) This method is used to check whether the given user type is skipped mandatory parameter.- Parameters:
type
- Indicates the user type value.- Returns:
- The boolean value if the given user type is skipped for mandatory parameter.
-