Class EmailAddAction
java.lang.Object
org.apache.struts.action.Action
com.softslate.commerce.customer.core.BaseAction
com.softslate.commerce.administrator.email.EmailAddAction
Struts action class that corresponds to requests to
"/administrator/EmailAdd.do". Processes a request to add a record to the
system.
-
Field Summary
Fields inherited from class org.apache.struts.action.Action
servlet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Email
createEmailFromOrder
(BusinessObjectFactory bof, Order order, String emailType, Template template) createExtraTemplateObjects
(Order order) protected TemplateParser
createTemplateParser
(BusinessObjectFactory bof, Template template, Email email, Map<String, Object> extraTemplateObjects) org.apache.struts.action.ActionForward
execute
(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected void
sendEmail
(BusinessObjectFactory bof, Email email) Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
Field Details
-
log
static org.apache.commons.logging.Log log
-
-
Constructor Details
-
EmailAddAction
public EmailAddAction()
-
-
Method Details
-
execute
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception - Overrides:
execute
in classorg.apache.struts.action.Action
- Throws:
Exception
-
createEmailFromOrder
protected Email createEmailFromOrder(BusinessObjectFactory bof, Order order, String emailType, Template template) throws Exception - Throws:
Exception
-
createTemplateParser
protected TemplateParser createTemplateParser(BusinessObjectFactory bof, Template template, Email email, Map<String, Object> extraTemplateObjects) throws Exception- Throws:
Exception
-
sendEmail
- Throws:
Exception
-
createExtraTemplateObjects
- Throws:
Exception
-