Class DefaultRaoService
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.rao.util.DefaultRaoService
-
public class DefaultRaoService extends java.lang.ObjectHelper service for manipulating and populating RAOs.
-
-
Constructor Summary
Constructors Constructor Description DefaultRaoService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCartDiscount(boolean absolute, double value, CartRAO cart)protected voidaddCartDiscount(DiscountRAO discount, CartRAO cart)voidaddEntry(OrderEntryRAO entry, CartRAO cart)voidaddEntryDiscount(boolean absolute, double value, OrderEntryRAO entry)protected voidaddEntryDiscount(DiscountRAO discount, OrderEntryRAO entry)OrderEntryRAOaddProduct(ProductRAO promotedProduct, int quantity, double basePrice, CartRAO cart)OrderEntryRAOaddProduct(java.lang.String code, int quantity, double basePrice, CartRAO cart)voidaddPromotedProduct(ProductRAO promotedProduct, int quantity, double basePrice, double promotionValue, CartRAO cart)voidaddPromotedProduct(java.lang.String productCode, int quantity, double basePrice, double value, CartRAO cart)CartRAOcreateCart()CategoryRAOcreateCategory()DiscountRAOcreateDiscount()protected DiscountRAOcreateDiscount(double value)EntriesSelectionStrategyRPDcreateEntriesSelectionStrategyRPD()OrderEntryRAOcreateOrderEntry()OrderEntryRAOcreateOrderEntry(AbstractOrderRAO order, ProductRAO product, double basePrice, int quantity, int entryNumber)ProductRAOcreateProduct()ProductRAOcreateProduct(java.lang.String code)protected intgetNewOrderEntryNumber(CartRAO cart)
-
-
-
Method Detail
-
addCartDiscount
public void addCartDiscount(boolean absolute, double value, CartRAO cart)
-
addCartDiscount
protected void addCartDiscount(DiscountRAO discount, CartRAO cart)
-
addEntry
public void addEntry(OrderEntryRAO entry, CartRAO cart)
-
addEntryDiscount
public void addEntryDiscount(boolean absolute, double value, OrderEntryRAO entry)
-
addEntryDiscount
protected void addEntryDiscount(DiscountRAO discount, OrderEntryRAO entry)
-
createCart
public CartRAO createCart()
-
createEntriesSelectionStrategyRPD
public EntriesSelectionStrategyRPD createEntriesSelectionStrategyRPD()
-
createCategory
public CategoryRAO createCategory()
-
createDiscount
public DiscountRAO createDiscount()
-
createDiscount
protected DiscountRAO createDiscount(double value)
-
createOrderEntry
public OrderEntryRAO createOrderEntry()
-
createOrderEntry
public OrderEntryRAO createOrderEntry(AbstractOrderRAO order, ProductRAO product, double basePrice, int quantity, int entryNumber)
-
createProduct
public ProductRAO createProduct()
-
createProduct
public ProductRAO createProduct(java.lang.String code)
-
addPromotedProduct
public void addPromotedProduct(java.lang.String productCode, int quantity, double basePrice, double value, CartRAO cart)
-
addPromotedProduct
public void addPromotedProduct(ProductRAO promotedProduct, int quantity, double basePrice, double promotionValue, CartRAO cart)
-
addProduct
public OrderEntryRAO addProduct(ProductRAO promotedProduct, int quantity, double basePrice, CartRAO cart)
-
getNewOrderEntryNumber
protected int getNewOrderEntryNumber(CartRAO cart)
-
addProduct
public OrderEntryRAO addProduct(java.lang.String code, int quantity, double basePrice, CartRAO cart)
-
-