Package org.javlo.module.mailing
Class MailingAction
- java.lang.Object
-
- org.javlo.actions.AbstractModuleAction
-
- org.javlo.module.mailing.MailingAction
-
- All Implemented Interfaces:
IAction,IModuleAction
public class MailingAction extends AbstractModuleAction
-
-
Field Summary
Fields Modifier and Type Field Description static StringDATA_MAIL_PREFIXstatic StringDATA_MAIL_SUFFIXstatic StringMAILING_FEEDBACK_PARAM_NAMEstatic StringMAILING_FEEDBACK_VALUE_NAMEstatic StringSEND_WIZARD_BOXstatic StringSEND_WIZARD_BOX_PREVIEW
-
Constructor Summary
Constructors Constructor Description MailingAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetActionGroupName()the group name of the actionAbstractModuleContextgetModuleContext(javax.servlet.http.HttpSession session, Module module)BooleanhaveRight(javax.servlet.http.HttpSession session, User user)check if a specific user can use the module.static StringperformDeletemailing(RequestService rs, javax.servlet.ServletContext application, ContentContext ctx, javax.servlet.http.HttpSession session, MessageRepository messageRepository, I18nAccess i18nAccess)StringperformSelectMailingTemplate(ContentContext ctx, RequestService rs, Module currentModule, MailingModuleContext mailingContext)static StringperformUnsubscribe(javax.servlet.ServletContext application, javax.servlet.http.HttpServletRequest request, RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)StringperformWizard(ContentContext ctx, GlobalContext globalContext, javax.servlet.ServletContext application, StaticConfig staticConfig, javax.servlet.http.HttpServletRequest request, RequestService rs, Module currentModule, MessageRepository messageRepository, MailingModuleContext mailingContext, I18nAccess i18nAccess)Stringprepare(ContentContext ctx, ModulesContext modulesContext)method called before module rendering-
Methods inherited from class org.javlo.actions.AbstractModuleAction
haveRight, isLightInterface, performChangeRenderer, performSearch, performWizard
-
-
-
-
Field Detail
-
MAILING_FEEDBACK_PARAM_NAME
public static final String MAILING_FEEDBACK_PARAM_NAME
- See Also:
- Constant Field Values
-
DATA_MAIL_PREFIX
public static final String DATA_MAIL_PREFIX
- See Also:
- Constant Field Values
-
DATA_MAIL_SUFFIX
public static final String DATA_MAIL_SUFFIX
- See Also:
- Constant Field Values
-
MAILING_FEEDBACK_VALUE_NAME
public static final String MAILING_FEEDBACK_VALUE_NAME
- See Also:
- Constant Field Values
-
SEND_WIZARD_BOX
public static final String SEND_WIZARD_BOX
- See Also:
- Constant Field Values
-
SEND_WIZARD_BOX_PREVIEW
public static final String SEND_WIZARD_BOX_PREVIEW
- See Also:
- Constant Field Values
-
-
Method Detail
-
getActionGroupName
public String getActionGroupName()
Description copied from interface:IActionthe group name of the action- Returns:
- a group name.
-
getModuleContext
public AbstractModuleContext getModuleContext(javax.servlet.http.HttpSession session, Module module) throws Exception
- Overrides:
getModuleContextin classAbstractModuleAction- Throws:
Exception
-
prepare
public String prepare(ContentContext ctx, ModulesContext modulesContext) throws Exception
Description copied from interface:IModuleActionmethod called before module rendering- Specified by:
preparein interfaceIModuleAction- Overrides:
preparein classAbstractModuleAction- Parameters:
ctx- the current context.modulesContext- the context of the module. You can call getCurrentModule for recover the module.- Returns:
- eventually the error message
- Throws:
Exception
-
performWizard
public String performWizard(ContentContext ctx, GlobalContext globalContext, javax.servlet.ServletContext application, StaticConfig staticConfig, javax.servlet.http.HttpServletRequest request, RequestService rs, Module currentModule, MessageRepository messageRepository, MailingModuleContext mailingContext, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performSelectMailingTemplate
public String performSelectMailingTemplate(ContentContext ctx, RequestService rs, Module currentModule, MailingModuleContext mailingContext) throws Exception
- Throws:
Exception
-
performUnsubscribe
public static String performUnsubscribe(javax.servlet.ServletContext application, javax.servlet.http.HttpServletRequest request, RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
haveRight
public Boolean haveRight(javax.servlet.http.HttpSession session, User user) throws ModuleException
Description copied from interface:IModuleActioncheck if a specific user can use the module.- Specified by:
haveRightin interfaceIModuleAction- Overrides:
haveRightin classAbstractModuleAction- Returns:
- true if access, false if no access and null if this method can't determine access. If access is not determined by the action javlo will take the user group in config.properties.
- Throws:
ModuleException
-
performDeletemailing
public static String performDeletemailing(RequestService rs, javax.servlet.ServletContext application, ContentContext ctx, javax.servlet.http.HttpSession session, MessageRepository messageRepository, I18nAccess i18nAccess) throws IOException
- Throws:
IOException
-
-