public interface CentraSiteImportValidator
Modifier and Type | Method and Description |
---|---|
java.util.Collection |
getIgnoredObjects()
Returns collection of objects that have been ignored because they are
already present in the registry with the same state.
|
RegistryObject |
getImportedObject(java.lang.String id)
Gets the imported registry object, organized in a separate cache.
|
java.util.Collection |
getReplacingObjects()
Returns collection of objects that must be replaced in the registry
because they are already present with a different state.
|
java.util.Collection<RegistryObject> |
getReplacingObjectsOldState()
Return collection of objects that must be replaced in the registry
because they are already present with a older state.
|
void |
importObject(java.lang.String xml)
Imports an object.
|
void |
importObject(java.lang.String xml,
java.lang.String centrasiteUrl,
java.util.Collection lifecycleStages)
Imports an object, check lifecycle stages.
|
boolean |
removeImportedObject(java.lang.String id)
Removes a previously imported object from this ImportValidator.
|
void |
setConflictListener(CentraSiteConflictListener conflictListener)
Sets a listener for "Conflict" situations during ImportValidation.
|
void |
setIgnoreReplaceCheckForTypes(boolean ignoreReplaceCheck)
Signals to the import validator that the replace check for asset type concepts are to be ignored.
|
void |
setImportGroups(boolean importGroups)
Sets whether the group objects can be included for import.
|
void |
setKeepOwner()
Sets whether to keep the owner of the validated objects in contrast to set
to the importing user.
|
void |
setKeepPersistentOwner(boolean keepPersistentOwner)
If replacing objects, it indicates whether the owner of the persistent object should be retained.
|
BulkResponse |
validate()
Validates imported objects, that is verify all outgoing references are
satisfied by persistent objects or objects imported in the same chunk.
|
void importObject(java.lang.String xml) throws JAXRException
xml
- the XML representation of the object to be importedJAXRException
- if an internal error occurs on importing objectvoid importObject(java.lang.String xml, java.lang.String centrasiteUrl, java.util.Collection lifecycleStages) throws JAXRException
xml
- the XML representation of the object to be importedcentrasiteUrl
- the URL of the connectionlifecycleStages
- collection of lifecycle stages the object can be
imported intoJAXRException
- if an internal error occurs on importing objectboolean removeImportedObject(java.lang.String id) throws JAXRException
id
- the key id of the object to be removedJAXRException
- if an internal error occurs on removing imported objectjava.util.Collection getIgnoredObjects()
java.util.Collection getReplacingObjects()
BulkResponse validate() throws JAXRException
JAXRException
- if an internal error occurs on validating objectsvoid setKeepOwner()
void setImportGroups(boolean importGroups)
importGroups
- true
include group objects for import; false
do not include group objects for import.void setConflictListener(CentraSiteConflictListener conflictListener)
conflictListener
- the listener.RegistryObject getImportedObject(java.lang.String id) throws JAXRException
id
- the id of the objectJAXRException
- if an internal error occurs on retrieving imported objectsvoid setKeepPersistentOwner(boolean keepPersistentOwner)
keepPersistentOwner
- true: keep the owner of persistent object;
false: just replace the replacing object and take the owner of the replacing objectjava.util.Collection<RegistryObject> getReplacingObjectsOldState() throws JAXRException
JAXRException
void setIgnoreReplaceCheckForTypes(boolean ignoreReplaceCheck)
ignoreReplaceCheck
- true if replace key check for types to be ignored