Interface MediaConversionServiceDao
- All Known Implementing Classes:
DefaultMediaConversionServiceDao
public interface MediaConversionServiceDao
DAO strategy of the
MediaConversionService.-
Method Summary
Modifier and TypeMethodDescriptionRetrieves allConversionMediaFormatModelfrom the database.getConvertedMedias(MediaContainerModel container) Retrieves all converted medias within the givenMediaContainerModel.Retrieves the 'master' of the givenMediaContainerModel.
-
Method Details
-
allConversionFormats
Collection<ConversionMediaFormatModel> allConversionFormats()Retrieves allConversionMediaFormatModelfrom the database.- Returns:
- all
ConversionMediaFormatModel.
-
getConvertedMedias
Retrieves all converted medias within the givenMediaContainerModel.- Parameters:
container- theMediaContainerModelin question.- Returns:
- all converted medias within the specified
MediaContainerModel, i.e. all medias with a non-null format and non-null parent.
-
retrieveMaster
Retrieves the 'master' of the givenMediaContainerModel.- Parameters:
model- the container in question- Returns:
- the master media (i.e. the media having original==null)
- Throws:
ModelNotFoundException- if no such media can be foundAmbiguousIdentifierException- if multiple medias matching the master's criteria
-