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

The ItemStateManager interface provides methods for retrieving ItemState and NodeReferences instances by id.


Method Summary
 ItemState getItemState(ItemId id)
          Return an item state, given its item id.
 NodeReferences getNodeReferences(NodeId id)
          Return a node references object, given its target id
 boolean 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 exist
ItemStateException - 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, otherwise false

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 exist
ItemStateException - 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, otherwise false.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.