Class OrderEntryReturnedQuantityHandler
java.lang.Object
de.hybris.platform.warehousing.returns.impl.OrderEntryReturnedQuantityHandler
- All Implemented Interfaces:
DynamicAttributeHandler<Long,OrderEntryModel>
public class OrderEntryReturnedQuantityHandler
extends Object
implements DynamicAttributeHandler<Long,OrderEntryModel>
Handler for
OrderEntryModel.getQuantityReturned()-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(OrderEntryModel orderEntry) Calculates the number of items that were returned for a refund.voidset(OrderEntryModel orderEntry, Long quantity) Holds logic behind setter for dynamic attribute.voidsetOrderEntryQuantityService(OrderEntryQuantityService orderEntryQuantityService)
-
Constructor Details
-
OrderEntryReturnedQuantityHandler
public OrderEntryReturnedQuantityHandler()
-
-
Method Details
-
get
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<Long,OrderEntryModel> - Parameters:
orderEntry- model for which dynamic attribute is declared.- Returns:
- computed value.
-
set
Description copied from interface:DynamicAttributeHandlerHolds logic behind setter for dynamic attribute.- Specified by:
setin interfaceDynamicAttributeHandler<Long,OrderEntryModel> - Parameters:
orderEntry- model for which dynamic attribute is declared.quantity- the value which will be used by setter logic.
-
getOrderEntryQuantityService
-
setOrderEntryQuantityService
-