protected class AbstractRenderingEngine.RenderingContext extends Object implements SerializedTransformationOptionsAccessor
| Constructor and Description |
|---|
AbstractRenderingEngine.RenderingContext(org.alfresco.service.cmr.repository.NodeRef sourceNode,
RenditionDefinition definition,
org.alfresco.service.namespace.QName renditionContentProperty) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getCheckedParam(String paramName,
Class<T> clazz)
Gets the value for the named parameter.
|
org.alfresco.service.cmr.repository.ChildAssociationRef |
getChildAssociationRef()
Lazily instantiation of the ChildAssociationRef
|
RenditionDefinition |
getDefinition() |
org.alfresco.service.cmr.repository.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.
|
org.alfresco.service.cmr.repository.NodeRef |
getSourceNode() |
org.alfresco.service.cmr.repository.ContentReader |
makeContentReader() |
org.alfresco.service.cmr.repository.ContentWriter |
makeContentWriter() |
public AbstractRenderingEngine.RenderingContext(org.alfresco.service.cmr.repository.NodeRef sourceNode,
RenditionDefinition definition,
org.alfresco.service.namespace.QName renditionContentProperty)
sourceNode - destinationNode - definition - renditionContentProperty - public org.alfresco.service.cmr.repository.NodeRef getSourceNode()
public org.alfresco.service.cmr.repository.ChildAssociationRef getChildAssociationRef()
public org.alfresco.service.cmr.repository.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 SerializedTransformationOptionsAccessorpublic org.alfresco.service.cmr.repository.ContentReader makeContentReader()
public org.alfresco.service.cmr.repository.ContentWriter makeContentWriter()
public int getIntegerParam(String key, int defaultValue)
SerializedTransformationOptionsAccessordefaultValue if the parameter value is null.getIntegerParam in interface SerializedTransformationOptionsAccessorCopyright © 2005–2014 Alfresco Software. All rights reserved.