Enum Class AccessType

java.lang.Object
java.lang.Enum<AccessType>
com.jbstrap.core.meta.enums.AccessType
All Implemented Interfaces:
Serializable, Comparable<AccessType>, Constable

public enum AccessType extends Enum<AccessType>
Data access types
Since:
4.0
Author:
JBStrap
  • Enum Constant Details

    • PUBLIC

      public static final AccessType PUBLIC

      If the DataDescriptor is set to public, every user can read or write it.

    • PRIVATE

      public static final AccessType PRIVATE

      If the DataDescriptor is set to private, only logged in users can read and write data from it.

      Use roles to restrict access. To do this, use the READ and WRITE settings in the DataDescriptor to specify the roles.

      See Also:
  • Method Details

    • values

      public static AccessType[] 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 AccessType 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
    • getName

      public String getName()
      Gets the name of the data access type
      Returns:
      The name of the data access type
    • fromName

      public static AccessType fromName(String name)
      Determines the data access type, by the specified name
      Parameters:
      name - The data access type name
      Returns:
      The data access type or null, if not found