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  ItemManagerand 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. | 
| void | statusChanged(ItemState state,
             int previousStatus)Called after an  ItemStatehas 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 RepositoryException
ItemManagernodeExists in interface ItemManagerpath - path to the node to be checkedRepositoryExceptionItemManager.nodeExists(Path)public boolean propertyExists(Path path) throws RepositoryException
ItemManagerpropertyExists in interface ItemManagerpath - path to the property to be checkedRepositoryExceptionItemManager.propertyExists(Path)public boolean itemExists(HierarchyEntry hierarchyEntry) throws RepositoryException
ItemManageritemExists in interface ItemManagerRepositoryExceptionItemManager.itemExists(HierarchyEntry)public Node getNode(Path path) throws PathNotFoundException, RepositoryException
getNode in interface ItemManagerPathNotFoundExceptionRepositoryExceptionItemManager.getNode(Path)public Property getProperty(Path path) throws PathNotFoundException, RepositoryException
getProperty in interface ItemManagerPathNotFoundExceptionRepositoryExceptionItemManager.getProperty(Path)public Item getItem(HierarchyEntry hierarchyEntry) throws ItemNotFoundException, RepositoryException
getItem in interface ItemManagerItemNotFoundExceptionRepositoryExceptionItemManager.getItem(HierarchyEntry)public boolean hasChildNodes(NodeEntry parentEntry) throws ItemNotFoundException, RepositoryException
hasChildNodes in interface ItemManagerItemNotFoundExceptionRepositoryExceptionItemManager.hasChildNodes(NodeEntry)public NodeIterator getChildNodes(NodeEntry parentEntry) throws ItemNotFoundException, RepositoryException
getChildNodes in interface ItemManagerItemNotFoundExceptionRepositoryExceptionItemManager.getChildNodes(NodeEntry)public boolean hasChildProperties(NodeEntry parentEntry) throws ItemNotFoundException, RepositoryException
hasChildProperties in interface ItemManagerItemNotFoundExceptionRepositoryExceptionItemManager.hasChildProperties(NodeEntry)public PropertyIterator getChildProperties(NodeEntry parentEntry) throws ItemNotFoundException, RepositoryException
getChildProperties in interface ItemManagerItemNotFoundExceptionRepositoryExceptionItemManager.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–2021 The Apache Software Foundation. All rights reserved.