public class ChangePriceListPriceEntryActionCmdImpl extends AbstractChangeNounPartActionCmdImpl implements com.ibm.commerce.price.facade.server.commands.ChangePriceListPartActionCmd, com.ibm.commerce.price.facade.server.util.PriceFacadeServerConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
ChangePriceListPriceEntryActionCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | add(java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters)
This method is to execute the OfferAddCmd to add the PriceEntry.
|
protected void | authorityDetermine(java.lang.Integer storeId, java.lang.String storeName, java.lang.Long catentryId)
This method is to check if user has authority to do the operation.
|
protected void | calculateMaximumQuantity(OfferAccessBean offer, OfferAccessBean sencondOffer)
This method is to calculate the maximum quantity for an offer.
|
protected void | change(java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters)
This method is to execute the OfferUpdateCmd to update the PriceEntry.
|
protected void | changeAlternativePrice(com.ibm.commerce.price.facade.datatypes.PriceEntryType priceEntry, java.lang.Object nounPart, java.lang.String aActionCode, java.lang.Integer storeId)
This method is to update alternative price.
|
protected void | checkMinimumQuantity(java.lang.String aActionCode, java.lang.Long aCatEntryId, com.ibm.commerce.price.facade.datatypes.PriceEntryType aPriceEntry, java.lang.Integer storeId)
This method is to check if the minimum quantity of a price entry is valid.
|
protected int | compareMimimumQuantity(OfferAccessBean offer1, OfferAccessBean offer2)
This method is to compare the minimum quantity for two offers.
|
protected CatalogEntryIdentifierType | composeCatalogEntryIdentifier(java.lang.String aCatEntryId)
This method is to compose a CatalogEntryIdentifierType using the CatalogEntryId.
|
protected PriceListIdentifierType | composePriceListIdentifier(java.lang.String aPriceListId)
This method is to compose an PriceListIdentifier SDO from the PriceListId specified.
|
protected void | delete(java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters)
This method is to execute the OfferUpdateCmd to delete the PriceEntry.
|
protected java.lang.Long | getCatentryIdFromNoun(java.lang.Object noun)
This method is to get the catalog entry id from logic noun.
|
protected CommandContext | getCommandContext()
This method is to return the current CommandContext.
|
protected CommerceFoundationFactory | getCommerceFoundationFactory()
This method will return the default instance of the CommerceFoundation Factory.
|
protected java.lang.String | getDefaultCurrency()
This method is to get the current store's default currency.
|
protected java.lang.Long | getPriceListId()
This method is to get the price list id.
|
protected java.lang.Integer | getStoreId(java.lang.Object noun)
This method is to get store id.
|
protected void | handleOfferPrices(java.lang.String currency, java.lang.Long offerId, java.math.BigDecimal price, java.lang.String actionCode)
This method is to delete or update offer.
|
protected boolean | ifStoreSupportedCurrency(java.lang.String aCurrency)
This method is to determine if the input parameter is the supported currency of the store.
|
protected void | resetMaximumQuantity(java.lang.Long catentryId)
This method is to reset all the maximumQuantity for the offer of a catalog entry.
|
protected java.lang.Long | resolvePriceListIdFromNoun(java.lang.Object noun)
This method is to resolve the price list id from PriceListType.
|
protected void | setPriceListId(java.lang.Long aPriceListId)
This method is to set the price list id.
|
void | validate()
A method to validate before executing
|
protected void | validate(ActionExpression actionExpression)
This method validate the ActionExpression which contains the ActionCode, XPath and Object.
|
protected void | validate(MonetaryAmountType aMonetaryPrice, java.lang.String aXPath, java.lang.String aActionCode)
This method is to validate the UnitPriceType to ensure all the information in the UnitPriceType is valid.
|
protected void | validate(com.ibm.commerce.price.facade.datatypes.PriceEntryType aPriceEntry, java.lang.String aXPath, java.lang.String aActionCode)
This method is to validate the PriceEntryType to ensure all the information in the PriceEntryType is valid.
|
protected void | validate(UnitPriceType aUnitPrice, java.lang.String aXPath, java.lang.String aActionCode)
This method is to validate the UnitPriceType to ensure all the information in the UnitPriceType is valid.
|
protected void | validateCatentry(java.lang.String catalogEntryId)
This method is to validate the catalog entry.
|
protected void | validateCommonParas(com.ibm.commerce.price.facade.datatypes.PriceEntryType aPriceEntry, java.lang.String aActionCode)
This method is to validate the common parameters.
|
protected boolean | validateDate(java.lang.String aDateStr)
This method is to validate the Date using the string in input parameter.
|
protected void | validateStoreId(java.lang.Object noun)
This method is to validate store id.
|
public static final java.lang.String COPYRIGHT
public ChangePriceListPriceEntryActionCmdImpl()
protected void add(java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters) throws AbstractApplicationException
protected java.lang.Integer getStoreId(java.lang.Object noun) throws AbstractApplicationException
protected void validateStoreId(java.lang.Object noun) throws AbstractApplicationException
protected void authorityDetermine(java.lang.Integer storeId, java.lang.String storeName, java.lang.Long catentryId) throws AbstractApplicationException
protected void change(java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters) throws AbstractApplicationException
protected void handleOfferPrices(java.lang.String currency, java.lang.Long offerId, java.math.BigDecimal price, java.lang.String actionCode) throws com.ibm.commerce.price.facade.server.exception.PriceApplicationException
protected void delete(java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters) throws AbstractApplicationException
protected void changeAlternativePrice(com.ibm.commerce.price.facade.datatypes.PriceEntryType priceEntry, java.lang.Object nounPart, java.lang.String aActionCode, java.lang.Integer storeId) throws AbstractApplicationException
public void validate() throws AbstractApplicationException
protected void validate(ActionExpression actionExpression) throws com.ibm.commerce.price.facade.server.exception.PriceApplicationException
protected void validate(UnitPriceType aUnitPrice, java.lang.String aXPath, java.lang.String aActionCode) throws com.ibm.commerce.price.facade.server.exception.PriceApplicationException
protected void validate(MonetaryAmountType aMonetaryPrice, java.lang.String aXPath, java.lang.String aActionCode) throws com.ibm.commerce.price.facade.server.exception.PriceApplicationException
protected void validate(com.ibm.commerce.price.facade.datatypes.PriceEntryType aPriceEntry, java.lang.String aXPath, java.lang.String aActionCode) throws com.ibm.commerce.price.facade.server.exception.PriceApplicationException
protected void checkMinimumQuantity(java.lang.String aActionCode, java.lang.Long aCatEntryId, com.ibm.commerce.price.facade.datatypes.PriceEntryType aPriceEntry, java.lang.Integer storeId) throws com.ibm.commerce.price.facade.server.exception.PriceApplicationException
protected void resetMaximumQuantity(java.lang.Long catentryId) throws com.ibm.commerce.price.facade.server.exception.PriceApplicationException, com.ibm.commerce.foundation.internal.common.exception.FoundationApplicationException
protected void calculateMaximumQuantity(OfferAccessBean offer, OfferAccessBean sencondOffer) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException, ResourceException
protected int compareMimimumQuantity(OfferAccessBean offer1, OfferAccessBean offer2) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
protected CommandContext getCommandContext()
protected java.lang.String getDefaultCurrency() throws ECException
protected boolean ifStoreSupportedCurrency(java.lang.String aCurrency) throws com.ibm.commerce.price.facade.server.exception.PriceApplicationException
protected boolean validateDate(java.lang.String aDateStr)
protected CatalogEntryIdentifierType composeCatalogEntryIdentifier(java.lang.String aCatEntryId)
protected PriceListIdentifierType composePriceListIdentifier(java.lang.String aPriceListId)
protected CommerceFoundationFactory getCommerceFoundationFactory()
protected void validateCommonParas(com.ibm.commerce.price.facade.datatypes.PriceEntryType aPriceEntry, java.lang.String aActionCode) throws com.ibm.commerce.price.facade.server.exception.PriceApplicationException
protected void validateCatentry(java.lang.String catalogEntryId) throws com.ibm.commerce.price.facade.server.exception.PriceApplicationException
protected java.lang.Long resolvePriceListIdFromNoun(java.lang.Object noun) throws com.ibm.commerce.price.facade.server.exception.PriceApplicationException
protected void setPriceListId(java.lang.Long aPriceListId)
protected java.lang.Long getPriceListId()
protected java.lang.Long getCatentryIdFromNoun(java.lang.Object noun)