Class AbstractRenderingEngine.RenderingContext

    • 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​(String paramName,
                                     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()