@Internal public class SimpleRow extends Object implements StructureRow
StructureRow.ZeroRow| Modifier and Type | Field and Description |
|---|---|
protected ItemIdentity |
myItemId |
protected ItemResolver |
myResolver |
protected long |
myRowId |
protected long |
mySemantics |
ROW_ZERO| Modifier and Type | Method and Description |
|---|---|
static StructureRow |
create(long rowId,
ItemIdentity itemId,
long semantics,
ItemResolver resolver) |
static StructureRow |
create(long rowId,
ItemIdentity itemId,
long semantics,
ItemResolver resolver,
boolean skipAccessCheck) |
static StructureRow |
create(long rowId,
ItemIdentity itemId,
long semantics,
ItemResolver resolver,
ItemAccessMode accessMode) |
<I> I |
getItem(Class<I> itemClass)
Tries to resolve the item based on its ID, that is, get an object that represents this item.
|
ItemIdentity |
getItemId()
Returns item ID for the item shown in this row.
|
protected String |
getQualifier() |
long |
getRowId()
Returns row ID, a positive number.
|
long |
getSemantics()
Returns row's semantics.
|
protected Object |
resolve() |
String |
toString() |
static StructureRow |
tryMakeUnchecked(StructureRow r) |
protected final long myRowId
@NotNull protected final ItemIdentity myItemId
protected final long mySemantics
@NotNull protected final ItemResolver myResolver
@NotNull public static StructureRow create(long rowId, @NotNull ItemIdentity itemId, long semantics, @Nullable ItemResolver resolver)
public static StructureRow create(long rowId, ItemIdentity itemId, long semantics, @Nullable ItemResolver resolver, ItemAccessMode accessMode)
public static StructureRow create(long rowId, ItemIdentity itemId, long semantics, @Nullable ItemResolver resolver, boolean skipAccessCheck)
public long getRowId()
StructureRowgetRowId in interface StructureRow@NotNull public ItemIdentity getItemId()
StructureRowgetItemId in interface StructureRowpublic long getSemantics()
StructureRowgetSemantics in interface StructureRowprotected String getQualifier()
@Nullable
public <I> I getItem(@NotNull
Class<I> itemClass)
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 null in many different cases:
StructureRow was created with the ItemAccessMode.ITEM_NOT_NEEDED flag.itemClass.getItem in interface StructureRowI - type of item's objectsitemClass - expected class of the item's objectnullprotected Object resolve()
public static StructureRow tryMakeUnchecked(StructureRow r)
Copyright © 2022 ALM Works. All Rights Reserved.