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>
  • Constructor Details

    • OrderEntryReturnedQuantityHandler

      public OrderEntryReturnedQuantityHandler()
  • Method Details

    • get

      public 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:
      get in interface DynamicAttributeHandler<Long,OrderEntryModel>
      Parameters:
      orderEntry - model for which dynamic attribute is declared.
      Returns:
      computed value.
    • set

      public void set(OrderEntryModel orderEntry, Long quantity)
      Description copied from interface: DynamicAttributeHandler
      Holds logic behind setter for dynamic attribute.
      Specified by:
      set in interface DynamicAttributeHandler<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)