Class ARecordImpl
java.lang.Object
org.opencastproject.assetmanager.impl.query.ARecordImpl
- All Implemented Interfaces:
ARecord
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionARecordImpl(long snapshotId, String mediaPackageId, List<Property> properties) ARecordImpl(long snapshotId, String mediaPackageId, List<Property> properties, Snapshot snapshot) ARecordImpl(long snapshotId, String mediaPackageId, List<Property> properties, SnapshotDto snapshotDto) -
Method Summary
Modifier and TypeMethodDescriptionbooleanTwo records are considered equal if their database IDs are equal.Get the media package ID.Get all properties associated with an episode.Get the snapshot if set.com.entwinemedia.fn.data.Opt<SnapshotDto> Get the snapshotDto.longGet the database ID of the snapshot.inthashCode()
-
Field Details
-
getMediaPackageId
-
-
Constructor Details
-
ARecordImpl
-
ARecordImpl
-
ARecordImpl
public ARecordImpl(long snapshotId, String mediaPackageId, List<Property> properties, SnapshotDto snapshotDto)
-
-
Method Details
-
getSnapshotId
public long getSnapshotId()Get the database ID of the snapshot.- Specified by:
getSnapshotIdin interfaceARecord
-
getMediaPackageId
Description copied from interface:ARecordGet the media package ID.- Specified by:
getMediaPackageIdin interfaceARecord
-
getProperties
Description copied from interface:ARecordGet all properties associated with an episode. If the stream contains any properties also depends on the query specification. If it has not been specified to fetch properties the stream is definitely empty.Please note that properties are not versioned but stored per episode.
- Specified by:
getPropertiesin interfaceARecord
-
getSnapshot
Get the snapshot if set. Otherwise try to convert snapshotDto toSnapshotwith method callSnapshotDto.toSnapshot(), cache and return the result.- Specified by:
getSnapshotin interfaceARecord- Returns:
- the snapshot
-
getSnapshotDto
Get the snapshotDto. -
hashCode
public int hashCode() -
equals
Two records are considered equal if their database IDs are equal.
-