Read-only snapshot of an AltFormat entity, describing one derived rendition (such as a thumbnail) of a binary asset's source file. Instances are built from an AltFormat by AssetManager when listing the alternative formats available for an asset, so callers get a plain, detached view rather than a live Hibernate entity.
Properties
| Property | Returns | Description |
|---|---|---|
| altHash | String | The content hash of the generated alternative file, once it has been produced. |
| cdnUrl | String | The CDN URL from which this alternative format can be fetched, if one has been generated. |
| endDate | Date | The date generation of this alternative format finished, whether it succeeded or failed. |
| errorMsg | String | The error message recorded if generation of this alternative format failed. |
| id | long | The database id of the underlying AltFormat record. |
| name | String | The name identifying this alternative format, for example "thumb-120x120.png". |
| sourceHash | String | The content hash of the original source file that this alternative format was derived from. |
| startDate | Date | The date generation of this alternative format started. |
Methods
getId()
Returns: long
The database id of the underlying AltFormat record.
getCdnUrl()
Returns: String
The CDN URL from which this alternative format can be fetched, if one has been generated.
getSourceHash()
Returns: String
The content hash of the original source file that this alternative format was derived from.
getName()
Returns: String
The name identifying this alternative format, for example "thumb-120x120.png".
getAltHash()
Returns: String
The content hash of the generated alternative file, once it has been produced.
getStartDate()
Returns: Date
The date generation of this alternative format started.
getEndDate()
Returns: Date
The date generation of this alternative format finished, whether it succeeded or failed.
getErrorMsg()
Returns: String
The error message recorded if generation of this alternative format failed.