Interface OnDemandConversionFacade
-
- All Known Implementing Classes:
DefaultOnDemandConversionFacade
public interface OnDemandConversionFacadeFacade to handle requests from the integrated taglib and servlet.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBEAN_NAMESpring bean id of this service's implementation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringconvert(MediaContainerModel container, ConversionMediaFormatModel format)java.lang.Stringconvert(MediaContainerModel container, java.lang.String format)java.lang.Stringconvert(PK container, java.lang.String format)java.lang.StringretrieveURL(MediaContainerModel container, ConversionMediaFormatModel format)java.lang.StringretrieveURL(MediaContainerModel container, java.lang.String format)
-
-
-
Field Detail
-
BEAN_NAME
static final java.lang.String BEAN_NAME
Spring bean id of this service's implementation.- See Also:
- Constant Field Values
-
-
Method Detail
-
convert
java.lang.String convert(PK container, java.lang.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
java.lang.String retrieveURL(MediaContainerModel container, java.lang.String format) throws UnknownIdentifierException
- 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
java.lang.String retrieveURL(MediaContainerModel container, ConversionMediaFormatModel format)
- 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
java.lang.String convert(MediaContainerModel container, ConversionMediaFormatModel format)
- 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
java.lang.String convert(MediaContainerModel container, java.lang.String format)
- 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
-
-