org.infoglue.cms.applications.deliver.inputhandlers
Class MailSender

java.lang.Object
  |
  +--org.infoglue.cms.applications.deliver.inputhandlers.MailSender
All Implemented Interfaces:
InfoGlueInputHandler

public class MailSender
extends java.lang.Object
implements InfoGlueInputHandler

This is the first implementation of the InfoGlueInputHandler which emails a recipent the feedback. This class needs a couple of parameters from the form-content. They are: MailSender.fromAddress = The address from where the mail should originate MailSender.toAddress = The recipient of the feedback on the site. MailSender.subject = The subject line we want in the emails. MailSender.template = The template is as all other templates a way to present info and in this case to create an email body. Check out the examples.


Constructor Summary
MailSender()
           
 
Method Summary
 TemplateController getTemplateController(java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId, javax.servlet.http.HttpServletRequest request)
          This method should be much more sophisticated later and include a check to see if there is a digital asset uploaded which is more specialized and can be used to act as serverside logic to the template.
 void processInput(java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId, java.lang.Integer formContentId, java.util.HashMap parameters, javax.servlet.http.HttpServletRequest request)
          This is the method that is invoked by the calling action.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailSender

public MailSender()
Method Detail

processInput

public void processInput(java.lang.Integer siteNodeId,
                         java.lang.Integer languageId,
                         java.lang.Integer contentId,
                         java.lang.Integer formContentId,
                         java.util.HashMap parameters,
                         javax.servlet.http.HttpServletRequest request)
                  throws java.lang.Exception
This is the method that is invoked by the calling action.

Specified by:
processInput in interface InfoGlueInputHandler
java.lang.Exception

getTemplateController

public TemplateController getTemplateController(java.lang.Integer siteNodeId,
                                                java.lang.Integer languageId,
                                                java.lang.Integer contentId,
                                                javax.servlet.http.HttpServletRequest request)
                                         throws java.lang.Exception
This method should be much more sophisticated later and include a check to see if there is a digital asset uploaded which is more specialized and can be used to act as serverside logic to the template. The method also consideres wheter or not to invoke the preview-version with administrative functioality or the normal site-delivery version.

java.lang.Exception