Class OrderEntryReturnedQuantityHandler
- java.lang.Object
-
- de.hybris.platform.warehousing.returns.impl.OrderEntryReturnedQuantityHandler
-
- All Implemented Interfaces:
DynamicAttributeHandler<java.lang.Long,OrderEntryModel>
public class OrderEntryReturnedQuantityHandler extends java.lang.Object implements DynamicAttributeHandler<java.lang.Long,OrderEntryModel>
Handler forOrderEntryModel.getQuantityReturned()
-
-
Constructor Summary
Constructors Constructor Description OrderEntryReturnedQuantityHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Longget(OrderEntryModel orderEntry)Calculates the number of items that were returned for a refund.OrderEntryQuantityServicegetOrderEntryQuantityService()voidset(OrderEntryModel orderEntry, java.lang.Long quantity)Holds logic behind setter for dynamic attribute.voidsetOrderEntryQuantityService(OrderEntryQuantityService orderEntryQuantityService)
-
-
-
Method Detail
-
get
public java.lang.Long get(OrderEntryModel orderEntry)
Calculates the number of items that were returned for a refund. This means that these items cannot be returned a second time. Replacements are not part of this calculation since it is possible to replace the same item multiple times, while this is not the case for refunds.- Specified by:
getin interfaceDynamicAttributeHandler<java.lang.Long,OrderEntryModel>- Parameters:
orderEntry- model for which dynamic attribute is declared.- Returns:
- computed value.
-
set
public void set(OrderEntryModel orderEntry, java.lang.Long quantity)
Description copied from interface:DynamicAttributeHandlerHolds logic behind setter for dynamic attribute.- Specified by:
setin interfaceDynamicAttributeHandler<java.lang.Long,OrderEntryModel>- Parameters:
orderEntry- model for which dynamic attribute is declared.quantity- the value which will be used by setter logic.
-
getOrderEntryQuantityService
public OrderEntryQuantityService getOrderEntryQuantityService()
-
setOrderEntryQuantityService
public void setOrderEntryQuantityService(OrderEntryQuantityService orderEntryQuantityService)
-
-