|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.jcr2spi.util.ReferenceChangeTracker
public class 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. |
QValue |
getMappedReference(QValue oldReference,
QValueFactory factory)
Returns the new UUID to which oldUUID has been mapped
or null if no such mapping exists. |
java.util.Iterator<PropertyState> |
getReferences()
|
void |
mappedUUIDs(java.lang.String oldUUID,
java.lang.String newUUID)
Store the given uuid mapping for later lookup using #adjustReferences(UpdatableItemStateManager, ItemStateValidator). |
void |
processedReference(PropertyState refPropertyState)
Store the given reference property for later resolution. |
| 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 mappedUUIDs(java.lang.String oldUUID,
java.lang.String newUUID)
#adjustReferences(UpdatableItemStateManager, ItemStateValidator).
oldUUID - newUUID -
public QValue getMappedReference(QValue oldReference,
QValueFactory factory)
oldUUID has been mapped
or null if no such mapping exists.
oldReference - old uuid represented by the given QValue.factory -
null if no such mapping existsmappedUUIDs(String,String)public void processedReference(PropertyState refPropertyState)
refPropertyState - reference property statepublic java.util.Iterator<PropertyState> getReferences()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||