org.ogf.graap.wsag.samples.actions
Class SampleGetTemplateAction

java.lang.Object
  extended by org.ogf.graap.wsag.server.actions.AbstractGetTemplateAction
      extended by org.ogf.graap.wsag.samples.actions.SampleGetTemplateAction
All Implemented Interfaces:
IActionHandler, IGetTemplateAction

public class SampleGetTemplateAction
extends AbstractGetTemplateAction

SampleGetTemplateAction

Author:
hrasheed

Constructor Summary
SampleGetTemplateAction()
           
 
Method Summary
 AgreementTemplateType getTemplate()
          the agreement templates offered by a factory
 String getTemplateFilename()
           
protected  Map<String,Object> getTemplateParameters()
           
 void initialize()
          Default implementation of action initialization.
 void setTemplateFilename(String templateFilename)
           
 
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

SampleGetTemplateAction

public SampleGetTemplateAction()
Method Detail

initialize

public void initialize()
                throws ActionInitializationException
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.

Specified by:
initialize in interface IActionHandler
Overrides:
initialize in class AbstractGetTemplateAction
Throws:
ActionInitializationException - Indicates an error during handler initialization.

getTemplate

public AgreementTemplateType getTemplate()
the agreement templates offered by a factory

Returns:
the agreement template

getTemplateFilename

public String getTemplateFilename()
Returns:
the template filename

setTemplateFilename

public void setTemplateFilename(String templateFilename)
Parameters:
templateFilename - the template filename

getTemplateParameters

protected Map<String,Object> getTemplateParameters()
Returns:
returns a map with the template parameters used for template creation


Copyright © 2008-2012. All Rights Reserved.