java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.negotiation.commands.AuctionNotificationCmdImpl
Controller command that drives the auction notification tasks.
Usage:
Field Summary | |
---|---|
protected
com.ibm.commerce.negotiation.objects.AuctionAccessBean |
auctionAccessBean The access bean corresponding to the auction. |
protected
com.ibm.commerce.negotiation.objects.BidAccessBean[] |
bidAccessBeanArray The bid access bean array. |
static java.lang.String |
COPYRIGHT Copyright statement. |
protected
java.lang.Integer |
msgType The type of the message. |
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl |
requestProperties,
responseProperties,
retriable,
viewReqProperties |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.negotiation.commands. AuctionNotificationCmd |
defaultCommandClassName,
NAME |
Constructor Summary | |
---|---|
AuctionNotificationCmdImpl() AuctionNotificationCmdImpl default constructor. |
Method Summary | |
---|---|
com.ibm.commerce.negotiation.objects.AuctionAccessBean |
getAuctionAccessBean() Returns the access bean corresponding to the auction. |
BidAccessBean[] |
getBidAccessBeanArray() Get bid access bean array. |
java.lang.Integer |
getMsgType() Returns the type of the message. |
void |
initParameters(
TypedProperty param) Retrieves and validates the parameters from the request. |
void |
notifyAuctionStart() Invoking start auction notification task for the specified auction. |
void |
notifyAuctionStart(AuctionAccessBean aBean) Invoking start auction notification task for the specified auction. |
protected
void |
notifyBidOverride() Invoking bid override notification task for the specified bid. |
protected
void |
notifyOrderForSingleBid(BidAccessBean bid) Invoking Orders notification task for the specified bid. |
protected
void |
notifyOrders() Invoking Orders notification task for the specified auction or bids. |
protected
void |
notifyWinners() Invoking winners notification task for the specified auction. |
void |
performExecute() Execute the command. |
void |
setAuctionAccessBean(com.ibm.commerce.negotiation.objects.AuctionAccessBean newAuctionAccessBean) Saves the incoming auction access bean. |
void |
setBidAccessBeanArray(BidAccessBean[] newBidAccessBeans) Set bid access bean array. |
void |
setMsgType(java.lang.Integer newMsgType) Stores the incoming value for the message type. |
void |
setRequestProperties(
TypedProperty reqProperties) set request properties and initialize the parameters for the command. |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Methods inherited from interface com.ibm.commerce.command. ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRetriable,
setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command. AccCommand |
accessControlCheck,
getAccCheck,
getForUserId,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
Methods inherited from interface com.ibm.commerce.command. ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected java.lang.Integer msgType
protected com.ibm.commerce.negotiation.objects.AuctionAccessBean auctionAccessBean
protected com.ibm.commerce.negotiation.objects.BidAccessBean[] bidAccessBeanArray
Constructor Detail |
---|
public AuctionNotificationCmdImpl()
Method Detail |
---|
public com.ibm.commerce.negotiation.objects.AuctionAccessBean getAuctionAccessBean()
public BidAccessBean[] getBidAccessBeanArray()
public java.lang.Integer getMsgType()
public void initParameters(TypedProperty param) throws ECApplicationException
param
- parameters from the request.
ECApplicationException
- Raised with message
_ERR_BAD_MISSING_CMD_PARAMETER when bad or missing parameters are
found.public void notifyAuctionStart() throws ECException
ECException
- Raised with message _ERR_UNKNOWN_NOTIF_EXCEPTION when there is an error when
the auction notification task is launched.public void notifyAuctionStart(AuctionAccessBean aBean) throws ECException
aBean
- the auction access bean.ECException
- Raised with message _ERR_UNKNOWN_NOTIF_EXCEPTION when there is an error when
the auction notification task is launched.protected void notifyBidOverride()
protected void notifyOrderForSingleBid(BidAccessBean bid) throws ECException
bid
- the access bean for the bidECException
- Raised with message ERR_BAD_PARMS when the order is not found for the
bid.protected void notifyOrders() throws ECSystemException
ECSystemException
- Raised with message ERR_UNKNOWN_NOTIF_EXCEPTION
when the bid order notification cannot be completed without
errors.protected void notifyWinners() throws ECException
ECSystemException
- Raised with message ERR_UNKNOWN_NOTIF_EXCEPTION
when the winners notification has errors.ECException
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException.
ECException
public void setAuctionAccessBean(com.ibm.commerce.negotiation.objects.AuctionAccessBean newAuctionAccessBean)
newAuctionAccessBean
-public void setBidAccessBeanArray(BidAccessBean[] newBidAccessBeans)
public void setMsgType(java.lang.Integer newMsgType)
newMsgType
-public void setRequestProperties(TypedProperty reqProperties) throws ECException
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
ControllerCommandImpl
reqProperties
- request propertiesIf
- anything goes wrong.ECException