Class RecordImpl
- All Implemented Interfaces:
Record,io.vrap.rmf.base.client.ModelBase
Captures the differences between the previous and next version of a resource.
The maximum number of Records that can be stored and their retention period are subject to a limit.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanShows the differences in the resource betweenpreviousVersionandversion.getLabel()Information that describes the resource after the change.Date and time (UTC) when the change was made.Information about the user or API Client who performed the change.Information that describes the resource before the change.Version of the resource before the change.ResourceIdentifier of the changed resource.References to the Stores associated with the Change.getType()Indicates the type of change.Version of the resource after the change.trueif no change was detected.inthashCode()voidsetChanges(Change... changes) Shows the differences in the resource betweenpreviousVersionandversion.voidsetChanges(List<Change> changes) Shows the differences in the resource betweenpreviousVersionandversion.voidInformation that describes the resource after the change.voidsetModifiedAt(String modifiedAt) Date and time (UTC) when the change was made.voidsetModifiedBy(ModifiedBy modifiedBy) Information about the user or API Client who performed the change.voidsetPreviousLabel(Label previousLabel) Information that describes the resource before the change.voidsetPreviousVersion(Integer previousVersion) Version of the resource before the change.voidsetResource(ResourceIdentifier resource) ResourceIdentifier of the changed resource.voidsetStores(KeyReference... stores) References to the Stores associated with the Change.voidsetStores(List<KeyReference> stores) References to the Stores associated with the Change.voidIndicates the type of change.voidsetVersion(Integer version) Version of the resource after the change.voidsetWithoutChanges(Boolean withoutChanges) trueif no change was detected.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionStringMethods inherited from interface com.commercetools.history.models.change_history.Record
withRecord
-
Constructor Details
-
RecordImpl
public RecordImpl()create empty instance
-
-
Method Details
-
getVersion
Version of the resource after the change.
For more information on how the version is incremented, see Optimistic Concurrency Control.
- Specified by:
getVersionin interfaceRecord- Returns:
- version
-
getPreviousVersion
Version of the resource before the change.
- Specified by:
getPreviousVersionin interfaceRecord- Returns:
- previousVersion
-
getType
Indicates the type of change. For creation, update, or deletion, the value is
"ResourceCreated","ResourceUpdated", or"ResourceDeleted"respectively. -
getModifiedBy
Information about the user or API Client who performed the change.
- Specified by:
getModifiedByin interfaceRecord- Returns:
- modifiedBy
-
getModifiedAt
Date and time (UTC) when the change was made.
- Specified by:
getModifiedAtin interfaceRecord- Returns:
- modifiedAt
-
getLabel
Information that describes the resource after the change.
-
getPreviousLabel
Information that describes the resource before the change.
- Specified by:
getPreviousLabelin interfaceRecord- Returns:
- previousLabel
-
getChanges
Shows the differences in the resource between
previousVersionandversion.The value is not identical to the actual array of update actions sent and is not limited to update actions (see, for example, Optimistic Concurrency Control).
- Specified by:
getChangesin interfaceRecord- Returns:
- changes
-
getResource
ResourceIdentifier of the changed resource.
- Specified by:
getResourcein interfaceRecord- Returns:
- resource
-
getStores
References to the Stores associated with the Change.
-
getWithoutChanges
trueif no change was detected.The version number of the resource can be increased even without any change in the resource.
- Specified by:
getWithoutChangesin interfaceRecord- Returns:
- withoutChanges
-
setVersion
Description copied from interface:RecordVersion of the resource after the change.
For more information on how the version is incremented, see Optimistic Concurrency Control.
- Specified by:
setVersionin interfaceRecord- Parameters:
version- value to be set
-
setPreviousVersion
Description copied from interface:RecordVersion of the resource before the change.
- Specified by:
setPreviousVersionin interfaceRecord- Parameters:
previousVersion- value to be set
-
setType
Description copied from interface:RecordIndicates the type of change. For creation, update, or deletion, the value is
"ResourceCreated","ResourceUpdated", or"ResourceDeleted"respectively. -
setModifiedBy
Description copied from interface:RecordInformation about the user or API Client who performed the change.
- Specified by:
setModifiedByin interfaceRecord- Parameters:
modifiedBy- value to be set
-
setModifiedAt
Description copied from interface:RecordDate and time (UTC) when the change was made.
- Specified by:
setModifiedAtin interfaceRecord- Parameters:
modifiedAt- value to be set
-
setLabel
Description copied from interface:RecordInformation that describes the resource after the change.
-
setPreviousLabel
Description copied from interface:RecordInformation that describes the resource before the change.
- Specified by:
setPreviousLabelin interfaceRecord- Parameters:
previousLabel- value to be set
-
setChanges
Description copied from interface:RecordShows the differences in the resource between
previousVersionandversion.The value is not identical to the actual array of update actions sent and is not limited to update actions (see, for example, Optimistic Concurrency Control).
- Specified by:
setChangesin interfaceRecord- Parameters:
changes- values to be set
-
setChanges
Description copied from interface:RecordShows the differences in the resource between
previousVersionandversion.The value is not identical to the actual array of update actions sent and is not limited to update actions (see, for example, Optimistic Concurrency Control).
- Specified by:
setChangesin interfaceRecord- Parameters:
changes- values to be set
-
setResource
Description copied from interface:RecordResourceIdentifier of the changed resource.
- Specified by:
setResourcein interfaceRecord- Parameters:
resource- value to be set
-
setStores
Description copied from interface:RecordReferences to the Stores associated with the Change.
-
setStores
Description copied from interface:RecordReferences to the Stores associated with the Change.
-
setWithoutChanges
Description copied from interface:Recordtrueif no change was detected.The version number of the resource can be increased even without any change in the resource.
- Specified by:
setWithoutChangesin interfaceRecord- Parameters:
withoutChanges- value to be set
-
equals
-
hashCode
-