|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.HierarchyManagerImpl org.apache.jackrabbit.core.ZombieHierarchyManager
public class 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 |
---|
provider, rootNodeId |
Constructor Summary | |
---|---|
ZombieHierarchyManager(HierarchyManagerImpl parent,
ItemStateManager provider,
ItemStateManager attic)
|
Method Summary | |
---|---|
protected ChildNodeEntry |
getChildNodeEntry(NodeState parent,
Name name,
int index)
Returns the ChildNodeEntry of parent with the
specified name and index or null
if there's no such entry. |
protected ChildNodeEntry |
getChildNodeEntry(NodeState parent,
NodeId id)
Returns the ChildNodeEntry of parent with the
specified uuid or null if there's no such entry. |
protected ItemState |
getItemState(ItemId id)
Return an item state, given its item id. |
protected NodeId |
getParentId(ItemState state)
Returns the parentUUID of the given item. |
protected boolean |
hasItemState(ItemId id)
Determines whether an item state for a given item id exists. |
Methods inherited from class org.apache.jackrabbit.core.HierarchyManagerImpl |
---|
buildPath, getDepth, getName, getName, getParentIds, getPath, getRelativeDepth, getRootNodeId, getShareRelativeDepth, isAncestor, isShareAncestor, pathResolved, resolveNodePath, resolvePath, resolvePath, resolvePath, resolvePropertyPath |
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(HierarchyManagerImpl parent, ItemStateManager provider, ItemStateManager attic)
Method Detail |
---|
protected ItemState getItemState(ItemId id) throws NoSuchItemStateException, ItemStateException
getItemState
in class HierarchyManagerImpl
id
- item id
NoSuchItemStateException
- if the item does not exist
ItemStateException
- if an error occursgetItemState(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 HierarchyManagerImpl
id
- item id
true
if an item state exists, otherwise
false
hasItemState(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 HierarchyManagerImpl
state
- item state
parentUUID
of the given itemgetParentId(ItemState)
protected ChildNodeEntry getChildNodeEntry(NodeState parent, Name 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 HierarchyManagerImpl
parent
- 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, Name, int)
protected 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 HierarchyManagerImpl
parent
- 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 |