Class AbstractRenderingEngine.RenderingContext

    • Constructor Summary

      Constructors 
      Constructor Description
      RenderingContext​(org.alfresco.service.cmr.repository.NodeRef sourceNode, RenditionDefinition definition, org.alfresco.service.namespace.QName renditionContentProperty)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T getCheckedParam​(java.lang.String paramName, java.lang.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​(java.lang.String key, int defaultValue)
      Gets the int value for the named parameter.
      <T> T getParamWithDefault​(java.lang.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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RenderingContext

        public RenderingContext​(org.alfresco.service.cmr.repository.NodeRef sourceNode,
                                RenditionDefinition definition,
                                org.alfresco.service.namespace.QName renditionContentProperty)
        Parameters:
        sourceNode - NodeRef
        definition - RenditionDefinition
        renditionContentProperty - QName
    • Method Detail

      • getSourceNode

        public org.alfresco.service.cmr.repository.NodeRef getSourceNode()
        Returns:
        the sourceNode
      • getChildAssociationRef

        public org.alfresco.service.cmr.repository.ChildAssociationRef getChildAssociationRef()
        Lazily instantiation of the ChildAssociationRef
        Returns:
        ChildAssociationRef
      • getDestinationNode

        public org.alfresco.service.cmr.repository.NodeRef getDestinationNode()
        Returns:
        the destinationNode
      • getCheckedParam

        public <T> T getCheckedParam​(java.lang.String paramName,
                                     java.lang.Class<T> clazz)
        Description copied from interface: SerializedTransformationOptionsAccessor
        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
        Specified by:
        getCheckedParam in interface SerializedTransformationOptionsAccessor
        Parameters:
        paramName - the name of the parameter being checked.
        clazz - the expected Class of the parameter value.
        Returns:
        the parameter value or null.
      • makeContentReader

        public org.alfresco.service.cmr.repository.ContentReader makeContentReader()
      • makeContentWriter

        public org.alfresco.service.cmr.repository.ContentWriter makeContentWriter()