public class CreateCampaignWizardController
extends org.openmdx.portal.servlet.AbstractWizardController
Constructor and Description |
---|
CreateCampaignWizardController()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
static ActivityTracker |
createCampaign(ActivityType activityType,
String name,
String description,
AbstractFilterAccount targetGroupAccountsSelector,
ActivityTracker campaignTrackerMain,
boolean initCampaignActivityCreator)
Create campaign.
|
void |
doCancel()
Cancel action.
|
void |
doOK(String locale0,
String locale1,
String locale2,
String locale3,
String locale4,
Map<String,Object> formFields)
OK action.
|
Map<String,Object> |
getFormFields()
Get form values.
|
Map<Short,String> |
getLocaleCodes()
Get selectable locale codes for campaign.
|
QueryBuilderUtil.Predicate |
getRestrictAccountsToLocalePredicate(int index,
List<Short> locales)
Get predicate which restricts accounts to locale[index].
|
List<Short> |
getSelectedLocales() |
org.openmdx.portal.servlet.ViewPort |
getViewPort(Writer out)
Get view port.
|
protected void |
initCampaignEMailMessage(Document document,
ActivityTracker campaignTracker)
Init campaign e-mail message with given document.
|
AccountFilterGlobal |
initTargetGroupAccountsSelector(Segment accountSegment,
AbstractFilterAccount targetGroupAccountsSelector,
int localeIndex,
List<Short> selectedLocales)
Init target group accounts selector for given locale based on existing targetGroupAccountsSelector.
|
short |
mapLocaleToLanguageCode(short locale)
Map locale to language code.
|
forward, getApp, getCodes, getCommand, getCurrentView, getErrorMessage, getExitAction, getFieldLabel, getFirstParameterValue, getForm, getForms, getObject, getObjectIdentity, getParameterValues, getPm, getProviderName, getRequest, getRequestId, getRequestParameter, getSegmentName, getServletPath, getServletPathPrefix, getSession, getTexts, getToolTip, getWizardName, handle, init, initFormFields, prepare, setApp, setCodes, setCurrentView, setExitAction, setForms, setObject, setObjectIdentity, setPm, setProviderName, setRequest, setRequestId, setSegmentName, setSession, setTexts
public CreateCampaignWizardController()
public static ActivityTracker createCampaign(ActivityType activityType, String name, String description, AbstractFilterAccount targetGroupAccountsSelector, ActivityTracker campaignTrackerMain, boolean initCampaignActivityCreator) throws org.openmdx.base.exception.ServiceException
activityType
- name
- description
- org.openmdx.base.exception.ServiceException
public Map<Short,String> getLocaleCodes() throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public short mapLocaleToLanguageCode(short locale)
locale
- public QueryBuilderUtil.Predicate getRestrictAccountsToLocalePredicate(int index, List<Short> locales) throws org.openmdx.base.exception.ServiceException
index
- locales
- org.openmdx.base.exception.ServiceException
public AccountFilterGlobal initTargetGroupAccountsSelector(Segment accountSegment, AbstractFilterAccount targetGroupAccountsSelector, int localeIndex, List<Short> selectedLocales) throws org.openmdx.base.exception.ServiceException
accountSegment
- targetGroupAccountsSelector
- localeIndex
- selectedLocales
- org.openmdx.base.exception.ServiceException
protected void initCampaignEMailMessage(Document document, ActivityTracker campaignTracker) throws org.openmdx.base.exception.ServiceException
document
- campaignTracker
- org.openmdx.base.exception.ServiceException
public void doOK(String locale0, String locale1, String locale2, String locale3, String locale4, Map<String,Object> formFields) throws org.openmdx.base.exception.ServiceException
formFields
- org.openmdx.base.exception.ServiceException
public void doCancel() throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public org.openmdx.portal.servlet.ViewPort getViewPort(Writer out)
out
- public void close() throws org.openmdx.base.exception.ServiceException
close
in class org.openmdx.portal.servlet.AbstractWizardController
org.openmdx.base.exception.ServiceException
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.