public class PrioritizedGetPriceCmdInput extends AbstractGetPriceCmdInput
GetPriceCmdInput
that can
combine two command inputs, always favoring one over the other. This is
useful the favored input is supplied by the user and the other represents
default values.Constructor and Description |
---|
PrioritizedGetPriceCmdInput(GetPriceCmdInput newPrimaryInput,
GetPriceCmdInput newSecondaryInput)
Constructor for PrioritizedGetPriceCmdInput.
|
Modifier and Type | Method and Description |
---|---|
MixList<CatEntryPrices> |
getCatEntries()
Returns the catalog entry information which is used in batch mode.
|
java.lang.Long |
getCatEntryID()
Returns the catalog entry for single mode calculations.
|
java.lang.String |
getCurrency()
Returns the currency to be used.
|
MixList<java.lang.Long> |
getCurrentTradingIDs()
Returns the trading agreements that are currently assigned to the user.
|
java.util.Map |
getCustomData()
Returns the custom data associated with the main catalog entry.
|
MixList<java.lang.Long> |
getEligibleTradingIDs()
Returns the trading agreements that the user is entitled to use.
|
java.lang.Long |
getMemberID()
Returns the member that will be used to determine entitlement for the
trading agreements.
|
java.lang.Long[] |
getOfferIDs()
Returns the offer identifiers that will take precedence among the valid
offers.
|
com.ibm.commerce.order.objects.OrderItemAccessBean |
getOrderItem()
Returns the order item that is given by the order component.
|
java.lang.Long |
getOrganizationID()
Returns the organization under which the member acts for determining
entitlement.
|
QuantityAmount |
getQuantity()
Returns the quantity to be used in single mode.
|
java.lang.Integer |
getStoreID()
Returns the store to be used to determine prices.
|
MixList<java.lang.Long> |
getTradingIDs()
Returns the trading agreements to use when determining prices.
|
java.lang.Boolean |
isThrowPriceExceptions()
Returns whether the command will throw an exception if a price could not
be found.
|
isBatchMode, isValid, setToCommand, setToCommand, setToCommand, toString
public PrioritizedGetPriceCmdInput(GetPriceCmdInput newPrimaryInput, GetPriceCmdInput newSecondaryInput)
newPrimaryInput
- The command input object that takes precedence. Cannot be
null.newSecondaryInput
- The command input object that is used if the corresponding
method returns null in input1
. Cannot be null.public MixList<CatEntryPrices> getCatEntries()
GetPriceCmdInput
public java.lang.Long getCatEntryID()
GetPriceCmdInput
public java.lang.String getCurrency()
GetPriceCmdInput
public MixList<java.lang.Long> getCurrentTradingIDs()
GetPriceCmdInput
This method does not have a corresponding method in any of the price commands.
public java.util.Map getCustomData()
GetPriceCmdInput
GetCustomContractUnitPriceCmd#setCustomData(Map)
public MixList<java.lang.Long> getEligibleTradingIDs()
GetPriceCmdInput
This method does not have a corresponding method in any of the price commands.
public java.lang.Long getMemberID()
GetPriceCmdInput
public java.lang.Long[] getOfferIDs()
GetPriceCmdInput
public com.ibm.commerce.order.objects.OrderItemAccessBean getOrderItem()
GetPriceCmdInput
public java.lang.Long getOrganizationID()
GetPriceCmdInput
public QuantityAmount getQuantity()
GetPriceCmdInput
public java.lang.Integer getStoreID()
GetPriceCmdInput
public MixList<java.lang.Long> getTradingIDs()
GetPriceCmdInput
public java.lang.Boolean isThrowPriceExceptions()
GetPriceCmdInput