Class AbstractMedia

All Implemented Interfaces:
CategorizedDBData, DBConstants, DBData, HistorizedDBData, OpenRoleDBData, TrackedDBData, EditableData, JcmsConstants, ImportConstants, MashupConstants, StrongLockable, Searchable, Storable, JaliosConstants, LangPropertyArgument, TreeNode, Serializable, Cloneable, Comparable<BasicStorable>

public abstract class AbstractMedia extends DBFileDocument
See Also:
  • Constructor Details

    • AbstractMedia

      public AbstractMedia()
    • AbstractMedia

      public AbstractMedia(AbstractMedia other)
    • AbstractMedia

      public AbstractMedia(FileDocument other)
    • AbstractMedia

      public AbstractMedia(DBFileDocument other)
  • Method Details

    • getWidth

      public long getWidth()
      Description copied from class: FileDocument
      Retrieve the width of the image represented by this filedoc.
      Reserved to images files.
      Overrides:
      getWidth in class FileDocument
      Returns:
      the width of the image or zero if it is not available.
    • getHeight

      public long getHeight()
      Description copied from class: FileDocument
      Retrieve the height of the image represented by this filedoc.
      Reserved to images files.
      Overrides:
      getHeight in class FileDocument
      Returns:
      the height of the image or zero if it is not available.
    • getDuration

      public long getDuration()
      Description copied from class: FileDocument
      Returns the duration of the audio (reserved for audio files)
      Overrides:
      getDuration in class FileDocument
      Returns:
      the duration of this audio file in millisecond (return -1 if this FileDocument is not an audio file).
      See Also:
    • getMediaWidth

      public abstract long getMediaWidth()
    • setMediaWidth

      public abstract void setMediaWidth(Long v)
    • getMediaHeight

      public abstract long getMediaHeight()
    • setMediaHeight

      public abstract void setMediaHeight(Long v)
    • getMediaDuration

      public abstract long getMediaDuration()
    • setMediaDuration

      public abstract void setMediaDuration(Long v)
    • performBeforeWrite

      protected void performBeforeWrite(int op, Member mbr, Map context)
      Description copied from class: Data
      Called to perform some action before the write.
      Overrides:
      performBeforeWrite in class FileDocument
      Parameters:
      op - the operation (OP_CREATE, OP_UPDATE, ...)
      mbr - the member which requests the write operation
      context - a map which contains context parameters (may be null)