Package org.ametys.core.right
Enum RightManager.RightResult
- java.lang.Object
-
- java.lang.Enum<RightManager.RightResult>
-
- org.ametys.core.right.RightManager.RightResult
-
- All Implemented Interfaces:
Serializable
,Comparable<RightManager.RightResult>
- Enclosing class:
- RightManager
public static enum RightManager.RightResult extends Enum<RightManager.RightResult>
Enumeration of all possible values returned by hasRight(user, right, context)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RIGHT_ALLOW
Indicates that a given user has the required right.RIGHT_DENY
Indicates that a given user does NOT have the required right.RIGHT_UNKNOWN
Indicates that the system knows nothing about the fact that a given user has a right or not.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RightManager.RightResult
valueOf(String name)
Returns the enum constant of this type with the specified name.static RightManager.RightResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RIGHT_ALLOW
public static final RightManager.RightResult RIGHT_ALLOW
Indicates that a given user has the required right.
-
RIGHT_DENY
public static final RightManager.RightResult RIGHT_DENY
Indicates that a given user does NOT have the required right.
-
RIGHT_UNKNOWN
public static final RightManager.RightResult RIGHT_UNKNOWN
Indicates that the system knows nothing about the fact that a given user has a right or not.
-
-
Method Detail
-
values
public static RightManager.RightResult[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RightManager.RightResult c : RightManager.RightResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RightManager.RightResult valueOf(String name)
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
-
-