Interface MediaConversionStrategy
-
- All Known Implementing Classes:
ImageMagickMediaConversionStrategy
public interface MediaConversionStrategyStrategy on how to convert a media to a givenConversionMediaFormatModel. The actualMediaConversionStrategyto use is configured as a spring bean name in theConversionMediaFormatModel'sconversionStrategyattribute.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MediaModelconvert(MediaConversionService mediaConversionService, MediaModel parent, ConversionMediaFormatModel format)Converts the givenparentmedia to the givenformat.
-
-
-
Method Detail
-
convert
MediaModel convert(MediaConversionService mediaConversionService, MediaModel parent, ConversionMediaFormatModel format) throws MediaConversionException
Converts the givenparentmedia to the givenformat.- Parameters:
mediaConversionService- to avoid cyclic IoC errors, theMediaConversionServiceis passed.parent- the media to convertformat- the format to convert to- Returns:
- a fresh created media in the given format
- Throws:
MediaConversionException- if the conversion could not be processed due to a technical reasonjava.lang.IllegalArgumentException- if any of the parameters isnull
-
-