|
||||||||||
| 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)
|
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. |
| Method Detail |
|---|
void dispose()
ItemManager and frees resources.
boolean nodeExists(Path path)
path - path to the node to be checked
boolean propertyExists(Path path)
path - path to the property to be checked
boolean itemExists(HierarchyEntry hierarchyEntry)
hierarchyEntry -
Node getNode(Path path)
throws PathNotFoundException,
RepositoryException
path -
PathNotFoundException
RepositoryException
Property getProperty(Path path)
throws PathNotFoundException,
RepositoryException
path -
PathNotFoundException
RepositoryException
Item getItem(HierarchyEntry hierarchyEntry)
throws ItemNotFoundException,
RepositoryException
hierarchyEntry -
ItemNotFoundException
RepositoryException
boolean hasChildNodes(NodeEntry parentEntry)
throws ItemNotFoundException,
RepositoryException
parentEntry -
ItemNotFoundException
RepositoryException
NodeIterator getChildNodes(NodeEntry parentEntry)
throws ItemNotFoundException,
RepositoryException
parentEntry -
ItemNotFoundException
RepositoryException
boolean hasChildProperties(NodeEntry parentEntry)
throws ItemNotFoundException,
RepositoryException
parentEntry -
ItemNotFoundException
RepositoryException
PropertyIterator getChildProperties(NodeEntry parentEntry)
throws ItemNotFoundException,
RepositoryException
parentEntry -
ItemNotFoundException
RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||