© 2002 BEA Systems, Inc.


com.bea.commerce.ebusiness.campaign
Class AddUserDiscountAction

java.lang.Object
  |
  +--com.bea.campaign.action.Action
        |
        +--com.bea.commerce.ebusiness.campaign.AddUserDiscountAction

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 java.lang.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(java.util.Map params)
          Initialize this action from a map of parameters.
 void run()
          Execute this action.
 java.lang.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 java.lang.String DEFAULT_DISCOUNT_SET_NAME
The default discount set name ("DefaultDiscountSet").
Constructor Detail

AddUserDiscountAction

public AddUserDiscountAction()
Method Detail

init

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

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

Throws:
IllegalArugmentException - thrown on invalid action parameters.
Overrides:
init in class Action

run

public void run()
         throws ActionException
Execute this action.

This will associate the named discount to the user.

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

getAssociationMgr

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

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

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved