Class ARecordImpl

java.lang.Object
org.opencastproject.assetmanager.impl.query.ARecordImpl
All Implemented Interfaces:
ARecord

public final class ARecordImpl extends Object implements ARecord
  • Field Details

    • getMediaPackageId

      public static final com.entwinemedia.fn.Fn<ARecordImpl,String> getMediaPackageId
  • Constructor Details

  • Method Details

    • getSnapshotId

      public long getSnapshotId()
      Get the database ID of the snapshot.
      Specified by:
      getSnapshotId in interface ARecord
    • getMediaPackageId

      public String getMediaPackageId()
      Description copied from interface: ARecord
      Get the media package ID.
      Specified by:
      getMediaPackageId in interface ARecord
    • getProperties

      public List<Property> getProperties()
      Description copied from interface: ARecord
      Get 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:
      getProperties in interface ARecord
    • getSnapshot

      public Optional<Snapshot> getSnapshot()
      Get the snapshot if set. Otherwise try to convert snapshotDto to Snapshot with method call SnapshotDto.toSnapshot(), cache and return the result.
      Specified by:
      getSnapshot in interface ARecord
      Returns:
      the snapshot
    • getSnapshotDto

      public com.entwinemedia.fn.data.Opt<SnapshotDto> getSnapshotDto()
      Get the snapshotDto.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object that)
      Two records are considered equal if their database IDs are equal.
      Overrides:
      equals in class Object