com.ibm.commerce.negotiation.commands
Class NotifyAuctionBaseCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.negotiation.commands.NotifyAuctionBaseCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, NotifyAuctionBaseCmd, TaskCommand
Direct Known Subclasses:
NotifyBidOverrideCmdImpl, NotifyCloseAuctionCmdImpl, NotifyCompleteOrderCmdImpl, NotifyCreateAuctionCmdImpl, NotifyModifyAuctionCmdImpl, NotifyStartAuctionCmdImpl

public class NotifyAuctionBaseCmdImpl
extends TaskCommandImpl
implements NotifyAuctionBaseCmd

This class implements common methods for auction notification classes

See Also:
Serialized Form

Field Summary
protected  com.ibm.commerce.negotiation.objects.AuctionAccessBean auctionAccessBean
          The AuctionAccessBean
protected  java.lang.Long auctionReferenceNumber
          The auction reference number.
static java.lang.String COPYRIGHT
          Copyright statement.
protected  int delayDays
          The number of days after which a message is sent through e-mail if the message is not read via the web.
protected  int delayHours
          The number of hours after which a message is sent through e-mail if the message is not read via the web.
protected  int delayMins
          The number of minitues after which a message is sent through e-mail if the message is not read via the web.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.negotiation.commands. NotifyAuctionBaseCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
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(com.ibm.commerce.negotiation.objects.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 class com.ibm.commerce.command. AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, performExecute, 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.negotiation.commands. NotifyAuctionBaseCmd
setAuctionAccessBean
 

Field Detail
public static final java.lang.String COPYRIGHT
Copyright statement.
See Also:
Constant Field Values

auctionReferenceNumber

protected java.lang.Long auctionReferenceNumber
The auction reference number.

auctionAccessBean

protected com.ibm.commerce.negotiation.objects.AuctionAccessBean auctionAccessBean
The AuctionAccessBean

delayDays

protected int delayDays
The number of days after which a message is sent through e-mail if the message is not read via the web.

delayHours

protected int delayHours
The number of hours after which a message is sent through e-mail if the message is not read via the web.

delayMins

protected int delayMins
The number of minitues after which a message is sent through e-mail if the message is not read via the web.
Constructor Detail

NotifyAuctionBaseCmdImpl

public NotifyAuctionBaseCmdImpl()
NotifyAuctionBaseCmdImpl default constructor.
Method Detail

getAuctionAccessBean

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

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.
Parameters:
userId - The user ID
store - The StoreAccessBean.
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(com.ibm.commerce.negotiation.objects.AuctionAccessBean newAuctionAccessBean)
                          throws FinderException,
                                 java.rmi.RemoteException,
                                 javax.naming.NamingException,
                                 CreateException
Set AuctionAccessBean
Parameters:
newAuctionAccessBean - com.ibm.commerce.negotiation.objects.AuctionAccessBean
Throws:
FinderException
java.rmi.RemoteException
javax.naming.NamingException
CreateException

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