Class ChangeReport
java.lang.Object
de.aristaflow.adept2.util.CheckReport
de.aristaflow.adept2.model.processmodel.ChangeReport
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LocalisedChangeReport
A
ChangeReport provides a CheckReport together
with the old and the new ID of the instance and the new changeable instance
object. The new instance ID and the new instance will be null in case the
instance cannot be changed due to problems. Refer to the report for more
information.- Author:
- Ulrich Kreher
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.aristaflow.adept2.util.CheckReport
CheckReport.ReportEntry, CheckReport.ResultType -
Field Summary
FieldsModifier and TypeFieldDescriptionThe new changed instance if the change has been successful, otherwise null.The new ID of the changed instance if the change has been successful, otherwise null.final UUIDThe old ID of the changed instance.Fields inherited from class de.aristaflow.adept2.util.CheckReport
locale, nextEntryNumber, reportEntries -
Constructor Summary
ConstructorsConstructorDescriptionChangeReport(URI baseURI, UUID oldInstanceID) Sets up a change report which is a check report providing the old and the new ID of the changed instance.ChangeReport(URI baseUri, UUID oldInstanceId, Locale locale) Sets up a change report which is a check report providing the old and the new ID of the changed instance. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidsetNewInstance(ChangeableInstance newInstance) Sets the new instance.final voidsetNewInstanceID(UUID newInstanceID) Sets the new ID of the instance.Methods inherited from class de.aristaflow.adept2.util.CheckReport
addReportEntry, addReportEntry, getBase, getCheckResult, getEntriesForCheckID, getLastAddedReportEntry, getPreferredLocale, getReportEntries, getReportSummary, getSimpleReportSummary, isFailure, printReportSummary
-
Field Details
-
newInstanceID
The new ID of the changed instance if the change has been successful, otherwise null. -
newInstance
The new changed instance if the change has been successful, otherwise null. -
oldInstanceID
The old ID of the changed instance.
-
-
Constructor Details
-
ChangeReport
Sets up a change report which is a check report providing the old and the new ID of the changed instance. The new ID will only be provided if the change has been successfully integrated.- Parameters:
baseURI- The process element identifier URI of the instance this check report is assigned to.oldInstanceID- The old ID of the instance.
-
ChangeReport
Sets up a change report which is a check report providing the old and the new ID of the changed instance. The new ID will only be provided if the change has been successfully integrated.- Parameters:
baseUri- The process element identifier URI of the instance this check report is assigned to.oldInstanceId- The old ID of the instance.locale- The preferred locale to be used for messages of this check report.
-
-
Method Details
-
setNewInstanceID
Sets the new ID of the instance. This will only be called if the change has been successful. The ID is only set once.- Parameters:
newInstanceID- The new ID of the instance.
-
setNewInstance
Sets the new instance. This will only be called if the change has been successful. The newInstance is only set once.- Parameters:
newInstance- The new changeablInstance.
-