public interface ItemManager
ItemManager instance per Session
instance. It is the factory for Node and Property
instances.
The ItemManager's responsibilities are:
Item instances by ItemState
whereas Node and Item are only providing relative access.
Node or Property,
given its absolute path.
Node
or Property that doesn't exist yet and needs to be created first.
Node or Property associated with the same
Session instance.
Session is an XASession, there is
one ItemManager instance per started global transaction.| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes this
ItemManager and frees resources. |
NodeIterator |
getChildNodes(NodeEntry parentEntry) |
PropertyIterator |
getChildProperties(NodeEntry parentEntry) |
Item |
getItem(HierarchyEntry hierarchyEntry) |
Node |
getNode(org.apache.jackrabbit.spi.Path path) |
Property |
getProperty(org.apache.jackrabbit.spi.Path path) |
boolean |
hasChildNodes(NodeEntry parentEntry) |
boolean |
hasChildProperties(NodeEntry parentEntry) |
boolean |
itemExists(HierarchyEntry hierarchyEntry)
Checks if the item for given HierarchyEntry exists.
|
boolean |
nodeExists(org.apache.jackrabbit.spi.Path path)
Checks if the node with the given path exists.
|
boolean |
propertyExists(org.apache.jackrabbit.spi.Path path)
Checks if the property with the given path exists.
|
void dispose()
ItemManager and frees resources.boolean nodeExists(org.apache.jackrabbit.spi.Path path)
path - path to the node to be checkedboolean propertyExists(org.apache.jackrabbit.spi.Path path)
path - path to the property to be checkedboolean itemExists(HierarchyEntry hierarchyEntry)
hierarchyEntry - Node getNode(org.apache.jackrabbit.spi.Path path) throws PathNotFoundException, RepositoryException
path - PathNotFoundExceptionRepositoryExceptionProperty getProperty(org.apache.jackrabbit.spi.Path path) throws PathNotFoundException, RepositoryException
path - PathNotFoundExceptionRepositoryExceptionItem getItem(HierarchyEntry hierarchyEntry) throws ItemNotFoundException, RepositoryException
hierarchyEntry - ItemNotFoundExceptionRepositoryExceptionboolean hasChildNodes(NodeEntry parentEntry) throws ItemNotFoundException, RepositoryException
parentEntry - ItemNotFoundExceptionRepositoryExceptionNodeIterator getChildNodes(NodeEntry parentEntry) throws ItemNotFoundException, RepositoryException
parentEntry - ItemNotFoundExceptionRepositoryExceptionboolean hasChildProperties(NodeEntry parentEntry) throws ItemNotFoundException, RepositoryException
parentEntry - ItemNotFoundExceptionRepositoryExceptionPropertyIterator getChildProperties(NodeEntry parentEntry) throws ItemNotFoundException, RepositoryException
parentEntry - ItemNotFoundExceptionRepositoryExceptionCopyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.