com.ibm.commerce.negotiation.commands
Class AuctionNotificationCmdImpl
com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.negotiation.commands.AuctionNotificationCmdImpl
- All Implemented Interfaces:
- AccCommand, AuctionNotificationCmd, ControllerCommand, ECCommand, ECTargetableCommand, Protectable
- public class AuctionNotificationCmdImpl
- extends ControllerCommandImpl
- implements AuctionNotificationCmd
Controller command that drives the auction notification tasks.
Usage:
- message type 1 for StartAuctionNotification: expecting msgtype=1&auctid=1234
- message type 2 for BidOverrideNotification: expecting msgtype=2&auctid=12345&bidid=12345&bidid=567&bidid=890
- message type 3 for WinnerNotification: expecting msgtype=3&auctid=1234&bidid=12345&bidid=4567
- message type 4 for CompleteNotification: expecting msgtype=4&auctid=12345b&bidid=38990
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
auctionAccessBean
protected AuctionAccessBean auctionAccessBean
bidAccessBeanArray
protected BidAccessBean[] bidAccessBeanArray
msgType
protected java.lang.Integer msgType
AuctionNotificationCmdImpl
public AuctionNotificationCmdImpl()
- AuctionNotificationCmdImpl default constructor.
getAuctionAccessBean
public AuctionAccessBean getAuctionAccessBean()
- Returns the access bean corresponding to the auction.
- Returns:
- The Auction Access Bean
getBidAccessBeanArray
public BidAccessBean[] getBidAccessBeanArray()
- Get bid access bean array.
- Returns:
- Bid access bean array.
getMsgType
public java.lang.Integer getMsgType()
- Returns the type of the message.
- Returns:
- the message type.
initParameters
public void initParameters(TypedProperty param)
throws ECApplicationException
- Retrieves and validates the parameters from the request.
- Parameters:
param
- parameters from the request.
notifyAuctionStart
public void notifyAuctionStart()
throws ECException
- Invoking start auction notification task for the specified auction.
notifyAuctionStart
public void notifyAuctionStart(AuctionAccessBean aBean)
throws ECException
- Invoking start auction notification task for the specified auction.
- Parameters:
aBean
- the auction access bean.
notifyBidOverride
protected void notifyBidOverride()
- Invoking bid override notification task for the specified bid.
notifyOrderForSingleBid
protected void notifyOrderForSingleBid(BidAccessBean bid)
throws ECException
- Invoking Orders notification task for the specified bid.
notifyOrders
protected void notifyOrders()
throws ECSystemException
- Invoking Orders notification task for the specified auction or bids.
notifyWinners
protected void notifyWinners()
throws ECException
- Invoking winners notification task for the specified auction.
performExecute
public void performExecute()
throws ECException
- Execute the command.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECTargetableCommand
- Throws:
ECException.
-
setAuctionAccessBean
public void setAuctionAccessBean(AuctionAccessBean newAuctionAccessBean)
- Saves the incoming auction access bean.
- Parameters:
newAuctionAccessBean
-
setBidAccessBeanArray
public void setBidAccessBeanArray(BidAccessBean[] newBidAccessBeans)
- Set bid access bean array.
- Parameters:
the
- bid access bean list.
setMsgType
public void setMsgType(java.lang.Integer newMsgType)
- Stores the incoming value for the message type.
- Parameters:
newMsgType
-
setRequestProperties
public void setRequestProperties(TypedProperty reqProperties)
throws ECException
- set request properties and initialize the parameters for the command.
- Specified by:
setRequestProperties
in interface ControllerCommand
- Overrides:
setRequestProperties
in class ControllerCommandImpl
- Parameters:
requestProperties
- - Throws:
If
- anything goes wrong.