Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

org.alfresco.service.cmr.repository
Interface SerializedTransformationOptionsAccessor

@org.alfresco.api.AlfrescoPublicApi
public interface SerializedTransformationOptionsAccessor
Defines methods for retrieving parameter values for use in building transformation options.
Author:
Ray Gauss II

Method Summary
<T> T
getCheckedParam(String paramName, Class<T> clazz)
          Gets the value for the named parameter.
int
getIntegerParam(String key, int defaultValue)
          Gets the int value for the named parameter.
<T> T
getParamWithDefault(String paramName, T defaultValue)
          Gets the value for the named parameter.
Method Detail
getCheckedParam
<T> T getCheckedParam(String paramName,
                      Class<T> clazz)
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)
Gets the value for the named parameter. Checks the type of the parameter is the same as the type of defaultValue and throws a org.alfresco.service.cmr.rendition.RenditionServiceException if it isn't. Returns defaultValue if the parameter value is null
Type Parameters:
T -
Parameters:
paramName - String
defaultValue -
Returns:

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

Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2018 Alfresco Software. All rights reserved.

Java API documentation generated with DocFlex/Javadoc 1.6.1 using JavadocPro template set.