Interface MediaConversionServiceDao
-
- All Known Implementing Classes:
DefaultMediaConversionServiceDao
public interface MediaConversionServiceDaoDAO strategy of theMediaConversionService.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<ConversionMediaFormatModel>allConversionFormats()Retrieves allConversionMediaFormatModelfrom the database.java.util.Collection<MediaModel>getConvertedMedias(MediaContainerModel container)Retrieves all converted medias within the givenMediaContainerModel.MediaModelretrieveMaster(MediaContainerModel model)Retrieves the 'master' of the givenMediaContainerModel.
-
-
-
Method Detail
-
allConversionFormats
java.util.Collection<ConversionMediaFormatModel> allConversionFormats()
Retrieves allConversionMediaFormatModelfrom the database.- Returns:
- all
ConversionMediaFormatModel.
-
getConvertedMedias
java.util.Collection<MediaModel> getConvertedMedias(MediaContainerModel container)
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
MediaModel retrieveMaster(MediaContainerModel model)
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
-
-