Interface MediaConversionStrategy
-
- All Known Implementing Classes:
ImageMagickMediaConversionStrategy
public interface MediaConversionStrategy
Strategy on how to convert a media to a givenConversionMediaFormatModel
. The actualMediaConversionStrategy
to use is configured as a spring bean name in theConversionMediaFormatModel
'sconversionStrategy
attribute.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MediaModel
convert(MediaConversionService mediaConversionService, MediaModel parent, ConversionMediaFormatModel format)
Converts the givenparent
media to the givenformat
.
-
-
-
Method Detail
-
convert
MediaModel convert(MediaConversionService mediaConversionService, MediaModel parent, ConversionMediaFormatModel format) throws MediaConversionException
Converts the givenparent
media to the givenformat
.- Parameters:
mediaConversionService
- to avoid cyclic IoC errors, theMediaConversionService
is 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
-
-