Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.commerce.ebusiness.campaign
Class AddUserDiscountAction

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

All Implemented Interfaces
  Serializable

Deprecated

    @Deprecated
    public class AddUserDiscountAction

extends Action

Action object to associate a discount to a user.

This action understands the following action parameters:

- set (optional): the discount set name (if not specified, will use the `default name`.
- name (required): the discount name.
- description (optional): a textual description of the association.

See Also
  Serialized Form

Field Summary
`static String` | `DEFAULT_DISCOUNT_SET_NAME` Deprecated The default discount set name ("DefaultDiscountSet").

Constructor Summary
`AddUserDiscountAction()` Deprecated

Method Summary
`DiscountAssociationMgr` | `getAssociationMgr()` Deprecated Get the discount association manager this should use.
`void` | `init(Map params)` Deprecated Initialize this action from a map of parameters.
`void` | `run()` Deprecated Execute this action.
`String` | `toString()` Deprecated

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

  Deprecated
  The default discount set name ("DefaultDiscountSet").

  See Also
    Constants Summary

Constructor Detail

### AddUserDiscountAction

    public AddUserDiscountAction()

  Deprecated

Method Detail

### init

    public void init(Map params)
              throws IllegalArgumentException

  Deprecated
  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

  Deprecated
  Execute this action.

  This will associate the named discount to the user.

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

### getAssociationMgr

    public DiscountAssociationMgr getAssociationMgr()
                                             throws javax.ejb.CreateException,
                                                    RemoteException

  Deprecated
  Get the discount association manager this should use.

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

### toString

    public String toString()

  Deprecated
  Overrides:
    `toString` in class `Object`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.