public class PriceInputCaseGetPriceCmdInput extends AbstractGetPriceCmdInput
GetPriceCmdInput
that is
built up from many PriceInputCases
. This is used to
reconstruct a command input object after having split up the data into price
input cases, as is done in CompositeGetContractUnitPriceCmdImpl
.Constructor and Description |
---|
PriceInputCaseGetPriceCmdInput(GetPriceCmdInput newOriginalUserInput,
GetPriceCmdInput newOriginalDefaultInput)
Constructor for PriceInputCaseGetPriceCmdInput.
|
Modifier and Type | Method and Description |
---|---|
void |
addPriceCase(PriceInputCase priceInputCase)
Adds the given input case to this.
|
void |
checkInputCasesAdded()
Checks that at least one
PriceInputCase has been added, and if
not, throws an exception. |
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.
|
boolean |
isBatchMode()
Returns whether the values in this indicate single mode or batch mode
will be used.
|
java.lang.Boolean |
isThrowPriceExceptions()
Returns whether the command will throw an exception if a price could not
be found.
|
boolean |
isValid()
Returns whether if this input can be processed by a command.
|
setToCommand, setToCommand, setToCommand, toString
public PriceInputCaseGetPriceCmdInput(GetPriceCmdInput newOriginalUserInput, GetPriceCmdInput newOriginalDefaultInput)
newOriginalUserInput
- The original input passed into the command before it was split
into input cases. This input helps determine some information
that cannot be reconstructed from the price cases alone (such
as whether single or batch mode is being used). Cannot be
null.newOriginalDefaultInput
- The original input passed into the command before it was split
into input cases. This input helps determine some information
that cannot be reconstructed from the price cases alone (such
as whether single or batch mode is being used). Cannot be
null.public void addPriceCase(PriceInputCase priceInputCase)
GetPriceCmdInput
).priceInputCase
- The input case to add. Cannot be null.public void checkInputCasesAdded() throws java.lang.IllegalStateException
PriceInputCase
has been added, and if
not, throws an exception.java.lang.IllegalStateException
- If no input cases have been added.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 boolean isBatchMode()
GetPriceCmdInput
GetPriceCmdInput.getCatEntries()
is not
null or empty.isBatchMode
in interface GetPriceCmdInput
isBatchMode
in class AbstractGetPriceCmdInput
public java.lang.Boolean isThrowPriceExceptions()
GetPriceCmdInput
public boolean isValid()
GetPriceCmdInput
isValid
in interface GetPriceCmdInput
isValid
in class AbstractGetPriceCmdInput