Class SearchResultItemImpl
java.lang.Object
org.opencastproject.oaipmh.persistence.impl.SearchResultItemImpl
- All Implemented Interfaces:
SearchResultItem
-
Constructor Summary
ConstructorsConstructorDescriptionSearchResultItemImpl(String mediaPackageId, String mediaPackageXml, String organization, String repoId, Date modificationDate, Boolean isDeleted, org.opencastproject.mediapackage.MediaPackage mediaPackage, List<SearchResultElementItem> mediaPackageElements, List<String> setSpecs) SearchResultItemImpl(OaiPmhEntity entity) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSetSpec(String setSpec) org.opencastproject.metadata.dublincore.DublinCoreCataloggetId()org.opencastproject.mediapackage.MediaPackageorg.opencastproject.metadata.dublincore.DublinCoreCatalogbooleanReturntrueif the mediapackage has been deleted.
-
Constructor Details
-
SearchResultItemImpl
public SearchResultItemImpl(OaiPmhEntity entity) throws org.opencastproject.mediapackage.MediaPackageException - Throws:
org.opencastproject.mediapackage.MediaPackageException
-
SearchResultItemImpl
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceSearchResultItem- Returns:
- the media package id
-
getMediaPackage
public org.opencastproject.mediapackage.MediaPackage getMediaPackage()- Specified by:
getMediaPackagein interfaceSearchResultItem- Returns:
- the media package
-
getMediaPackageXml
- Specified by:
getMediaPackageXmlin interfaceSearchResultItem- Returns:
- the serialized media package
-
getOrganization
- Specified by:
getOrganizationin interfaceSearchResultItem- Returns:
- the organization id
-
getRepository
- Specified by:
getRepositoryin interfaceSearchResultItem- Returns:
- the repository id
-
getModificationDate
- Specified by:
getModificationDatein interfaceSearchResultItem- Returns:
- the last modification date
-
isDeleted
public boolean isDeleted()Description copied from interface:SearchResultItemReturntrueif the mediapackage has been deleted.- Specified by:
isDeletedin interfaceSearchResultItem
-
getElements
- Specified by:
getElementsin interfaceSearchResultItem- Returns:
- the list of media package search result elements belongs to this media package
-
getEpisodeDublinCore
public org.opencastproject.metadata.dublincore.DublinCoreCatalog getEpisodeDublinCore() throws OaiPmhDatabaseException- Specified by:
getEpisodeDublinCorein interfaceSearchResultItem- Returns:
- the episode dublincore catalog if it was published with this media package
- Throws:
OaiPmhDatabaseException- if the episode dublincore catalog wasn't published with this media package or if the dublincore catalog can not be parsed
-
getSeriesDublinCore
public org.opencastproject.metadata.dublincore.DublinCoreCatalog getSeriesDublinCore() throws OaiPmhDatabaseException- Specified by:
getSeriesDublinCorein interfaceSearchResultItem- Returns:
- the series dublincore catalog if it was published with this media package
- Throws:
OaiPmhDatabaseException- if the series dublincore catalog wasn't published with this media package or if the dublincore catalog can not be parsed
-
getSetSpecs
- Specified by:
getSetSpecsin interfaceSearchResultItem
-
addSetSpec
- Specified by:
addSetSpecin interfaceSearchResultItem
-