protected class AbstractRenderingEngine.RenderingContext extends java.lang.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 |
|---|---|
java.lang.Object |
getCheckedParam(java.lang.String paramName,
java.lang.Class 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(java.lang.String key,
int defaultValue)
Gets the int value for the named parameter.
|
java.lang.Object |
getParamWithDefault(java.lang.String paramName,
java.lang.Object 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 java.lang.Object getCheckedParam(java.lang.String paramName,
java.lang.Class 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 java.lang.Object getParamWithDefault(java.lang.String paramName,
java.lang.Object 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(java.lang.String key,
int defaultValue)
SerializedTransformationOptionsAccessordefaultValue if the parameter value is null.getIntegerParam in interface SerializedTransformationOptionsAccessorCopyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.