Class RaoUtils
java.lang.Object
de.hybris.platform.ruleengineservices.util.RaoUtils
The class provides some utility methods for Rule Aware Objects (that are generated at
de.hybris.platform.ruleengineservices.rao package).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAction(AbstractActionedRAO actionedRao, AbstractRuleActionRAO action) Sets references betweenactionandactionedRao.getDiscounts(AbstractActionedRAO actionedRao) Returns ordered set of Discounts of an ActionedRAO (filters out it actions getting only DiscountRAO).getShipment(AbstractActionedRAO actionedRao) Finds Delivery of an actionedRao Item (Order, Product, etc.) if any.booleanisAbsolute(DiscountRAO discount) Finds out if the Discount is absolute or not
-
Constructor Details
-
RaoUtils
public RaoUtils()
-
-
Method Details
-
getDiscounts
Returns ordered set of Discounts of an ActionedRAO (filters out it actions getting only DiscountRAO). -
getShipment
Finds Delivery of an actionedRao Item (Order, Product, etc.) if any. -
isAbsolute
Finds out if the Discount is absolute or not -
addAction
Sets references betweenactionandactionedRao.- Parameters:
actionedRao-action-
-