Interface CMSMediaFormatDao
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultCMSMediaFormatDao
Interface for finding media formats.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve all media formats.getMediaFormatByQualifier(String qualifier) Retrieve a single media format which have the specified qualifier value.getMediaFormatsByQualifiers(Collection<String> qualifiers) Retrieve a collection of media formats which have the specified qualifiers value.
-
Method Details
-
getAllMediaFormats
Collection<MediaFormatModel> getAllMediaFormats()Retrieve all media formats.- Returns:
- collection of all media formats
-
getMediaFormatByQualifier
MediaFormatModel getMediaFormatByQualifier(String qualifier) throws IllegalArgumentException, UnknownIdentifierException, AmbiguousIdentifierException Retrieve a single media format which have the specified qualifier value.- Parameters:
qualifier- the identifier of the media format to find- Returns:
- media format matching the specified qualifier
- Throws:
IllegalArgumentException- when qualifier is nullUnknownIdentifierException- when no media format is found for the specified qualifierAmbiguousIdentifierException- when multiple media formats are found for the specified qualifier
-
getMediaFormatsByQualifiers
Collection<MediaFormatModel> getMediaFormatsByQualifiers(Collection<String> qualifiers) throws IllegalArgumentException Retrieve a collection of media formats which have the specified qualifiers value.- Parameters:
qualifiers- the collection of identifiers of the media formats to find- Returns:
- collection of media formats matching the specified qualifiers
- Throws:
IllegalArgumentException- when qualifier is null
-