org.apache.jackrabbit.core.state
Interface ItemStateManager

All Known Subinterfaces:
UpdatableItemStateManager, VirtualItemStateProvider
All Known Implementing Classes:
AbstractVISProvider, LocalItemStateManager, SessionItemStateManager, SharedItemStateManager, XAVersionManager

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(NodeReferencesId 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(NodeReferencesId id)
          Return a flag indicating whether a node references object for a given target id exists.
 

Method Detail

getItemState

public 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

public 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

public NodeReferences getNodeReferences(NodeReferencesId 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

public boolean hasNodeReferences(NodeReferencesId 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-2006 The Apache Software Foundation. All Rights Reserved.