@Internal public class TransientRow extends Object implements StructureRow
StructureRow.ZeroRowROW_ZERO| Constructor and Description |
|---|
TransientRow(StructureRow delegate,
long creatorId,
long originalId) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCreatorId() |
static long |
getCreatorId(StructureRow row) |
static StructureRow |
getDelegate(StructureRow row) |
<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.
|
long |
getOriginalId() |
static long |
getOriginalId(StructureRow row) |
long |
getRowId()
Returns row ID, a positive number.
|
long |
getSemantics()
Returns row's semantics.
|
static StructureRow |
replaceDelegate(StructureRow row,
Function<StructureRow,StructureRow> replacer)
Replaces delegate in the transient row chain.
|
String |
toString() |
public TransientRow(@NotNull
StructureRow delegate,
long creatorId,
long originalId)
public long getRowId()
StructureRowgetRowId in interface StructureRow@NotNull public ItemIdentity getItemId()
StructureRowgetItemId in interface StructureRowpublic long getSemantics()
StructureRowgetSemantics in interface StructureRow@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 objectnullpublic long getCreatorId()
public long getOriginalId()
public static long getCreatorId(StructureRow row)
public static long getOriginalId(StructureRow row)
public static StructureRow getDelegate(StructureRow row)
public static StructureRow replaceDelegate(StructureRow row, Function<StructureRow,StructureRow> replacer)
Copyright © 2022 ALM Works. All Rights Reserved.