|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jackrabbit.core.HierarchyManagerImpl
org.apache.jackrabbit.core.ZombieHierarchyManager
HierarchyManager implementation that is also able to
build/resolve paths of those items that have been moved or removed
(i.e. moved to the attic).
| Field Summary | |
protected ItemStateManager |
attic
the attic |
| Fields inherited from class org.apache.jackrabbit.core.HierarchyManagerImpl |
nsResolver, provider, rootNodeId |
| Constructor Summary | |
ZombieHierarchyManager(NodeId rootNodeId,
ItemStateManager provider,
ItemStateManager attic,
NamespaceResolver nsResolver)
|
|
| Method Summary | |
protected NodeState.ChildNodeEntry |
getChildNodeEntry(NodeState parent,
NodeId id)
Returns the ChildNodeEntry of parent with the
specified uuid or null if there's no such entry.
Low-level hook provided for specialized derived classes.
Also allows for removed child node entries. |
protected NodeState.ChildNodeEntry |
getChildNodeEntry(NodeState parent,
QName name,
int index)
Returns the ChildNodeEntry of parent with the
specified name and index or null
if there's no such entry.
Low-level hook provided for specialized derived classes.
Also allows for removed/renamed child node entries. |
protected ItemState |
getItemState(ItemId id)
Return an item state, given its item id. Low-level hook provided for specialized derived classes. Delivers state from attic if such exists, otherwise calls base class. |
protected NodeId |
getParentId(ItemState state)
Returns the parentUUID of the given item.
Low-level hook provided for specialized derived classes.
Also allows for removed items. |
protected boolean |
hasItemState(ItemId id)
Determines whether an item state for a given item id exists. Low-level hook provided for specialized derived classes. Returns true if there's state on the attic for the
requested item; otherwise delegates to base class. |
| Methods inherited from class org.apache.jackrabbit.core.HierarchyManagerImpl |
buildPath, getDepth, getName, getNamespaceResolver, getPath, getRelativeDepth, getRootNodeId, isAncestor, resolvePath, resolvePath, resolvePath, safeGetJCRPath, safeGetJCRPath |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ItemStateManager attic
| Constructor Detail |
public ZombieHierarchyManager(NodeId rootNodeId,
ItemStateManager provider,
ItemStateManager attic,
NamespaceResolver nsResolver)
| Method Detail |
protected ItemState getItemState(ItemId id)
throws NoSuchItemStateException,
ItemStateException
getItemState in class HierarchyManagerImplid - item id
ItemStateException - if an error occurs
NoSuchItemStateException - if the item does not existgetItemState(ItemId)protected boolean hasItemState(ItemId id)
true if there's state on the attic for the
requested item; otherwise delegates to base class.
hasItemState in class HierarchyManagerImplid - item id
true if an item state exists, otherwise
falsehasItemState(ItemId)protected NodeId getParentId(ItemState state)
parentUUID of the given item.
Low-level hook provided for specialized derived classes.
Also allows for removed items.
getParentId in class HierarchyManagerImplstate - item state
parentUUID of the given itemgetParentId(ItemState)
protected NodeState.ChildNodeEntry getChildNodeEntry(NodeState parent,
QName name,
int index)
ChildNodeEntry of parent with the
specified name and index or null
if there's no such entry.
Low-level hook provided for specialized derived classes.
Also allows for removed/renamed child node entries.
getChildNodeEntry in class HierarchyManagerImplparent - node statename - name of child node entryindex - index of child node entry
ChildNodeEntry of parent with
the specified name and index or
null if there's no such entry.getChildNodeEntry(NodeState, QName, int)
protected NodeState.ChildNodeEntry getChildNodeEntry(NodeState parent,
NodeId id)
ChildNodeEntry of parent with the
specified uuid or null if there's no such entry.
Low-level hook provided for specialized derived classes.
Also allows for removed child node entries.
getChildNodeEntry in class HierarchyManagerImplparent - node stateid - id of child node entry
ChildNodeEntry of parent with
the specified uuid or null if there's
no such entry.getChildNodeEntry(NodeState, NodeId)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||