|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.util.ReferenceChangeTracker
Simple helper class that can be used to keep track of uuid mappings (e.g. if the uuid of an imported or copied node is mapped to a new uuid) and processed (e.g. imported or copied) reference properties that might need correcting depending on the uuid mappings.
Constructor Summary | |
ReferenceChangeTracker()
Creates a new instance. |
Method Summary | |
void |
clear()
Resets all internal state. |
UUID |
getMappedUUID(UUID oldUUID)
Returns the new UUID to which oldUUID has been mapped
or null if no such mapping exists. |
Iterator |
getProcessedReferences()
Returns an iterator over all processed reference properties. |
void |
mappedUUID(UUID oldUUID,
UUID newUUID)
Store the given uuid mapping for later lookup using . |
void |
processedReference(Object refProp)
Store the given reference property for later retrieval using . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReferenceChangeTracker()
Method Detail |
public void clear()
public void mappedUUID(UUID oldUUID, UUID newUUID)
getMappedUUID(UUID)
.
oldUUID
- old uuidnewUUID
- new uuidpublic void processedReference(Object refProp)
getProcessedReferences()
.
refProp
- reference propertypublic UUID getMappedUUID(UUID oldUUID)
oldUUID
has been mapped
or null
if no such mapping exists.
oldUUID
- old uuid
null
if no such mapping existsmappedUUID(UUID, UUID)
public Iterator getProcessedReferences()
processedReference(Object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |