public interface ImmutableImportProcessorSummary
For space imports and incremental site imports, object keys are reassigned during the import. This summary provides the necessary methods to find out which new key is mapped to which original key.
Modifier and Type | Interface and Description |
---|---|
static interface |
ImmutableImportProcessorSummary.PersistedKey
Represents the key of a persisted object.
|
Modifier and Type | Method and Description |
---|---|
Object |
getNewIdFor(Class clazz,
Object originalId)
Retrieves the new id of the given original id of an object of the specific class.
|
Object |
getNewIdFor(ImmutableImportProcessorSummary.PersistedKey oldKey)
Retrieves the new id of the object of the given old key.
|
Set<ImmutableImportProcessorSummary.PersistedKey> |
getNewPersistedKeys()
Retrieves all the new persisted keys.
|
Object |
getOriginalIdFor(Class clazz,
Object newId)
Retrieves the original id of the given new id of an object of the specific class.
|
Object |
getOriginalIdFor(ImmutableImportProcessorSummary.PersistedKey newKey)
Retrieves the old id of the object of the given new key.
|
Set<ImmutableImportProcessorSummary.PersistedKey> |
getOriginalPersistedKeys()
Retrieves all the original persisted keys.
|
Object getNewIdFor(Class clazz, Object originalId)
getNewIdFor(PersistedKey)
.clazz
- The class of the persisted objectoriginalId
- The original idnull
if not foundObject getNewIdFor(ImmutableImportProcessorSummary.PersistedKey oldKey)
oldKey
- The key of the persisted object with the original idnull
if not foundObject getOriginalIdFor(Class clazz, Object newId)
getOriginalIdFor(PersistedKey)
.clazz
- The class of the persisted objectnewId
- The new idnull
if not foundObject getOriginalIdFor(ImmutableImportProcessorSummary.PersistedKey newKey)
newKey
- The key of the persisted object with the new idnull
if not foundSet<ImmutableImportProcessorSummary.PersistedKey> getOriginalPersistedKeys()
Set<ImmutableImportProcessorSummary.PersistedKey> getNewPersistedKeys()
Copyright © 2003–2020 Atlassian. All rights reserved.