public class UniqueIdResolver extends Object implements ItemStateCreationListener, EntryFactory.NodeEntryListener
UniqueIdResolver allows to retrieve NodeEntry instances
that are identified by a uniqueID.| Constructor and Description |
|---|
UniqueIdResolver(ItemStateFactory isf)
Creates a new
UniqueIdResolver. |
| Modifier and Type | Method and 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 more
|
void |
uniqueIdChanged(NodeEntry entry,
String previousUniqueID) |
public UniqueIdResolver(ItemStateFactory isf)
UniqueIdResolver.public void dispose()
public NodeEntry resolve(NodeId nodeId, NodeEntry rootEntry) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
javax.jcr.ItemNotFoundExceptionjavax.jcr.RepositoryExceptionpublic void statusChanged(ItemState state, int previousStatus)
statusChanged in interface ItemStateLifeCycleListenerstate - previousStatus - ItemStateLifeCycleListener.statusChanged(ItemState, int)public void created(ItemState state)
created in interface ItemStateCreationListenerstate - ItemStateCreationListener.created(ItemState)public void entryCreated(NodeEntry entry)
entryCreated in interface EntryFactory.NodeEntryListenerEntryFactory.NodeEntryListener.entryCreated(NodeEntry)public void uniqueIdChanged(NodeEntry entry, String previousUniqueID)
uniqueIdChanged in interface EntryFactory.NodeEntryListenerEntryFactory.NodeEntryListener.uniqueIdChanged(NodeEntry, String)Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.