protected class AbstractRenderingEngine.RenderingContext extends Object implements SerializedTransformationOptionsAccessor
| Constructor and Description |
|---|
RenderingContext(NodeRef sourceNode,
RenditionDefinition definition,
QName renditionContentProperty) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getCheckedParam(String paramName,
Class<T> clazz)
Gets the value for the named parameter.
|
ChildAssociationRef |
getChildAssociationRef()
Lazily instantiation of the ChildAssociationRef
|
RenditionDefinition |
getDefinition() |
NodeRef |
getDestinationNode() |
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.
|
NodeRef |
getSourceNode() |
ContentReader |
makeContentReader() |
ContentWriter |
makeContentWriter() |
public RenderingContext(NodeRef sourceNode, RenditionDefinition definition, QName renditionContentProperty)
sourceNode - NodeRefdefinition - RenditionDefinitionrenditionContentProperty - QNamepublic NodeRef getSourceNode()
public ChildAssociationRef getChildAssociationRef()
public NodeRef getDestinationNode()
public RenditionDefinition getDefinition()
public <T> T getCheckedParam(String paramName, Class<T> clazz)
SerializedTransformationOptionsAccessornull if the parameter value is nullgetCheckedParam in interface SerializedTransformationOptionsAccessorparamName - the name of the parameter being checked.clazz - the expected Class of the parameter value.null.public <T> T getParamWithDefault(String paramName, T defaultValue)
SerializedTransformationOptionsAccessordefaultValue and
throws a RenditionServiceException if it isn't. Returns
defaultValue if the parameter value is nullgetParamWithDefault in interface SerializedTransformationOptionsAccessorparamName - Stringpublic ContentReader makeContentReader()
public ContentWriter makeContentWriter()
public int getIntegerParam(String key, int defaultValue)
SerializedTransformationOptionsAccessordefaultValue if the parameter value is null.getIntegerParam in interface SerializedTransformationOptionsAccessorkey - StringdefaultValue - intCopyright © 2005–2020 Alfresco Software. All rights reserved.