Interface SerializedTransformationOptionsAccessor

All Known Implementing Classes:
AbstractRenderingEngine.RenderingContext

@Deprecated @AlfrescoPublicApi public interface SerializedTransformationOptionsAccessor
Deprecated.
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

    Modifier and Type
    Method
    Description
    <T> T
    getCheckedParam(String paramName, Class<T> clazz)
    Deprecated.
    Gets the value for the named parameter.
    int
    getIntegerParam(String key, int defaultValue)
    Deprecated.
    Gets the int value for the named parameter.
    <T> T
    getParamWithDefault(String paramName, T defaultValue)
    Deprecated.
    Gets the value for the named parameter.
  • Method Details

    • getCheckedParam

      <T> T getCheckedParam(String paramName, 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. Returns null if the parameter value is null
      Parameters:
      paramName - the name of the parameter being checked.
      clazz - the expected Class of the parameter value.
      Returns:
      the parameter value or null.
    • getParamWithDefault

      <T> T getParamWithDefault(String paramName, T defaultValue)
      Deprecated.
      Gets the value for the named parameter. Checks the type of the parameter is the same as the type of defaultValue and throws a RenditionServiceException if it isn't. Returns defaultValue if the parameter value is null
      Parameters:
      paramName - String
    • getIntegerParam

      int getIntegerParam(String key, int defaultValue)
      Deprecated.
      Gets the int value for the named parameter. Returns defaultValue if the parameter value is null.
      Parameters:
      key - String
      defaultValue - int
      Returns:
      int