Class UniqueIdResolver
- java.lang.Object
-
- org.apache.jackrabbit.jcr2spi.hierarchy.UniqueIdResolver
-
- All Implemented Interfaces:
EntryFactory.NodeEntryListener
,ItemStateCreationListener
,ItemStateLifeCycleListener
public class UniqueIdResolver extends Object implements ItemStateCreationListener, EntryFactory.NodeEntryListener
UniqueIdResolver
allows to retrieveNodeEntry
instances that are identified by a uniqueID.
-
-
Constructor Summary
Constructors Constructor Description UniqueIdResolver(ItemStateFactory isf)
Creates a newUniqueIdResolver
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
created(ItemState state)
Nothing to do.void
dispose()
void
entryCreated(NodeEntry entry)
NodeEntry
lookup(String uniqueId)
NodeEntry
resolve(NodeId nodeId, NodeEntry rootEntry)
void
statusChanged(ItemState state, int previousStatus)
Updates the internal id-lookup if the given state - is identify by a uniqueID and got removed - was modified and now is identified by a uniqueID - was modified and is not identified by a uniqueID any morevoid
uniqueIdChanged(NodeEntry entry, String previousUniqueID)
-
-
-
Constructor Detail
-
UniqueIdResolver
public UniqueIdResolver(ItemStateFactory isf)
Creates a newUniqueIdResolver
.
-
-
Method Detail
-
dispose
public void dispose()
-
resolve
public NodeEntry resolve(NodeId nodeId, NodeEntry rootEntry) throws ItemNotFoundException, RepositoryException
-
statusChanged
public void statusChanged(ItemState state, int previousStatus)
Updates the internal id-lookup if the given state - is identify by a uniqueID and got removed - was modified and now is identified by a uniqueID - was modified and is not identified by a uniqueID any more- Specified by:
statusChanged
in interfaceItemStateLifeCycleListener
- Parameters:
state
-previousStatus
-- See Also:
ItemStateLifeCycleListener.statusChanged(ItemState, int)
-
created
public void created(ItemState state)
Nothing to do. The lookUp is filled entry creation and/or modification of its uniqueID- Specified by:
created
in interfaceItemStateCreationListener
- Parameters:
state
-- See Also:
ItemStateCreationListener.created(ItemState)
-
entryCreated
public void entryCreated(NodeEntry entry)
- Specified by:
entryCreated
in interfaceEntryFactory.NodeEntryListener
- See Also:
EntryFactory.NodeEntryListener.entryCreated(NodeEntry)
-
uniqueIdChanged
public void uniqueIdChanged(NodeEntry entry, String previousUniqueID)
- Specified by:
uniqueIdChanged
in interfaceEntryFactory.NodeEntryListener
- See Also:
EntryFactory.NodeEntryListener.uniqueIdChanged(NodeEntry, String)
-
-