Package com.appiancorp.suiteapi.ix
Class ImportResults
java.lang.Object
com.appiancorp.suiteapi.ix.ImportResults
Detailed results from importing or inspecting a package with objects.
When inspecting, this reports which objects will be created, or updated,
and which objects will fail to be imported due to a missing precedent.
When importing, this is a report of exactly which objects were created,
updated, or failed to import.
-
Constructor Summary
ConstructorDescriptionImportResults
(Long logId, List<ImportObject> createdObjects, List<ImportObject> updatedObjects, List<ImportObject> failedObjects) Deprecated.This constructor will be removed in a future release.ImportResults
(Long logId, List<ImportObject> createdObjects, List<ImportObject> updatedObjects, List<ImportObject> failedObjects, List<ImportObject> notChangedObjects, List<ImportObject> conflictedObjects) -
Method Summary
Modifier and TypeMethodDescriptionA conflict means that changes were made in both the source (package) and target systems.On import, returns the list of objects that were created.On import, returns the list of objects that have failed to import, along with the list of objects already in the target system which are now in a failure state as a result of this import.Retrieves the document ID of the detailed import log file.On import, returns the list of objects that were skipped because no changes were detected.On import, returns the list of objects that were updated.toString()
-
Constructor Details
-
ImportResults
@Deprecated public ImportResults(Long logId, List<ImportObject> createdObjects, List<ImportObject> updatedObjects, List<ImportObject> failedObjects) Deprecated.This constructor will be removed in a future release. UseImportResults(Long, List, List, List, List, List)
instead -
ImportResults
public ImportResults(Long logId, List<ImportObject> createdObjects, List<ImportObject> updatedObjects, List<ImportObject> failedObjects, List<ImportObject> notChangedObjects, List<ImportObject> conflictedObjects)
-
-
Method Details
-
getLogDocumentId
Retrieves the document ID of the detailed import log file.- Returns:
- the document ID of the detailed import log file.
-
getCreatedObjects
On import, returns the list of objects that were created. On inspect, returns the list of objects that will be created. This method internally usesCollections.unmodifiableList(List)
in order to return an unmodifiable list.- Returns:
- the list of objects that were or would be created.
-
getUpdatedObjects
On import, returns the list of objects that were updated. On inspect, returns the list of objects that will be updated. This method internally usesCollections.unmodifiableList(List)
in order to return an unmodifiable list.- Returns:
- the list of objects that were or would be updated.
-
getNotChangedObjects
On import, returns the list of objects that were skipped because no changes were detected. On inspect, returns the list of objects that will be skipped on import because no changes have been detected. Import can be forced by including an import customization file with the relevant setting. This method internally usesCollections.unmodifiableList(List)
in order to return an unmodifiable list.- Returns:
- the list of objects that were not changed on import or would not be changed on inspect. Not changed objects are the ones in the import package which are identical to an object already on the target system.
-
getConflictedObjects
A conflict means that changes were made in both the source (package) and target systems. On import, returns the list of objects where conflicts were detected and changes in the target system were overwritten by the definition in the import package. On inspect, returns the list of objects where conflicts were detected. If imported, these objects will overwrite any changes in the target system. This method internally usesCollections.unmodifiableList(List)
in order to return an unmodifiable list.- Returns:
- the subset of
getUpdatedObjects()
where the object in the import package overwrote or would have overwritten a change on the target system.
-
getFailedObjects
On import, returns the list of objects that have failed to import, along with the list of objects already in the target system which are now in a failure state as a result of this import. On inspect, returns the list of objects that will fail to import, along with the list of objects already in the target system which would be in a failure state as a result of this import. This method internally usesCollections.unmodifiableList(List)
in order to return an unmodifiable list.- Returns:
- the list of objects that have failed or will fail to import.
-
toString
-