Class MediapackageMetadataImpl

java.lang.Object
org.opencastproject.metadata.api.MediapackageMetadataImpl
All Implemented Interfaces:
MediaPackageMetadata

public class MediapackageMetadataImpl extends Object implements MediaPackageMetadata
Provides metadata for a MediaPackageMetadata.
  • Field Details

    • title

      protected String title
    • seriesTitle

      protected String seriesTitle
    • seriesIdentifier

      protected String seriesIdentifier
    • creators

      protected String[] creators
    • contributors

      protected String[] contributors
    • subjects

      protected String[] subjects
    • language

      protected String language
    • license

      protected String license
    • date

      protected Date date
  • Constructor Details

    • MediapackageMetadataImpl

      public MediapackageMetadataImpl()
  • Method Details

    • getTitle

      public String getTitle()
      Returns the title of the episode that this mediapackage represents.
      Specified by:
      getTitle in interface MediaPackageMetadata
      Returns:
      The episode title
    • setTitle

      public void setTitle(String title)
      Sets the media package's title.
      Parameters:
      title - the title
    • getSeriesTitle

      public String getSeriesTitle()
      Returns the title for the associated series, if any.
      Specified by:
      getSeriesTitle in interface MediaPackageMetadata
      Returns:
      The series title
    • setSeriesTitle

      public void setSeriesTitle(String seriesTitle)
      Sets the series title.
      Parameters:
      seriesTitle - the series title
    • getSeriesIdentifier

      public String getSeriesIdentifier()
      The series, if any, that this episode belongs to.
      Specified by:
      getSeriesIdentifier in interface MediaPackageMetadata
      Returns:
      the series for this mediapackage
    • setSeriesIdentifier

      public void setSeriesIdentifier(String seriesIdentifier)
      Sets the series identifier
      Parameters:
      seriesIdentifier - the series identifier
    • getCreators

      public String[] getCreators()
      The names of the creators. If no creators were specified, an empty array is returned.
      Specified by:
      getCreators in interface MediaPackageMetadata
      Returns:
      the creators for this mediapackage
    • setCreators

      public void setCreators(String[] creators)
      Sets the list of creators.
      Parameters:
      creators - the creators
    • getContributors

      public String[] getContributors()
      Description copied from interface: MediaPackageMetadata
      The contributors. If no contributors were specified, an empty array is returned.
      Specified by:
      getContributors in interface MediaPackageMetadata
      Returns:
      the contributors for this mediapackage
    • setContributors

      public void setContributors(String[] contributors)
      Sets the mediapackage's contributors.
      Parameters:
      contributors - the contributors
    • getSubjects

      public String[] getSubjects()
      The subjects. If no subjects were specified, an empty array is returned.
      Specified by:
      getSubjects in interface MediaPackageMetadata
      Returns:
      the subjects for this mediapackage
    • setSubjects

      public void setSubjects(String[] subjects)
      Sets the mediapackage's subjects.
      Parameters:
      subjects - the subjects
    • getLanguage

      public String getLanguage()
      The language spoken in the media
      Specified by:
      getLanguage in interface MediaPackageMetadata
      Returns:
      the language for this mediapackage
    • setLanguage

      public void setLanguage(String language)
      Sets the mediapackage's language.
      Parameters:
      language - the language
    • getLicense

      public String getLicense()
      The license under which this episode is available
      Specified by:
      getLicense in interface MediaPackageMetadata
      Returns:
      the license for this mediapackage
    • setLicense

      public void setLicense(String license)
      Sets the mediapackage license.
      Parameters:
      license - the license
    • getDate

      public Date getDate()
      Returns the media package start time.
      Specified by:
      getDate in interface MediaPackageMetadata
      Returns:
      the start time
    • setDate

      public void setDate(Date date)
      Sets the mediapackage's creation date.
      Parameters:
      date - the creation date