Class SimpleRow
Object
SimpleRow
- All Implemented Interfaces:
StructureRow
-
Nested Class Summary
Nested classes/interfaces inherited from interface StructureRow
StructureRow.ZeroRow -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ItemIdentityprotected final ItemResolverprotected final longprotected final longFields inherited from interface StructureRow
ROW_ZERO -
Method Summary
Modifier and TypeMethodDescriptionstatic StructureRowcreate(long rowId, ItemIdentity itemId, long semantics, ItemResolver resolver) static StructureRowcreate(long rowId, ItemIdentity itemId, long semantics, ItemResolver resolver, boolean skipAccessCheck) static StructureRowcreate(long rowId, ItemIdentity itemId, long semantics, ItemResolver resolver, ItemAccessMode accessMode) <I> ITries to resolve the item based on its ID, that is, get an object that represents this item.Returns item ID for the item shown in this row.protected StringlonggetRowId()Returns row ID, a positive number.longReturns row's semantics.protected Objectresolve()toString()static StructureRow
-
Field Details
-
myRowId
protected final long myRowId -
myItemId
-
mySemantics
protected final long mySemantics -
myResolver
-
-
Method Details
-
create
@NotNull public static StructureRow create(long rowId, @NotNull ItemIdentity itemId, long semantics, @Nullable ItemResolver resolver) -
create
public static StructureRow create(long rowId, ItemIdentity itemId, long semantics, @Nullable ItemResolver resolver, ItemAccessMode accessMode) -
create
public static StructureRow create(long rowId, ItemIdentity itemId, long semantics, @Nullable ItemResolver resolver, boolean skipAccessCheck) -
getRowId
public long getRowId()Description copied from interface:StructureRowReturns row ID, a positive number.- Specified by:
getRowIdin interfaceStructureRow
-
getItemId
Description copied from interface:StructureRowReturns item ID for the item shown in this row.- Specified by:
getItemIdin interfaceStructureRow
-
getSemantics
public long getSemantics()Description copied from interface:StructureRowReturns row's semantics.- Specified by:
getSemanticsin interfaceStructureRow
-
getQualifier
-
toString
-
getItem
Description copied from interface:StructureRowTries to resolve the item based on its ID, that is, get an object that represents this item. Resolution includes checking the current user's access to that item, unless the row is created with an additional flag indicating that the access check should be skipped.
This method may return
nullin many different cases:- The item does not exist.
- The item is not accessible by the current user.
- The instance of
StructureRowwas created with theItemAccessMode.ITEM_NOT_NEEDEDflag. - The plugin module that is responsible for this type of items is disabled or missing.
- Item's object type is not reducible to
itemClass.
- Specified by:
getItemin interfaceStructureRow- Type Parameters:
I- type of item's objects- Parameters:
itemClass- expected class of the item's object- Returns:
- the item's object, or
null
-
resolve
-
tryMakeUnchecked
-