Enum Class UserType

java.lang.Object
java.lang.Enum<UserType>
com.skava.model.datatransferobjects.UserType
All Implemented Interfaces:
Serializable, Comparable<UserType>, Constable

public enum UserType extends Enum<UserType>
This ENUM defines the possible type value of a user.
Author:
Infosys Equinox
  • Enum Constant Details

    • REGISTER

      public static final UserType REGISTER
    • GUEST

      public static final UserType GUEST
    • SUBSCRIBE

      public static final UserType SUBSCRIBE
  • Field Details

    • typeList

      public static final List<UserType> typeList
    • typeDataList

      public static final List<Integer> typeDataList
  • Method Details

    • values

      public static UserType[] 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

      public static UserType valueOf(String name)
      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 name
      NullPointerException - 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.