org.apache.jackrabbit.jcr2spi
Interface ItemManager

All Known Implementing Classes:
ItemManagerImpl

public interface ItemManager

There's one ItemManager instance per Session instance. It is the factory for Node and Property instances.

The ItemManager's responsabilities are:

If the parent Session is an XASession, there is one ItemManager instance per started global transaction.


Method Summary
 void dispose()
          Disposes this ItemManager and frees resources.
 NodeIterator getChildNodes(NodeEntry parentEntry)
           
 PropertyIterator getChildProperties(NodeEntry parentEntry)
           
 Item getItem(HierarchyEntry hierarchyEntry)
           
 Node getNode(Path path)
           
 Property getProperty(Path path)
           
 boolean hasChildNodes(NodeEntry parentEntry)
           
 boolean hasChildProperties(NodeEntry parentEntry)
           
 boolean itemExists(HierarchyEntry hierarchyEntry)
          Checks if the item for given HierarchyEntry exists.
 boolean nodeExists(Path path)
          Checks if the node with the given path exists.
 boolean propertyExists(Path path)
          Checks if the property with the given path exists.
 

Method Detail

dispose

void dispose()
Disposes this ItemManager and frees resources.


nodeExists

boolean nodeExists(Path path)
Checks if the node with the given path exists.

Parameters:
path - path to the node to be checked
Returns:
true if the specified item exists

propertyExists

boolean propertyExists(Path path)
Checks if the property with the given path exists.

Parameters:
path - path to the property to be checked
Returns:
true if the specified item exists

itemExists

boolean itemExists(HierarchyEntry hierarchyEntry)
Checks if the item for given HierarchyEntry exists.

Parameters:
hierarchyEntry -
Returns:
true if the specified item exists

getNode

Node getNode(Path path)
             throws PathNotFoundException,
                    RepositoryException
Parameters:
path -
Returns:
Throws:
PathNotFoundException
RepositoryException

getProperty

Property getProperty(Path path)
                     throws PathNotFoundException,
                            RepositoryException
Parameters:
path -
Returns:
Throws:
PathNotFoundException
RepositoryException

getItem

Item getItem(HierarchyEntry hierarchyEntry)
             throws ItemNotFoundException,
                    RepositoryException
Parameters:
hierarchyEntry -
Returns:
Throws:
ItemNotFoundException
RepositoryException

hasChildNodes

boolean hasChildNodes(NodeEntry parentEntry)
                      throws ItemNotFoundException,
                             RepositoryException
Parameters:
parentEntry -
Returns:
Throws:
ItemNotFoundException
RepositoryException

getChildNodes

NodeIterator getChildNodes(NodeEntry parentEntry)
                           throws ItemNotFoundException,
                                  RepositoryException
Parameters:
parentEntry -
Returns:
Throws:
ItemNotFoundException
RepositoryException

hasChildProperties

boolean hasChildProperties(NodeEntry parentEntry)
                           throws ItemNotFoundException,
                                  RepositoryException
Parameters:
parentEntry -
Returns:
Throws:
ItemNotFoundException
RepositoryException

getChildProperties

PropertyIterator getChildProperties(NodeEntry parentEntry)
                                    throws ItemNotFoundException,
                                           RepositoryException
Parameters:
parentEntry -
Returns:
Throws:
ItemNotFoundException
RepositoryException


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