com.ibm.commerce.negotiation.commands

Class AuctionNotificationCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, AuctionNotificationCmd, Protectable, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class AuctionNotificationCmdImpl
    extends ControllerCommandImpl
    implements AuctionNotificationCmd
    Controller command that drives the auction notification tasks.

    Usage:

    1. message type 1 for StartAuctionNotification: expecting msgtype=1&auctid=1234
    2. message type 2 for BidOverrideNotification: expecting msgtype=2&auctid=12345&bidid=12345&bidid=567&bidid=890
    3. message type 3 for WinnerNotification: expecting msgtype=3&auctid=1234&bidid=12345&bidid=4567
    4. message type 4 for CompleteNotification: expecting msgtype=4&auctid=12345b&bidid=38990
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AuctionNotificationCmdImpl

        public AuctionNotificationCmdImpl()
        AuctionNotificationCmdImpl default constructor.
    • Method Detail

      • getAuctionAccessBean

        public AuctionAccessBean getAuctionAccessBean()
        Returns the access bean corresponding to the auction.
        Returns:
        The Auction access bean
      • getBidAccessBeanArray

        public BidAccessBean[] getBidAccessBeanArray()
        Gets 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.
        Throws:
        ECApplicationException - Raised with message _ERR_BAD_MISSING_CMD_PARAMETER when bad or missing parameters are found.
      • notifyAuctionStart

        public void notifyAuctionStart()
                                throws ECException
        Invoking start auction notification task for the specified auction.
        Throws:
        ECException - Raised with message _ERR_UNKNOWN_NOTIF_EXCEPTION when there is an error when the auction notification task is launched.
      • notifyAuctionStart

        public void notifyAuctionStart(AuctionAccessBean aBean)
                                throws ECException
        Invoking start auction notification task for the specified auction.
        Parameters:
        aBean - the auction access bean.
        Throws:
        ECException - Raised with message _ERR_UNKNOWN_NOTIF_EXCEPTION when there is an error when the auction notification task is launched.
      • setAuctionAccessBean

        public void setAuctionAccessBean(AuctionAccessBean newAuctionAccessBean)
        Saves the incoming auction access bean.
        Parameters:
        newAuctionAccessBean -
      • setBidAccessBeanArray

        public void setBidAccessBeanArray(BidAccessBean[] newBidAccessBeans)
        Sets 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 -