public enum ItemAccessMode extends Enum<ItemAccessMode>
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.RowRetriever
Enum Constant and Description |
---|
ITEM_NOT_NEEDED
The caller indicates that
StructureRow.getItem(java.lang.Class<I>) is not going to be called on the received structure row. |
NORMAL_ACCESS
The provided structure row will exhibit normal behavior.
|
SKIP_ACCESS_CHECK
The caller indicates that
StructureRow.getItem(java.lang.Class<I>) will be called, but the implementation should skip whatever access check it might
do. |
Modifier and Type | Method and Description |
---|---|
static ItemAccessMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ItemAccessMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemAccessMode NORMAL_ACCESS
StructureRow.getItem(java.lang.Class<I>)
is called, the user's access is going to be checked and the method will return null
if the user has no access.public static final ItemAccessMode ITEM_NOT_NEEDED
StructureRow.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 of StructureRow.getItem(java.lang.Class<I>)
, should it be called, is undefined.public static final ItemAccessMode SKIP_ACCESS_CHECK
StructureRow.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.public static ItemAccessMode[] values()
for (ItemAccessMode c : ItemAccessMode.values()) System.out.println(c);
public static ItemAccessMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2024 Tempo Software. All Rights Reserved.