Class DefaultCosSourcingResultHandler

java.lang.Object
com.sap.sapoaacosintegration.services.sourcing.impl.DefaultCosSourcingResultHandler
All Implemented Interfaces:
CosSourcingResultHandler

public class DefaultCosSourcingResultHandler extends Object implements CosSourcingResultHandler
Default Handler for COS Sourcing Results
  • Constructor Details

    • DefaultCosSourcingResultHandler

      public DefaultCosSourcingResultHandler()
  • Method Details

    • persistCosSourcingResultInCart

      public void persistCosSourcingResultInCart(SourcingResponse response, AbstractOrderModel cart)
      Validates and persists the SourcingResponse to the Cart.
      Specified by:
      persistCosSourcingResultInCart in interface CosSourcingResultHandler
    • persistSourcingResultInCart

      public void persistSourcingResultInCart(SourcingResponse response, AbstractOrderModel cart)
      Persists the SourcingResponse to the Cart.
    • populateScheduleLinesForPickupProduct

      public void populateScheduleLinesForPickupProduct(AbstractOrderEntryModel entryModel)
      Specified by:
      populateScheduleLinesForPickupProduct in interface CosSourcingResultHandler
    • validateResponse

      protected void validateResponse(SourcingResponse sourcing)
      Validates the sourcing response.
      Parameters:
      sourcing -
    • hasData

      protected boolean hasData(SourcingResponse sourcing)
      Checks if the sourcing response has sufficient data.
      Parameters:
      sourcing -
      Returns:
      boolean
    • hasSourcingResult

      public boolean hasSourcingResult(SourcingResponse sourcing)
      Check if the sourcing has returned result
      Parameters:
      sourcing -
      Returns:
      boolean
    • getScheduleLinesForEntry

      protected List<ScheduleLineModel> getScheduleLinesForEntry(AbstractOrderEntryModel entry, SourcingResultCartItemResponse item)
    • getScheduleLine

      protected ScheduleLineModel getScheduleLine(AbstractOrderEntryModel entry, AvailabilityItemResponse availabilityItem)
    • getPosForEntry

      protected PointOfServiceModel getPosForEntry(String source)
    • getModelService

      public de.hybris.platform.servicelayer.model.ModelService getModelService()
      Returns:
      the modelService
    • setModelService

      public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
      Parameters:
      modelService - the modelService to set
    • getPointOfServiceGenericDao

      public de.hybris.platform.servicelayer.internal.dao.GenericDao<PointOfServiceModel> getPointOfServiceGenericDao()
      Returns:
      the pointOfServiceGenericDao
    • setPointOfServiceGenericDao

      public void setPointOfServiceGenericDao(de.hybris.platform.servicelayer.internal.dao.GenericDao<PointOfServiceModel> pointOfServiceGenericDao)
      Parameters:
      pointOfServiceGenericDao - the pointOfServiceGenericDao to set
    • getBaseStoreService

      public de.hybris.platform.store.services.BaseStoreService getBaseStoreService()
      Returns:
      the baseStoreService
    • setBaseStoreService

      public void setBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService)
      Parameters:
      baseStoreService - the baseStoreService to set
    • getServiceUtils

      public ServiceUtils getServiceUtils()
      Returns:
      the serviceUtils
    • setServiceUtils

      public void setServiceUtils(ServiceUtils serviceUtils)
      Parameters:
      serviceUtils - the serviceUtils to set