|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.jcr2spi.hierarchy.HierarchyManagerImpl
public class HierarchyManagerImpl
HierarchyManagerImpl implements the HierarchyManager
interface.
| Constructor Summary | |
|---|---|
HierarchyManagerImpl(TransientItemStateFactory isf,
IdFactory idFactory,
PathFactory pathFactory)
|
|
| Method Summary | |
|---|---|
void |
dispose()
Dispose this HierarchyManager |
int |
getDepth(HierarchyEntry hierarchyEntry)
Returns the depth of the specified item. |
HierarchyEntry |
getHierarchyEntry(ItemId itemId)
Resolves a itemId into a HierarchyEntry. |
HierarchyEntry |
getHierarchyEntry(Path qPath)
Resolves a path into a HierarchyEntry. |
ItemState |
getItemState(Path qPath)
Retrieves the HierarchyEntry corresponding to the given
path and resolves it to the underlying ItemState. |
int |
getRelativeDepth(NodeEntry ancestor,
HierarchyEntry descendant)
Returns the depth of the specified descendant relative to the given ancestor. |
NodeEntry |
getRootEntry()
|
HierarchyEntry |
lookup(ItemId workspaceItemId)
Lookup of HierarchyEntry workspace Id, that may be different
if a entry (or any of its ancestors) has been transiently moved or
reordered.
If the Hierarchy already lists the entry with the given workspaceItemId it is
returned otherwise null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HierarchyManagerImpl(TransientItemStateFactory isf,
IdFactory idFactory,
PathFactory pathFactory)
| Method Detail |
|---|
public void dispose()
HierarchyManagerHierarchyManager
dispose in interface HierarchyManagerHierarchyManager.dispose()public NodeEntry getRootEntry()
getRootEntry in interface HierarchyManagerHierarchyManager.getRootEntry()public HierarchyEntry lookup(ItemId workspaceItemId)
HierarchyManagerHierarchyEntry workspace Id, that may be different
if a entry (or any of its ancestors) has been transiently moved or
reordered.
If the Hierarchy already lists the entry with the given workspaceItemId it is
returned otherwise null. See HierarchyManager.getHierarchyEntry(ItemId)
for a method that resolves the ItemId including lookup in the persistence
layer if the entry has not been loaded yet.
lookup in interface HierarchyManagerHierarchyManager.lookup(ItemId)
public HierarchyEntry getHierarchyEntry(ItemId itemId)
throws ItemNotFoundException,
RepositoryException
HierarchyManagerHierarchyEntry.
getHierarchyEntry in interface HierarchyManagerPathNotFoundException
RepositoryException
ItemNotFoundExceptionHierarchyManager.getHierarchyEntry(ItemId)
public HierarchyEntry getHierarchyEntry(Path qPath)
throws PathNotFoundException,
RepositoryException
HierarchyManagerHierarchyEntry.
getHierarchyEntry in interface HierarchyManagerPathNotFoundException
RepositoryExceptionHierarchyManager.getHierarchyEntry(Path)
public ItemState getItemState(Path qPath)
throws PathNotFoundException,
RepositoryException
HierarchyManagerHierarchyEntry corresponding to the given
path and resolves it to the underlying ItemState.
getItemState in interface HierarchyManagerPathNotFoundException
RepositoryExceptionHierarchyManager.getItemState(Path)
public int getDepth(HierarchyEntry hierarchyEntry)
throws ItemNotFoundException,
RepositoryException
HierarchyManager
getDepth in interface HierarchyManagerRepositoryException - if another error occurs
ItemNotFoundExceptionHierarchyManager.getDepth(HierarchyEntry)
public int getRelativeDepth(NodeEntry ancestor,
HierarchyEntry descendant)
throws ItemNotFoundException,
RepositoryException
HierarchyManagerancestor and descendant
denote the same item 0 is returned. If ancestor does not
denote an ancestor -1 is returned.
getRelativeDepth in interface HierarchyManagerancestor - NodeEntry that must be an ancestor of the descendantdescendant - HierarchyEntry
ancestor does not
denote an ancestor of the item denoted by descendant
(or itself).
ItemNotFoundException - If either of the specified id's does not
denote an existing item.
RepositoryException - If another error occurs.HierarchyManager.getRelativeDepth(NodeEntry, HierarchyEntry)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||