Class ChangeReport
- java.lang.Object
-
- de.aristaflow.adept2.util.CheckReport
-
- de.aristaflow.adept2.model.processmodel.ChangeReport
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LocalisedChangeReport
public class ChangeReport extends CheckReport
AChangeReport
provides aCheckReport
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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.aristaflow.adept2.util.CheckReport
CheckReport.ReportEntry, CheckReport.ResultType
-
-
Field Summary
Fields Modifier and Type Field Description ChangeableInstance
newInstance
The new changed instance if the change has been successful, otherwise null.UUID
newInstanceID
The new ID of the changed instance if the change has been successful, otherwise null.UUID
oldInstanceID
The old ID of the changed instance.-
Fields inherited from class de.aristaflow.adept2.util.CheckReport
locale, nextEntryNumber, reportEntries
-
-
Constructor Summary
Constructors Constructor Description ChangeReport(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setNewInstance(ChangeableInstance newInstance)
Sets the new instance.void
setNewInstanceID(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 Detail
-
newInstanceID
public UUID newInstanceID
The new ID of the changed instance if the change has been successful, otherwise null.
-
newInstance
public ChangeableInstance newInstance
The new changed instance if the change has been successful, otherwise null.
-
oldInstanceID
public final UUID oldInstanceID
The old ID of the changed instance.
-
-
Constructor Detail
-
ChangeReport
public ChangeReport(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. 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
public 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. 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 Detail
-
setNewInstanceID
public final void setNewInstanceID(UUID newInstanceID)
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
public final void setNewInstance(ChangeableInstance newInstance)
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.
-
-