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
UniqueIdResolverallows to retrieveNodeEntryinstances 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 voidcreated(ItemState state)Nothing to do.voiddispose()voidentryCreated(NodeEntry entry)NodeEntrylookup(String uniqueId)NodeEntryresolve(NodeId nodeId, NodeEntry rootEntry)voidstatusChanged(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 morevoiduniqueIdChanged(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:
statusChangedin 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:
createdin interfaceItemStateCreationListener- Parameters:
state-- See Also:
ItemStateCreationListener.created(ItemState)
-
entryCreated
public void entryCreated(NodeEntry entry)
- Specified by:
entryCreatedin interfaceEntryFactory.NodeEntryListener- See Also:
EntryFactory.NodeEntryListener.entryCreated(NodeEntry)
-
uniqueIdChanged
public void uniqueIdChanged(NodeEntry entry, String previousUniqueID)
- Specified by:
uniqueIdChangedin interfaceEntryFactory.NodeEntryListener- See Also:
EntryFactory.NodeEntryListener.uniqueIdChanged(NodeEntry, String)
-
-