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, MediaPackage mediaPackage, List<SearchResultElementItem> mediaPackageElements, List<String> setSpecs) SearchResultItemImpl(OaiPmhEntity entity) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSetSpec(String setSpec) getId()booleanReturntrueif the mediapackage has been deleted.
-
Constructor Details
-
SearchResultItemImpl
- Throws:
MediaPackageException
-
SearchResultItemImpl
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceSearchResultItem- Returns:
- the media package id
-
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
- 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
- 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
-