com.ibm.commerce.negotiation.commands
Class CreateAuctionTaskCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.negotiation.commands.AuctionTaskBaseCmdImpl
                    |
                    +--com.ibm.commerce.negotiation.commands.CreateAuctionTaskCmdImpl
All Implemented Interfaces:
AuctionTaskBaseCmd, CreateAuctionTaskCmd, ECCommand, TaskCommand

public class CreateAuctionTaskCmdImpl
extends AuctionTaskBaseCmdImpl
implements CreateAuctionTaskCmd

Create Auction command. This command will create a new auction.


Fields inherited from class com.ibm.commerce.negotiation.commands.AuctionTaskBaseCmdImpl
auctionAccessBean, auctionReferenceNumber, auctionType, bidRuleExist, bidRuleId, closeType, currency, currentAskPrice, currentAvailableQuantity, currentTimeStamp, deposit, durationDays, durationTimeStamp, endTime, fulfillmentCenterId, languageId, longDescriptions, ownerId, pricingRuleType, productDisplayPage, productId, quantity, reservationId, reservePrice, ruleDisplayPage, shortDescriptions, startPrice, startTime, status
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.negotiation.commands.CreateAuctionTaskCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.negotiation.commands.AuctionTaskBaseCmd
AUCTION_BASE_TIMESTAMP
 
Constructor Summary
CreateAuctionTaskCmdImpl()
          CreateAuctionCmdImpl1 constructor comment.
 
Method Summary
protected  boolean isCurrencyValid()
          Checking the currency in store's currency list
protected  boolean isProductPublished()
          Check given item (product) existence for the auction.
 void performExecute()
          Perform additional datebase checks and Create auction.
 void setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber)
          Set Auction Reference Number.
 void validateParameters()
          Validate auction paramters.
 
Methods inherited from class com.ibm.commerce.negotiation.commands.AuctionTaskBaseCmdImpl
addTimestamp, checkBidRule, compareUptoMinute, dayChangeInTimestamp, getAuction, getAuctionReferenceNumber, getAuctionType, getBaseTimeStamp, getBidRuleId, getCloseType, getCurrency, getCurrentAskPrice, getCurrentAvailableQuantity, getCurrentTimeStamp, getDeposit, getDurationDays, getDurationTimeStamp, getEndTime, getErrorContent, getErrorFlag, getFulfillmentCenterId, getFulfillmentCenterId, getLanguageId, getLongDescription, getMerchantCurrency, getOwnerId, getPricingRuleType, getProductDisplayPage, getProductId, getQuantity, getReservationId, getReservePrice, getRuleDisplayPage, getShortDescription, getStartPrice, getStartTime, getStatus, getUpdatedEndTimestamp, inventoryUpdate, isErrorFlag, isReadyToCallExecute, reset, saveDescriptions, setAuctionType, setBidRuleId, setCloseType, setCurrency, setCurrentAskPrice, setCurrentAvailableQuantity, setDeposit, setDurationDays, setDurationTime, setDurationTimestamp, setEndTime, setErrorContent, setErrorFlag, setFulfillmentCenterId, setLanguageId, setLongDescription, setOwnerId, setPricingRuleType, setProductDisplayPage, setProductId, setProductOnAuction, setQuantity, setReservationId, setReservePrice, setRuleDisplayPage, setShortDescription, setStartPrice, setStartTime, setStatus
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
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.CreateAuctionTaskCmd
setAuctionType, setCurrency, setCurrentAvailableQuantity, setOwnerId, setProductId
 
Methods inherited from interface com.ibm.commerce.negotiation.commands.AuctionTaskBaseCmd
getAuction, setBidRuleId, setCloseType, setCurrentAskPrice, setDeposit, setDurationDays, setDurationTime, setDurationTimestamp, setEndTime, setFulfillmentCenterId, setLongDescription, setPricingRuleType, setProductDisplayPage, setQuantity, setReservationId, setReservePrice, setRuleDisplayPage, setShortDescription, setStartPrice, setStartTime
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 

Constructor Detail

CreateAuctionTaskCmdImpl

public CreateAuctionTaskCmdImpl()
CreateAuctionCmdImpl1 constructor comment.
Method Detail

isCurrencyValid

protected boolean isCurrencyValid()
Checking the currency in store's currency list
Returns:
true if the currency is valid, false otherwise.

isProductPublished

protected boolean isProductPublished()
Check given item (product) existence for the auction.
Returns:
true if the product exists for the auction.

performExecute

public void performExecute()
                    throws ECException
Perform additional datebase checks and Create auction.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AuctionTaskBaseCmdImpl
Throws:
ECException - if any problems are encountered.

setAuctionReferenceNumber

public void setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber)
Set Auction Reference Number.
Parameters:
newAuctionReferenceNumber - The auction reference number.

validateParameters

public void validateParameters()
                        throws ECException
Validate auction paramters.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECCommand
Throws:
ECException - if any problems are encountered.