| 
 | |||||||||
| 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_VERSIONClass version string | 
| protected  RepositoryItem[] | mPromotions | 
| protected  PromotionTools | mPromotionToolsreference to the PromotionTools service | 
| static java.lang.String | PARAM_PROMOTIONSparameter: 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 Actionconfigure in class ActionImplProcessException - if the action could not be configured
 - for example, because some of the required properties are
 missing from the configuration
public 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 MapExpression
protected java.lang.String[] convertIds(java.lang.Object pSource)
                                 throws ProcessException
ProcessException - if there was an error during conversion
protected RepositoryItem[] getPromotions(java.lang.String[] pIds,
                                         PromotionTools pTools)
                                  throws ProcessException
ProcessException - if there was any error while find all the promotions
protected 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| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||