|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.web.forms.RenderingEngineTemplateImpl
public class RenderingEngineTemplateImpl
Implementation of a rendering engine template
| Constructor Summary | |
|---|---|
protected |
RenderingEngineTemplateImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.cmr.repository.NodeRef renditionPropertiesNodeRef,
FormsService formsService)
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected RenderingEngineTemplateImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.cmr.repository.NodeRef renditionPropertiesNodeRef,
FormsService formsService)
| Method Detail |
|---|
public java.lang.String getName()
RenderingEngineTemplate
getName in interface RenderingEngineTemplatepublic java.lang.String getTitle()
RenderingEngineTemplate
getTitle in interface RenderingEngineTemplatepublic java.lang.String getDescription()
RenderingEngineTemplate
getDescription in interface RenderingEngineTemplatepublic java.lang.String getOutputPathPattern()
RenderingEngineTemplate
getOutputPathPattern 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
RenderingEngineTemplate
getInputStream in interface RenderingEngineTemplatejava.io.IOExceptionpublic RenderingEngine getRenderingEngine()
getRenderingEngine in interface RenderingEngineTemplate
public 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 pattern
public java.lang.String getMimetypeForRendition()
RenderingEngineTemplate
getMimetypeForRendition in interface RenderingEngineTemplate
public Rendition render(FormInstanceData formInstanceData,
java.lang.String renditionAvmPath)
throws java.io.IOException,
org.xml.sax.SAXException,
RenderingEngine.RenderingException
RenderingEngineTemplate
render in interface RenderingEngineTemplateformInstanceData - the form instance data for which to produce
the rendition.renditionAvmPath - the path to use for the rendition.
java.io.IOException
org.xml.sax.SAXException
RenderingEngine.RenderingException
public void render(FormInstanceData formInstanceData,
Rendition rendition)
throws java.io.IOException,
org.xml.sax.SAXException,
RenderingEngine.RenderingException
RenderingEngineTemplate
render in interface RenderingEngineTemplateformInstanceData - the form instance data for which to produce
the rendition.rendition - the rendition to rerender
java.io.IOException
org.xml.sax.SAXException
RenderingEngine.RenderingException
protected java.util.Map buildModel(FormInstanceData formInstanceData,
Rendition rendition)
throws java.io.IOException,
org.xml.sax.SAXException
java.io.IOException
org.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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||