com.ibm.commerce.price.commands
Class MarketplaceRetrievePricesCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.command.BusinessPolicyCommandImpl
                          |
                          +--com.ibm.commerce.price.commands.RetrievePricesCmdImpl
                                |
                                +--com.ibm.commerce.price.commands.MarketplaceRetrievePricesCmdImpl
All Implemented Interfaces:
BusinessPolicyCommand, ECCommand, ECTargetableCommand, RetrievePricesCmd, TaskCommand

public class MarketplaceRetrievePricesCmdImpl
extends RetrievePricesCmdImpl
implements RetrievePricesCmd

RetrievePrices impl for fixed pricing in marketplace Store.

This command calls the following TaskCommands:

This command uses the following AccessBeans:
See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          The IBM copyright string.
 
Fields inherited from class com.ibm.commerce.price.commands. RetrievePricesCmdImpl
CLASS_NAME
 
Fields inherited from class com.ibm.commerce.command. BusinessPolicyCommandImpl
policyId, requestProperties
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.price.commands. RetrievePricesCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
MarketplaceRetrievePricesCmdImpl()
          Constructor for MarketplaceRetrievePricesCmdImpl.
 
Method Summary
protected  boolean isValidOffer( OfferAccessBean aabOffer, QuantityAmount aQuantityAmount)
          Prototype code to enable the display of volume-based pricing.
 void performExecute()
          Executes main business logic of the command.
 void reset()
          This method should be called after a command has been executed to reset its states variables.
 void setStoreId(java.lang.Integer anStoreId)
          Sets the id of the input store to be used for calculating the price (Optional).
 
Methods inherited from class com.ibm.commerce.price.commands. RetrievePricesCmdImpl
getCurrency, getItemOffers, getQuantityAmount, retrieveOffersForCatentries, setCatEntryIds, setCurrency, setItemOffers, setOfferIds, setPriceListIds, setPSExclusionList, setPSInclusionList, setQuantities, setRequestProperties, validateParameters
 
Methods inherited from class com.ibm.commerce.command. BusinessPolicyCommandImpl
getPolicyId, getRequestProperties, setPolicyId
 
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, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, 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.price.commands. RetrievePricesCmd
getItemOffers, setCatEntryIds, setCurrency, setOfferIds, setPriceListIds, setPSExclusionList, setPSInclusionList, setQuantities
 
Methods inherited from interface com.ibm.commerce.command. BusinessPolicyCommand
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
 

Field Detail
public static final java.lang.String COPYRIGHT
The IBM copyright string.
See Also:
Constant Field Values
Constructor Detail

MarketplaceRetrievePricesCmdImpl

public MarketplaceRetrievePricesCmdImpl()
Constructor for MarketplaceRetrievePricesCmdImpl.
Method Detail

reset

public void reset()
Description copied from class: AbstractECTargetableCommand
This method should be called after a command has been executed to reset its states variables. After the call to reset, we should be able to execute the command again.
Overrides:
reset in class AbstractECTargetableCommand
See Also:
Command.reset()

setStoreId

public void setStoreId(java.lang.Integer anStoreId)
Description copied from interface: RetrievePricesCmd
Sets the id of the input store to be used for calculating the price (Optional).
Specified by:
setStoreId in interface RetrievePricesCmd
Overrides:
setStoreId in class RetrievePricesCmdImpl
Parameters:
anStoreId - the Store ID.
See Also:
RetrievePricesCmd.setStoreId(Integer)

performExecute

public void performExecute()
                    throws ECException
Description copied from class: RetrievePricesCmdImpl
Executes main business logic of the command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class RetrievePricesCmdImpl
Throws:
ECException
See Also:
ECCommand.performExecute()

isValidOffer

protected boolean isValidOffer(OfferAccessBean aabOffer,
                               QuantityAmount aQuantityAmount)
                        throws ECException
Prototype code to enable the display of volume-based pricing.
Overrides:
isValidOffer in class RetrievePricesCmdImpl
Parameters:
aabOffer - the Offer.
aQuantityAmount - the QuantityAmount.
Returns:
true if the Offer is valid for the QuantityAmount.
Throws:
ECException
See Also:
RetrievePricesCmdImpl.isValidOffer(OfferAccessBean, QuantityAmount)