public class PromotionAction extends ActionImpl
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected Repository |
mPromotionRepository
reference to the Promotion Repository
|
protected RepositoryItem[] |
mPromotions |
protected PromotionTools |
mPromotionTools
reference to the PromotionTools service
|
static java.lang.String |
PARAM_PROMOTIONS
parameter: template
|
| Constructor and Description |
|---|
PromotionAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(java.lang.Object pConfiguration)
Configures the action using the given configuration object.
|
protected java.lang.String[] |
convertIds(java.lang.Object pSource)
With the given object convert it into a String array of ids.
|
protected void |
executeAction(ProcessExecutionContext pContext)
Executes this action in the given single process execution
context.
|
java.lang.String |
getActionName()
Returns the name of the action.
|
protected RepositoryItem[] |
getPromotions(java.lang.String[] pIds,
PromotionTools pTools)
With the given set of ids find the corresponding promotions
|
void |
initialize(java.util.Map pParameters)
Initializes the action with the given parameters.
|
execute, execute, getParameterExpression, getParameterValue, storeOptionalParameter, storeRequiredMutableParameter, storeRequiredParameter, toString, toStringpublic static java.lang.String CLASS_VERSION
public static final java.lang.String PARAM_PROMOTIONS
protected PromotionTools mPromotionTools
protected RepositoryItem[] mPromotions
protected Repository mPromotionRepository
public void configure(java.lang.Object pConfiguration)
throws ProcessException
configure in interface Actionconfigure in class ActionImplProcessException - if the action could not be configured
- for example, because some of the required properties are
missing from the configurationpublic void initialize(java.util.Map pParameters)
throws ProcessException
ActionImplThis default implementation does nothing.
initialize in interface Actioninitialize in class ActionImplProcessException - if the action could not be properly
initialized - for example, if not all of the required parameters
are present in the MapExpressionprotected java.lang.String[] convertIds(java.lang.Object pSource)
throws ProcessException
ProcessException - if there was an error during conversionprotected RepositoryItem[] getPromotions(java.lang.String[] pIds, PromotionTools pTools) throws ProcessException
ProcessException - if there was any error while find all the promotionsprotected void executeAction(ProcessExecutionContext pContext) throws ProcessException
ActionImplexecute methods.executeAction in class ActionImplProcessException - if the action can not be executedpublic java.lang.String getActionName()
getActionName in class ActionImpl