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 ItemStateManager
TheItemStateManager
interface provides methods for retrievingItemState
andNodeReferences
instances by id.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ItemState
getItemState(ItemId id)
Return an item state, given its item id.NodeReferences
getNodeReferences(NodeId id)
Return a node references object, given its target idboolean
hasItemState(ItemId id)
Return a flag indicating whether an item state for a given item id exists.boolean
hasNodeReferences(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:
true
if 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:
true
if a node reference object exists for the given id, otherwisefalse
.
-
-