|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ItemManager
There's one ItemManager
instance per Session
instance. It is the factory for Node
and Property
instances.
ItemManager
's responsabilities 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.
Session
is an XASession
, there is
one ItemManager
instance per started global transaction.
Method Summary | |
---|---|
void |
dispose()
Disposes this ItemManager and frees resources. |
NodeIterator |
getChildNodes(NodeEntry parentEntry)
|
PropertyIterator |
getChildProperties(NodeEntry parentEntry)
|
Item |
getItem(HierarchyEntry hierarchyEntry)
|
Item |
getItem(Path path)
|
boolean |
hasChildNodes(NodeEntry parentEntry)
|
boolean |
hasChildProperties(NodeEntry parentEntry)
|
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. |
Methods inherited from interface org.apache.jackrabbit.jcr2spi.ItemLifeCycleListener |
---|
itemCreated, itemDestroyed, itemInvalidated |
Method Detail |
---|
void dispose()
ItemManager
and frees resources.
boolean itemExists(Path path)
path
- path to the item to be checked
boolean itemExists(HierarchyEntry hierarchyEntry)
hierarchyEntry
-
Item getItem(Path path) throws PathNotFoundException, AccessDeniedException, RepositoryException
path
-
PathNotFoundException
AccessDeniedException
RepositoryException
Item getItem(HierarchyEntry hierarchyEntry) throws ItemNotFoundException, AccessDeniedException, RepositoryException
hierarchyEntry
-
ItemNotFoundException
AccessDeniedException
RepositoryException
boolean hasChildNodes(NodeEntry parentEntry) throws ItemNotFoundException, AccessDeniedException, RepositoryException
parentEntry
-
ItemNotFoundException
AccessDeniedException
RepositoryException
NodeIterator getChildNodes(NodeEntry parentEntry) throws ItemNotFoundException, AccessDeniedException, RepositoryException
parentEntry
-
ItemNotFoundException
AccessDeniedException
RepositoryException
boolean hasChildProperties(NodeEntry parentEntry) throws ItemNotFoundException, AccessDeniedException, RepositoryException
parentEntry
-
ItemNotFoundException
AccessDeniedException
RepositoryException
PropertyIterator getChildProperties(NodeEntry parentEntry) throws ItemNotFoundException, AccessDeniedException, RepositoryException
parentEntry
-
ItemNotFoundException
AccessDeniedException
RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |