public class ItemManagerImpl extends Object implements ItemManager, ItemStateCreationListener
ItemManagerImpl implements the ItemManager interface.| Modifier and Type | Method and Description |
|---|---|
void |
created(ItemState state) |
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 |
statusChanged(ItemState state,
int previousStatus)
Called after an
ItemState has changed its status. |
String |
toString()
Returns the the state of this instance in a human readable format.
|
public void dispose()
ItemManagerItemManager and frees resources.dispose in interface ItemManagerItemManager.dispose()public boolean nodeExists(Path path) throws javax.jcr.RepositoryException
ItemManagernodeExists in interface ItemManagerpath - path to the node to be checkedjavax.jcr.RepositoryExceptionItemManager.nodeExists(Path)public boolean propertyExists(Path path) throws javax.jcr.RepositoryException
ItemManagerpropertyExists in interface ItemManagerpath - path to the property to be checkedjavax.jcr.RepositoryExceptionItemManager.propertyExists(Path)public boolean itemExists(HierarchyEntry hierarchyEntry) throws javax.jcr.RepositoryException
ItemManageritemExists in interface ItemManagerjavax.jcr.RepositoryExceptionItemManager.itemExists(HierarchyEntry)public javax.jcr.Node getNode(Path path) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getNode in interface ItemManagerjavax.jcr.PathNotFoundExceptionjavax.jcr.RepositoryExceptionItemManager.getNode(Path)public javax.jcr.Property getProperty(Path path) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getProperty in interface ItemManagerjavax.jcr.PathNotFoundExceptionjavax.jcr.RepositoryExceptionItemManager.getProperty(Path)public javax.jcr.Item getItem(HierarchyEntry hierarchyEntry) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
getItem in interface ItemManagerjavax.jcr.ItemNotFoundExceptionjavax.jcr.RepositoryExceptionItemManager.getItem(HierarchyEntry)public boolean hasChildNodes(NodeEntry parentEntry) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
hasChildNodes in interface ItemManagerjavax.jcr.ItemNotFoundExceptionjavax.jcr.RepositoryExceptionItemManager.hasChildNodes(NodeEntry)public javax.jcr.NodeIterator getChildNodes(NodeEntry parentEntry) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
getChildNodes in interface ItemManagerjavax.jcr.ItemNotFoundExceptionjavax.jcr.RepositoryExceptionItemManager.getChildNodes(NodeEntry)public boolean hasChildProperties(NodeEntry parentEntry) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
hasChildProperties in interface ItemManagerjavax.jcr.ItemNotFoundExceptionjavax.jcr.RepositoryExceptionItemManager.hasChildProperties(NodeEntry)public javax.jcr.PropertyIterator getChildProperties(NodeEntry parentEntry) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
getChildProperties in interface ItemManagerjavax.jcr.ItemNotFoundExceptionjavax.jcr.RepositoryExceptionItemManager.getChildProperties(NodeEntry)public String toString()
public void created(ItemState state)
created in interface ItemStateCreationListenerstate - public void statusChanged(ItemState state, int previousStatus)
ItemStateLifeCycleListenerItemState has changed its status. The new
status can be retrieved by calling ItemState.getStatus().statusChanged in interface ItemStateLifeCycleListenerstate - the item state, which changed its status.previousStatus - the previous status of state.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.