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 String
DATA_MAIL_PREFIX
static String
DATA_MAIL_SUFFIX
static String
MAILING_FEEDBACK_PARAM_NAME
static String
MAILING_FEEDBACK_VALUE_NAME
static String
SEND_WIZARD_BOX
static String
SEND_WIZARD_BOX_PREVIEW
-
Constructor Summary
Constructors Constructor Description MailingAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getActionGroupName()
the group name of the actionAbstractModuleContext
getModuleContext(javax.servlet.http.HttpSession session, Module module)
Boolean
haveRight(javax.servlet.http.HttpSession session, User user)
check if a specific user can use the module.static String
performDeletemailing(RequestService rs, javax.servlet.ServletContext application, ContentContext ctx, javax.servlet.http.HttpSession session, MessageRepository messageRepository, I18nAccess i18nAccess)
String
performSelectMailingTemplate(ContentContext ctx, RequestService rs, Module currentModule, MailingModuleContext mailingContext)
static String
performUnsubscribe(javax.servlet.ServletContext application, javax.servlet.http.HttpServletRequest request, RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)
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)
String
prepare(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:IAction
the group name of the action- Returns:
- a group name.
-
getModuleContext
public AbstractModuleContext getModuleContext(javax.servlet.http.HttpSession session, Module module) throws Exception
- Overrides:
getModuleContext
in classAbstractModuleAction
- Throws:
Exception
-
prepare
public String prepare(ContentContext ctx, ModulesContext modulesContext) throws Exception
Description copied from interface:IModuleAction
method called before module rendering- Specified by:
prepare
in interfaceIModuleAction
- Overrides:
prepare
in 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:IModuleAction
check if a specific user can use the module.- Specified by:
haveRight
in interfaceIModuleAction
- Overrides:
haveRight
in 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
-
-