|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.process.action.ActionImpl
atg.commerce.promotion.RemovePromotionAction
public class RemovePromotionAction
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected RepositoryItem[] |
mPromotions
|
protected PromotionTools |
mPromotionTools
reference to the PromotionTools service |
static java.lang.String |
PARAM_PROMOTIONS
parameter: template |
Constructor Summary | |
---|---|
RemovePromotionAction()
|
Method Summary | |
---|---|
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. |
Methods inherited from class atg.process.action.ActionImpl |
---|
execute, execute, getParameterExpression, getParameterValue, storeOptionalParameter, storeRequiredMutableParameter, storeRequiredParameter, toString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static final java.lang.String PARAM_PROMOTIONS
protected PromotionTools mPromotionTools
protected RepositoryItem[] mPromotions
Constructor Detail |
---|
public RemovePromotionAction()
Method Detail |
---|
public void configure(java.lang.Object pConfiguration) throws ProcessException
configure
in interface Action
configure
in class ActionImpl
ProcessException
- 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
ActionImpl
This default implementation does nothing.
initialize
in interface Action
initialize
in class ActionImpl
ProcessException
- if the action could not be properly
initialized - for example, if not all of the required parameters
are present in the MapExpression
protected 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
ActionImpl
execute
methods.
executeAction
in class ActionImpl
ProcessException
- if the action can not be executedpublic java.lang.String getActionName()
getActionName
in class ActionImpl
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |