Records one saved version of a content resource, linking it to the version that came before it. Each row is identified by its modHash, a composite key built from the resource hash, the modified date and the id of the profile that made the change. The modHash is not the content hash of the resource; getResourceHash carries that. Following getPreviousModHash from one row to the next walks the version history backwards.
Group: Database Entities
Implements: Serializable
Properties
| Property | Returns | Description |
|---|---|---|
| id | long | Unique database identifier for this version record. |
| modDate | Date | Timestamp of the change this version records, and one of the three inputs to the modHash. |
| modHash | String | Identifier of this version, built from the resource hash, the modified date and the profile id joined with colons. It identifies the version rather than the content, so two versions of identical content still have different modHashes. |
| previousModHash | String | Identifier of the version immediately before this one, expressed as that version's modHash. It is not the content hash of the previous resource; look the previous row up by modHash to get that. |
| profileId | long | Id of the profile that made the change captured by this version. |
| resourceHash | String | Content hash of the resource as it stood at this version, used to fetch the actual content from the blob store. Never null for a persisted record. |
Methods
getId()
Returns: long
Unique database identifier for this version record.
getResourceHash()
Returns: String
Content hash of the resource as it stood at this version, used to fetch the actual content from the blob store. Never null for a persisted record.
getPreviousModHash()
Returns: String
Identifier of the version immediately before this one, expressed as that version's modHash. It is not the content hash of the previous resource; look the previous row up by modHash to get that.
getProfileId()
Returns: long
Id of the profile that made the change captured by this version.
getModDate()
Returns: Date
Timestamp of the change this version records, and one of the three inputs to the modHash.
getModHash()
Returns: String
Identifier of this version, built from the resource hash, the modified date and the profile id joined with colons. It identifies the version rather than the content, so two versions of identical content still have different modHashes.