Interface CMSMediaFormatDao
-
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultCMSMediaFormatDao
public interface CMSMediaFormatDao extends Dao
Interface for finding media formats.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<MediaFormatModel>getAllMediaFormats()Retrieve all media formats.MediaFormatModelgetMediaFormatByQualifier(java.lang.String qualifier)Retrieve a single media format which have the specified qualifier value.java.util.Collection<MediaFormatModel>getMediaFormatsByQualifiers(java.util.Collection<java.lang.String> qualifiers)Retrieve a collection of media formats which have the specified qualifiers value.
-
-
-
Method Detail
-
getAllMediaFormats
java.util.Collection<MediaFormatModel> getAllMediaFormats()
Retrieve all media formats.- Returns:
- collection of all media formats
-
getMediaFormatByQualifier
MediaFormatModel getMediaFormatByQualifier(java.lang.String qualifier) throws java.lang.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:
java.lang.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
java.util.Collection<MediaFormatModel> getMediaFormatsByQualifiers(java.util.Collection<java.lang.String> qualifiers) throws java.lang.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:
java.lang.IllegalArgumentException- when qualifier is null
-
-