Package com.jbstrap.core.meta.enums
Enum Class AccessType
- All Implemented Interfaces:
Serializable
,Comparable<AccessType>
,Constable
Data access types
- Since:
- 4.0
- Author:
- JBStrap
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AccessType
Determines the data access type, by the specified namegetName()
Gets the name of the data access typestatic AccessType
Returns the enum constant of this class with the specified name.static AccessType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PUBLIC
If the DataDescriptor is set to public, every user can read or write it.
-
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
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
-
getName
Gets the name of the data access type- Returns:
- The name of the data access type
-
fromName
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
-