Enum Class ItemAccessMode
- All Implemented Interfaces:
Serializable,Comparable<ItemAccessMode>,Constable
These values may be used to optimize the access to
StructureRow, based on whether the client code is going to use the
StructureRow.getItem(java.lang.Class<I>) method or not, and whether it is important that the current user has access to that item.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe caller indicates thatStructureRow.getItem(java.lang.Class<I>)is not going to be called on the received structure row.The provided structure row will exhibit normal behavior.The caller indicates thatStructureRow.getItem(java.lang.Class<I>)will be called, but the implementation should skip whatever access check it might do. -
Method Summary
Modifier and TypeMethodDescriptionstatic ItemAccessModeReturns the enum constant of this class with the specified name.static ItemAccessMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL_ACCESS
The provided structure row will exhibit normal behavior. When coming from a regular row source, it means that whenStructureRow.getItem(java.lang.Class<I>)is called, the user's access is going to be checked and the method will returnnullif the user has no access. -
ITEM_NOT_NEEDED
The caller indicates thatStructureRow.getItem(java.lang.Class<I>)is not going to be called on the received structure row. It's up to the implementation to decide what to do. The result ofStructureRow.getItem(java.lang.Class<I>), should it be called, is undefined. -
SKIP_ACCESS_CHECK
The caller indicates thatStructureRow.getItem(java.lang.Class<I>)will be called, but the implementation should skip whatever access check it might do. This is typically done when the permission to access the item by the current user has been already established.
-
-
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
-