Enum AccessLevel
- All Implemented Interfaces:
Serializable
,Comparable<AccessLevel>
,Constable
The specific access level granted to the cloud foundry user that's calling the
endpoints.
- Since:
- 2.0.0
- Author:
- Madhura Bhave
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionFull access to all endpoints.Restricted access to a limited set of endpoints. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The request attribute used to store theAccessLevel
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if the access level should allow access to the specified ID.static AccessLevel
Returns the enum constant of this type with the specified name.static AccessLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RESTRICTED
Restricted access to a limited set of endpoints. -
FULL
Full access to all endpoints.
-
-
Field Details
-
REQUEST_ATTRIBUTE
The request attribute used to store theAccessLevel
.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
isAccessAllowed
Returns if the access level should allow access to the specified ID.- Parameters:
id
- the ID to check- Returns:
true
if access is allowed
-