|
||||||||||
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 |
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. |
NodeIterator |
getChildNodes(NodeEntry parentEntry)
|
PropertyIterator |
getChildProperties(NodeEntry parentEntry)
|
Item |
getItem(HierarchyEntry hierarchyEntry)
|
Item |
getItem(Path path)
|
boolean |
hasChildNodes(NodeEntry parentEntry)
|
boolean |
hasChildProperties(NodeEntry parentEntry)
|
void |
itemCreated(Item item)
Called when an Item instance has been created. |
void |
itemDestroyed(Item item)
Called when an ItemImpl instance has been destroyed
(i.e. |
boolean |
itemExists(HierarchyEntry hierarchyEntry)
Checks if the item for given HierarchyEntry exists. |
boolean |
itemExists(Path path)
Checks if the item with the given path exists. |
void |
itemInvalidated(Item item)
Called when an Item instance has been invalidated
(i.e. |
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 itemExists(Path path)
ItemManager
itemExists
in interface ItemManager
path
- path to the item to be checked
ItemManager.itemExists(Path)
public boolean itemExists(HierarchyEntry hierarchyEntry)
ItemManager
itemExists
in interface ItemManager
ItemManager.itemExists(HierarchyEntry)
public Item getItem(Path path) throws PathNotFoundException, AccessDeniedException, RepositoryException
getItem
in interface ItemManager
PathNotFoundException
AccessDeniedException
RepositoryException
ItemManager.getItem(Path)
public Item getItem(HierarchyEntry hierarchyEntry) throws ItemNotFoundException, AccessDeniedException, RepositoryException
getItem
in interface ItemManager
ItemNotFoundException
AccessDeniedException
RepositoryException
ItemManager.getItem(HierarchyEntry)
public boolean hasChildNodes(NodeEntry parentEntry) throws ItemNotFoundException, AccessDeniedException, RepositoryException
hasChildNodes
in interface ItemManager
ItemNotFoundException
AccessDeniedException
RepositoryException
ItemManager.hasChildNodes(NodeEntry)
public NodeIterator getChildNodes(NodeEntry parentEntry) throws ItemNotFoundException, AccessDeniedException, RepositoryException
getChildNodes
in interface ItemManager
ItemNotFoundException
AccessDeniedException
RepositoryException
ItemManager.getChildNodes(NodeEntry)
public boolean hasChildProperties(NodeEntry parentEntry) throws ItemNotFoundException, AccessDeniedException, RepositoryException
hasChildProperties
in interface ItemManager
ItemNotFoundException
AccessDeniedException
RepositoryException
ItemManager.hasChildProperties(NodeEntry)
public PropertyIterator getChildProperties(NodeEntry parentEntry) throws ItemNotFoundException, AccessDeniedException, RepositoryException
getChildProperties
in interface ItemManager
ItemNotFoundException
AccessDeniedException
RepositoryException
ItemManager.getChildProperties(NodeEntry)
public void itemCreated(Item item)
ItemLifeCycleListener
Item
instance has been created.
itemCreated
in interface ItemLifeCycleListener
item
- the instance which has been createdItemLifeCycleListener.itemCreated(Item)
public void itemInvalidated(Item item)
ItemLifeCycleListener
Item
instance has been invalidated
(i.e. it has been temporarily rendered 'invalid').
Note that most methods of Item
,
Node
and Property
will throw an InvalidItemStateException
when called
on an 'invalidated' item.
itemInvalidated
in interface ItemLifeCycleListener
item
- the instance which has been discardedItemLifeCycleListener.itemInvalidated(Item)
public void itemDestroyed(Item item)
ItemLifeCycleListener
ItemImpl
instance has been destroyed
(i.e. it has been permanently rendered 'invalid').
Note that most Item
,
Node
and Property
methods will throw an InvalidItemStateException
when called
on a 'destroyed' item.
itemDestroyed
in interface ItemLifeCycleListener
item
- the instance which has been destroyedItemLifeCycleListener.itemDestroyed(Item)
public void dump(PrintStream ps)
Dumpable
dump
in interface Dumpable
ps
- stream to dump state toDumpable.dump(PrintStream)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |