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 ItemNotFoundException, RepositoryException
public void statusChanged(ItemState state, int previousStatus)
statusChanged
in interface ItemStateLifeCycleListener
state
- previousStatus
- ItemStateLifeCycleListener.statusChanged(ItemState, int)
public void created(ItemState state)
created
in interface ItemStateCreationListener
state
- ItemStateCreationListener.created(ItemState)
public void entryCreated(NodeEntry entry)
entryCreated
in interface EntryFactory.NodeEntryListener
EntryFactory.NodeEntryListener.entryCreated(NodeEntry)
public void uniqueIdChanged(NodeEntry entry, String previousUniqueID)
uniqueIdChanged
in interface EntryFactory.NodeEntryListener
EntryFactory.NodeEntryListener.uniqueIdChanged(NodeEntry, String)
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.