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.
|
javax.xml.registry.infomodel.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<javax.xml.registry.infomodel.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 |
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.
|
javax.xml.registry.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 javax.xml.registry.JAXRException
xml
- the XML representation of the object to be importedjavax.xml.registry.JAXRException
- if an internal error occurs on importing objectvoid importObject(java.lang.String xml, java.lang.String centrasiteUrl, java.util.Collection lifecycleStages) throws javax.xml.registry.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 intojavax.xml.registry.JAXRException
- if an internal error occurs on importing objectboolean removeImportedObject(java.lang.String id) throws javax.xml.registry.JAXRException
id
- the key id of the object to be removedjavax.xml.registry.JAXRException
- if an internal error occurs on removing imported objectjava.util.Collection getIgnoredObjects()
java.util.Collection getReplacingObjects()
javax.xml.registry.BulkResponse validate() throws javax.xml.registry.JAXRException
javax.xml.registry.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.javax.xml.registry.infomodel.RegistryObject getImportedObject(java.lang.String id) throws javax.xml.registry.JAXRException
id
- the id of the objectjavax.xml.registry.JAXRException
- 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<javax.xml.registry.infomodel.RegistryObject> getReplacingObjectsOldState() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException