Package org.apache.jackrabbit.core.state
Interface ItemStateManager
-
- All Known Subinterfaces:
UpdatableItemStateManager,VirtualItemStateProvider
- All Known Implementing Classes:
AbstractVISProvider,InternalXAVersionManager,LocalItemStateManager,SessionItemStateManager,SharedItemStateManager,VersionItemStateManager,VirtualNodeTypeStateProvider,XAItemStateManager
public interface ItemStateManagerTheItemStateManagerinterface provides methods for retrievingItemStateandNodeReferencesinstances by id.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ItemStategetItemState(ItemId id)Return an item state, given its item id.NodeReferencesgetNodeReferences(NodeId id)Return a node references object, given its target idbooleanhasItemState(ItemId id)Return a flag indicating whether an item state for a given item id exists.booleanhasNodeReferences(NodeId id)Return a flag indicating whether a node references object for a given target id exists.
-
-
-
Method Detail
-
getItemState
ItemState getItemState(ItemId id) throws NoSuchItemStateException, ItemStateException
Return an item state, given its item id.- Parameters:
id- item id- Returns:
- item state
- Throws:
NoSuchItemStateException- if the item does not existItemStateException- if an error occurs
-
hasItemState
boolean hasItemState(ItemId id)
Return a flag indicating whether an item state for a given item id exists.- Parameters:
id- item id- Returns:
trueif an item state exists, otherwisefalse
-
getNodeReferences
NodeReferences getNodeReferences(NodeId id) throws NoSuchItemStateException, ItemStateException
Return a node references object, given its target id- Parameters:
id- target id- Returns:
- node references object
- Throws:
NoSuchItemStateException- if the item does not existItemStateException- if an error occurs
-
hasNodeReferences
boolean hasNodeReferences(NodeId id)
Return a flag indicating whether a node references object for a given target id exists.- Parameters:
id- target id- Returns:
trueif a node reference object exists for the given id, otherwisefalse.
-
-