public class RenderingEngineTemplateImpl extends java.lang.Object implements RenderingEngineTemplate
| Modifier | Constructor and Description |
|---|---|
protected |
RenderingEngineTemplateImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.cmr.repository.NodeRef renditionPropertiesNodeRef,
FormsService formsService) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map |
buildModel(FormInstanceData formInstanceData,
Rendition rendition)
Builds the model to pass to the rendering engine.
|
java.lang.String |
getDescription()
the description of the rendering engine template
|
protected static FormDataFunctions |
getFormDataFunctions() |
java.io.InputStream |
getInputStream()
Provides an input stream to the rendering engine template.
|
java.lang.String |
getMimetypeForRendition()
Returns the mimetype to use when generating content for this
output method.
|
java.lang.String |
getName()
the name of the rendering engine template
|
org.alfresco.service.cmr.repository.NodeRef |
getNodeRef() |
java.lang.String |
getOutputPathForRendition(FormInstanceData formInstanceData,
java.lang.String currentAVMPath,
java.lang.String name)
Generates an output path for the rendition by compiling the output path pattern
as a freemarker template.
|
java.lang.String |
getOutputPathPattern()
the output path pattern for renditions
|
RenderingEngine |
getRenderingEngine()
Provides the rendering engine to use when processing this template.
|
org.alfresco.service.cmr.repository.NodeRef |
getRenditionPropertiesNodeRef() |
java.lang.String |
getTitle()
the title of the rendering engine template
|
int |
hashCode() |
boolean |
isExists() |
void |
render(FormInstanceData formInstanceData,
Rendition rendition)
Produces a rendition of the provided formInstanceData to an existing
rendition.
|
Rendition |
render(FormInstanceData formInstanceData,
java.lang.String renditionAvmPath)
Produces a rendition of the provided formInstanceData.
|
java.lang.String |
toString() |
protected RenderingEngineTemplateImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.cmr.repository.NodeRef renditionPropertiesNodeRef,
FormsService formsService)
public java.lang.String getName()
RenderingEngineTemplategetName in interface RenderingEngineTemplatepublic java.lang.String getTitle()
RenderingEngineTemplategetTitle in interface RenderingEngineTemplatepublic java.lang.String getDescription()
RenderingEngineTemplategetDescription in interface RenderingEngineTemplatepublic java.lang.String getOutputPathPattern()
RenderingEngineTemplategetOutputPathPattern in interface RenderingEngineTemplatepublic org.alfresco.service.cmr.repository.NodeRef getNodeRef()
public org.alfresco.service.cmr.repository.NodeRef getRenditionPropertiesNodeRef()
public java.io.InputStream getInputStream()
throws java.io.IOException
RenderingEngineTemplategetInputStream in interface RenderingEngineTemplatejava.io.IOExceptionpublic RenderingEngine getRenderingEngine()
getRenderingEngine in interface RenderingEngineTemplatepublic java.lang.String getOutputPathForRendition(FormInstanceData formInstanceData, java.lang.String currentAVMPath, java.lang.String name)
getOutputPathForRendition in interface RenderingEngineTemplateformInstanceData - the form instance data to use for the rendition path.currentAVMPath - the current path in which the form is being created.name - the name which is used in a patternpublic java.lang.String getMimetypeForRendition()
RenderingEngineTemplategetMimetypeForRendition in interface RenderingEngineTemplatepublic Rendition render(FormInstanceData formInstanceData, java.lang.String renditionAvmPath) throws java.io.IOException, org.xml.sax.SAXException, RenderingEngine.RenderingException
RenderingEngineTemplaterender in interface RenderingEngineTemplateformInstanceData - the form instance data for which to produce
the rendition.renditionAvmPath - the path to use for the rendition.java.io.IOExceptionorg.xml.sax.SAXExceptionRenderingEngine.RenderingExceptionpublic void render(FormInstanceData formInstanceData, Rendition rendition) throws java.io.IOException, org.xml.sax.SAXException, RenderingEngine.RenderingException
RenderingEngineTemplaterender in interface RenderingEngineTemplateformInstanceData - the form instance data for which to produce
the rendition.rendition - the rendition to rerenderjava.io.IOExceptionorg.xml.sax.SAXExceptionRenderingEngine.RenderingExceptionprotected java.util.Map buildModel(FormInstanceData formInstanceData, Rendition rendition) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOExceptionorg.xml.sax.SAXExceptionprotected static FormDataFunctions getFormDataFunctions()
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isExists()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.