Interface OnDemandConversionFacade
- All Known Implementing Classes:
DefaultOnDemandConversionFacade
public interface OnDemandConversionFacade
Facade to handle requests from the integrated taglib and servlet.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionconvert(MediaContainerModel container, ConversionMediaFormatModel format) convert(MediaContainerModel container, String format) retrieveURL(MediaContainerModel container, ConversionMediaFormatModel format) retrieveURL(MediaContainerModel container, String format)
-
Field Details
-
BEAN_NAME
Spring bean id of this service's implementation.- See Also:
-
-
Method Details
-
convert
String convert(PK container, String format) throws ModelLoadingException, UnknownIdentifierException - Parameters:
container- theMediaContainerModel'sPKin questionformat- the qualifier of theConversionMediaFormatModelto convert to.- Returns:
- the URL to the requested Media.
- Throws:
ModelLoadingException- if the model for the givenPKcould not be found or is not aMediaContainerModel.UnknownIdentifierException- if no correspondingConversionMediaFormatModelfor the givenformatqualifier could be found.
-
retrieveURL
- Parameters:
container- theMediaContainerModelin questionformat- the qualifier of theConversionMediaFormatModelto convert to ornull(or the empty string) to retrieve the container's master media url.- Returns:
- the URL to the requested Media.
- Throws:
UnknownIdentifierException- if no correspondingConversionMediaFormatModelfor the given non-empty, non-nullformatqualifier could be found.
-
retrieveURL
- Parameters:
container- theMediaContainerModelin questionformat- the qualifier of theConversionMediaFormatModelto convert to ornull(or the empty string) to retrieve the container's master media url.- Returns:
- the URL to the requested Media
-
convert
- Parameters:
container- theMediaContainerModelin questionformat- theConversionMediaFormatModelto convert to ornull(or the empty string) to retrieve the container's master media url.- Returns:
- the URL to the requested Media
-
convert
- Parameters:
container- theMediaContainerModelin questionformat- the qualifier of theConversionMediaFormatModelto convert to ornull(or the empty string) to retrieve the container's master media url.- Returns:
- the URL to the requested Media
-