© 2005 BEA Systems, Inc.

com.bea.commerce.ebusiness.campaign
Class AddUserDiscountAction

java.lang.Object
  extended bycom.bea.campaign.action.Action
      extended bycom.bea.commerce.ebusiness.campaign.AddUserDiscountAction
All Implemented Interfaces:
Serializable

public class AddUserDiscountAction
extends Action

Action object to associate a discount to a user.

This action understands the following action parameters:

See Also:
Serialized Form

Field Summary
static String DEFAULT_DISCOUNT_SET_NAME
          The default discount set name ("DefaultDiscountSet").
 
Constructor Summary
AddUserDiscountAction()
           
 
Method Summary
 DiscountAssociationMgr getAssociationMgr()
          Get the discount association manager this should use.
 void init(Map params)
          Initialize this action from a map of parameters.
 void run()
          Execute this action.
 String toString()
           
 
Methods inherited from class com.bea.campaign.action.Action
getEvent, getRandom, getRequest, getScenario, getScenarioContainer, getScenarioContainerName, getScenarioId, getScenarioName, getServiceLocator, getSession, getTimestamp, getUser, getUserId, locateService, setEvent, setRandom, setRequest, setScenario, setScenarioContainer, setServiceLocator, setSession, setTimestamp, setUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_DISCOUNT_SET_NAME

public static final String DEFAULT_DISCOUNT_SET_NAME
The default discount set name ("DefaultDiscountSet").

See Also:
Constant Field Values
Constructor Detail

AddUserDiscountAction

public AddUserDiscountAction()
Method Detail

getAssociationMgr

public DiscountAssociationMgr getAssociationMgr()
                                         throws CreateException,
                                                RemoteException
Get the discount association manager this should use.

Throws:
CreateException - thrown if the system cannot get a manager.
RemoteException - thrown on a general error.

init

public void init(Map params)
          throws IllegalArgumentException
Initialize this action from a map of parameters.

See the class notes about the understood and required action parameters.

Specified by:
init in class Action
Parameters:
params - A map of name/value pairs
Throws:
IllegalArugmentException - thrown on invalid action parameters.
IllegalArgumentException - if any required params are missing

run

public void run()
         throws ActionException
Execute this action.

This will associate the named discount to the user.

Specified by:
run in class Action
Throws:
ActionException - thrown on an error.

toString

public String toString()

© 2005 BEA Systems, Inc.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved