com.ibm.commerce.negotiation.commands
Class NotifyAuctionBaseCmdImpl

com.ibm.commerce.negotiation.commands.NotifyAuctionBaseCmdImpl
All Implemented Interfaces:
ECCommand, NotifyAuctionBaseCmd, TaskCommand
Direct Known Subclasses:
NotifyBidOverrideCmdImpl, NotifyCloseAuctionCmdImpl, NotifyCompleteOrderCmdImpl, NotifyCreateAuctionCmdImpl, NotifyModifyAuctionCmdImpl, NotifyStartAuctionCmdImpl

public class NotifyAuctionBaseCmdImpl
implements NotifyAuctionBaseCmd

This class implements common methods for auction notification classes


Field Summary
protected  AuctionAccessBean auctionAccessBean
           
protected  java.lang.Long auctionReferenceNumber
           
static java.lang.String COPYRIGHT
           
protected  int delayDays
           
protected  int delayHours
           
protected  int delayMins
           
 
Fields inherited from interface com.ibm.commerce.negotiation.commands.NotifyAuctionBaseCmd
defaultCommandClassName, NAME
 
Constructor Summary
NotifyAuctionBaseCmdImpl()
          NotifyAuctionBaseCmdImpl default constructor.
 
Method Summary
 AuctionAccessBean getAuctionAccessBean()
          Get an AuctionAccessBean
 java.lang.Long getAuctionReferenceNumber()
          Get auction reference number
 int getDelayDays()
          Get the number of days after which a message is sent through e-mail if the message is not read via the web.
 int getDelayHours()
          Get the number of hours after which a message is sent through e-mail if the message is not read via the web.
 int getDelayMins()
          Get the number of minitues after which a message is sent through e-mail if the message is not read via the web.
 java.lang.Integer getPreferredLanguageId(StoreAccessBean store, java.lang.Long userId)
          Get user preferred language Id.
protected  void parseDelayString()
          Parse a string from request properties to get delay days, hours and minitues after which a message is sent through e-mail if the message is not read on web.
 void setAuctionAccessBean(AuctionAccessBean newAuctionAccessBean)
          Set AuctionAccessBean
 void setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber)
          Mutation method to set auction reference number
 void setDelayDays(int newDelayDays)
          Set the number of days after which a message is sent through e-mail if the message is not read via the web.
 void setDelayHours(int newDelayHours)
          Set the number of hours after which a message is sent through e-mail if the message is not read on web.
 void setDelayMins(int newDelayMins)
          Set the number of minitues after which a message is sent through e-mail if the message is not read on web.
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

auctionAccessBean

protected AuctionAccessBean auctionAccessBean

auctionReferenceNumber

protected java.lang.Long auctionReferenceNumber

COPYRIGHT

public static final java.lang.String COPYRIGHT

delayDays

protected int delayDays

delayHours

protected int delayHours

delayMins

protected int delayMins
Constructor Detail

NotifyAuctionBaseCmdImpl

public NotifyAuctionBaseCmdImpl()
NotifyAuctionBaseCmdImpl default constructor.
Method Detail

getAuctionAccessBean

public AuctionAccessBean getAuctionAccessBean()
                                       throws javax.ejb.FinderException,
                                              java.rmi.RemoteException,
                                              javax.naming.NamingException,
                                              javax.ejb.CreateException
Get an AuctionAccessBean
Returns:
com.ibm.commerce.negotiation.objects.AuctionAccessBean

getAuctionReferenceNumber

public java.lang.Long getAuctionReferenceNumber()
Get auction reference number
Returns:
java.lang.Integer

getDelayDays

public int getDelayDays()
Get the number of days after which a message is sent through e-mail if the message is not read via the web.
Returns:
int

getDelayHours

public int getDelayHours()
Get the number of hours after which a message is sent through e-mail if the message is not read via the web.
Returns:
int

getDelayMins

public int getDelayMins()
Get the number of minitues after which a message is sent through e-mail if the message is not read via the web.
Returns:
int

getPreferredLanguageId

public java.lang.Integer getPreferredLanguageId(StoreAccessBean store,
                                                java.lang.Long userId)
Get user preferred language Id.
Returns:
Integer

parseDelayString

protected void parseDelayString()
Parse a string from request properties to get delay days, hours and minitues after which a message is sent through e-mail if the message is not read on web. Delay string takes a format of day=0hour=1&minute=10 in properpties column of cmdreg table for the particular notification command task.

setAuctionAccessBean

public void setAuctionAccessBean(AuctionAccessBean newAuctionAccessBean)
                          throws javax.ejb.FinderException,
                                 java.rmi.RemoteException,
                                 javax.naming.NamingException,
                                 javax.ejb.CreateException
Set AuctionAccessBean
Specified by:
setAuctionAccessBean in interface NotifyAuctionBaseCmd
Parameters:
newAuctionAccessBean - com.ibm.commerce.negotiation.objects.AuctionAccessBean

setAuctionReferenceNumber

public void setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber)
Mutation method to set auction reference number
Specified by:
setAuctionReferenceNumber in interface NotifyAuctionBaseCmd
Parameters:
newAuctionReferenceNumber - java.lang.Integer

setDelayDays

public void setDelayDays(int newDelayDays)
Set the number of days after which a message is sent through e-mail if the message is not read via the web.
Parameters:
newDelayDays - int

setDelayHours

public void setDelayHours(int newDelayHours)
Set the number of hours after which a message is sent through e-mail if the message is not read on web.
Parameters:
newDelayHours - int

setDelayMins

public void setDelayMins(int newDelayMins)
Set the number of minitues after which a message is sent through e-mail if the message is not read on web.
Parameters:
newDelayMins - int