|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.jcr2spi.ItemManagerImpl
public class ItemManagerImpl
ItemManagerImpl
implements the ItemManager
interface.
Method Summary | |
---|---|
void |
created(ItemState state)
|
void |
dispose()
Disposes this ItemManager and frees resources. |
void |
dump(PrintStream ps)
Dumps the state of this instance in a human readable format for diagnostic purposes. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void dispose()
ItemManager
ItemManager
and frees resources.
dispose
in interface ItemManager
ItemManager.dispose()
public boolean nodeExists(Path path)
ItemManager
nodeExists
in interface ItemManager
path
- path to the node to be checked
ItemManager.nodeExists(Path)
public boolean propertyExists(Path path)
ItemManager
propertyExists
in interface ItemManager
path
- path to the property to be checked
ItemManager.propertyExists(Path)
public boolean itemExists(HierarchyEntry hierarchyEntry)
ItemManager
itemExists
in interface ItemManager
ItemManager.itemExists(HierarchyEntry)
public javax.jcr.Node getNode(Path path) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getNode
in interface ItemManager
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
ItemManager.getNode(Path)
public javax.jcr.Property getProperty(Path path) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getProperty
in interface ItemManager
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
ItemManager.getProperty(Path)
public javax.jcr.Item getItem(HierarchyEntry hierarchyEntry) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
getItem
in interface ItemManager
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
ItemManager.getItem(HierarchyEntry)
public boolean hasChildNodes(NodeEntry parentEntry) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
hasChildNodes
in interface ItemManager
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
ItemManager.hasChildNodes(NodeEntry)
public javax.jcr.NodeIterator getChildNodes(NodeEntry parentEntry) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
getChildNodes
in interface ItemManager
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
ItemManager.getChildNodes(NodeEntry)
public boolean hasChildProperties(NodeEntry parentEntry) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
hasChildProperties
in interface ItemManager
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
ItemManager.hasChildProperties(NodeEntry)
public javax.jcr.PropertyIterator getChildProperties(NodeEntry parentEntry) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
getChildProperties
in interface ItemManager
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
ItemManager.getChildProperties(NodeEntry)
public void dump(PrintStream ps)
Dumpable
dump
in interface Dumpable
ps
- stream to dump state toDumpable.dump(PrintStream)
public void created(ItemState state)
created
in interface ItemStateCreationListener
state
- public void statusChanged(ItemState state, int previousStatus)
ItemStateLifeCycleListener
ItemState
has changed its status. The new
status can be retrieved by calling ItemState.getStatus()
.
statusChanged
in interface ItemStateLifeCycleListener
state
- the item state, which changed its status
.previousStatus
- the previous status of state
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |