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.
If the parent 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. |
javax.jcr.NodeIterator |
getChildNodes(NodeEntry parentEntry) |
javax.jcr.PropertyIterator |
getChildProperties(NodeEntry parentEntry) |
javax.jcr.Item |
getItem(HierarchyEntry hierarchyEntry) |
javax.jcr.Node |
getNode(Path path) |
javax.jcr.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.
|
void dispose()
ItemManager and frees resources.boolean nodeExists(Path path) throws javax.jcr.RepositoryException
path - path to the node to be checkedjavax.jcr.RepositoryExceptionboolean propertyExists(Path path) throws javax.jcr.RepositoryException
path - path to the property to be checkedjavax.jcr.RepositoryExceptionboolean itemExists(HierarchyEntry hierarchyEntry) throws javax.jcr.RepositoryException
hierarchyEntry - javax.jcr.RepositoryExceptionjavax.jcr.Node getNode(Path path) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
path - javax.jcr.PathNotFoundExceptionjavax.jcr.RepositoryExceptionjavax.jcr.Property getProperty(Path path) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
path - javax.jcr.PathNotFoundExceptionjavax.jcr.RepositoryExceptionjavax.jcr.Item getItem(HierarchyEntry hierarchyEntry) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
hierarchyEntry - javax.jcr.ItemNotFoundExceptionjavax.jcr.RepositoryExceptionboolean hasChildNodes(NodeEntry parentEntry) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
parentEntry - javax.jcr.ItemNotFoundExceptionjavax.jcr.RepositoryExceptionjavax.jcr.NodeIterator getChildNodes(NodeEntry parentEntry) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
parentEntry - javax.jcr.ItemNotFoundExceptionjavax.jcr.RepositoryExceptionboolean hasChildProperties(NodeEntry parentEntry) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
parentEntry - javax.jcr.ItemNotFoundExceptionjavax.jcr.RepositoryExceptionjavax.jcr.PropertyIterator getChildProperties(NodeEntry parentEntry) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
parentEntry - javax.jcr.ItemNotFoundExceptionjavax.jcr.RepositoryExceptionCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.