|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ogf.graap.wsag.server.actions.AbstractGetTemplateAction org.ogf.graap.wsag.server.actions.impl.VelocityAgreementTemplateAction
public class VelocityAgreementTemplateAction
Implementation of an IGetTemplateAction
that dynamically creates
an agreement template using Velocity Template engine. Agreement templates are generated based on the
specified template file when the action is initialized (initialize()
). Subsequent calls to the
getTemplate()
method return the agreement template that was created during the action
initialization process.
Constructor Summary | |
---|---|
VelocityAgreementTemplateAction()
|
Method Summary | |
---|---|
AgreementTemplateType |
getTemplate()
Returns the processed template. |
String |
getTemplateFilename()
Returns the file name of the template to process. |
protected Map<String,?> |
getTemplateParameter()
Hook for custom implementations for providing a set of parameters that are can be accessed by the Velocity template. |
void |
initialize()
Initializes this action. |
void |
setTemplateFilename(String templateFilename)
Sets the file name of the template to process. |
Methods inherited from class org.ogf.graap.wsag.server.actions.AbstractGetTemplateAction |
---|
getHandlerContext, setHandlerContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VelocityAgreementTemplateAction()
Method Detail |
---|
public void initialize() throws ActionInitializationException
ClassLoader
and processed as Velocity template. The
resulting agreement template is stored and retrieved via the getTemplate()
method.
Default implementation of action initialization. Subclasses may overwrite this
method in order to provide a custom initialization of a handler.
Initializes an action handler. This method is called when a agreement factory
action initializes its action handlers. It is called once during the the engine initialization.
initialize
in interface IActionHandler
initialize
in class AbstractGetTemplateAction
ActionInitializationException
- Indicates an error during handler initialization.protected Map<String,?> getTemplateParameter()
AbstractGetTemplateAction.getHandlerContext()
,
IActionHandlerContext.getFactoryContext()
public AgreementTemplateType getTemplate()
public String getTemplateFilename()
public void setTemplateFilename(String templateFilename)
templateFilename
- the templateFilename to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |