|
|||||||||
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 RenderingEngineTemplate
public java.lang.String getTitle()
RenderingEngineTemplate
getTitle
in interface RenderingEngineTemplate
public java.lang.String getDescription()
RenderingEngineTemplate
getDescription
in interface RenderingEngineTemplate
public java.lang.String getOutputPathPattern()
RenderingEngineTemplate
getOutputPathPattern
in interface RenderingEngineTemplate
public 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 RenderingEngineTemplate
java.io.IOException
public RenderingEngine getRenderingEngine()
getRenderingEngine
in interface RenderingEngineTemplate
public java.lang.String getOutputPathForRendition(FormInstanceData formInstanceData, java.lang.String currentAVMPath, java.lang.String name)
getOutputPathForRendition
in interface RenderingEngineTemplate
formInstanceData
- 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 RenderingEngineTemplate
formInstanceData
- 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 RenderingEngineTemplate
formInstanceData
- 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.SAXException
protected static FormDataFunctions getFormDataFunctions()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isExists()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |