Interface SerializedTransformationOptionsAccessor
-
- All Known Implementing Classes:
AbstractRenderingEngine.RenderingContext
@Deprecated @AlfrescoPublicApi public interface SerializedTransformationOptionsAccessorDeprecated.The transformations code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.Defines methods for retrieving parameter values for use in building transformation options.- Author:
- Ray Gauss II
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description <T> TgetCheckedParam(java.lang.String paramName, java.lang.Class<T> clazz)Deprecated.Gets the value for the named parameter.intgetIntegerParam(java.lang.String key, int defaultValue)Deprecated.Gets the int value for the named parameter.<T> TgetParamWithDefault(java.lang.String paramName, T defaultValue)Deprecated.Gets the value for the named parameter.
-
-
-
Method Detail
-
getCheckedParam
<T> T getCheckedParam(java.lang.String paramName, java.lang.Class<T> clazz)Deprecated.Gets the value for the named parameter. Checks the type of the parameter is correct and throws and Exception if it isn't. Returnsnullif the parameter value isnull- Parameters:
paramName- the name of the parameter being checked.clazz- the expectedClassof the parameter value.- Returns:
- the parameter value or
null.
-
getParamWithDefault
<T> T getParamWithDefault(java.lang.String paramName, T defaultValue)Deprecated.Gets the value for the named parameter. Checks the type of the parameter is the same as the type ofdefaultValueand throws aRenditionServiceExceptionif it isn't. ReturnsdefaultValueif the parameter value isnull- Parameters:
paramName- String
-
getIntegerParam
int getIntegerParam(java.lang.String key, int defaultValue)Deprecated.Gets the int value for the named parameter. ReturnsdefaultValueif the parameter value isnull.- Parameters:
key- StringdefaultValue- int- Returns:
- int
-
-