Class DefaultCosSourcingResultHandler
java.lang.Object
com.sap.sapoaacosintegration.services.sourcing.impl.DefaultCosSourcingResultHandler
- All Implemented Interfaces:
CosSourcingResultHandler
Default Handler for COS Sourcing Results
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.hybris.platform.store.services.BaseStoreServicede.hybris.platform.servicelayer.model.ModelServicede.hybris.platform.servicelayer.internal.dao.GenericDao<PointOfServiceModel>protected PointOfServiceModelgetPosForEntry(String source) protected ScheduleLineModelgetScheduleLine(AbstractOrderEntryModel entry, AvailabilityItemResponse availabilityItem) protected List<ScheduleLineModel>protected booleanhasData(SourcingResponse sourcing) Checks if the sourcing response has sufficient data.booleanhasSourcingResult(SourcingResponse sourcing) Check if the sourcing has returned resultvoidpersistCosSourcingResultInCart(SourcingResponse response, AbstractOrderModel cart) Validates and persists theSourcingResponseto the Cart.voidpersistSourcingResultInCart(SourcingResponse response, AbstractOrderModel cart) Persists theSourcingResponseto the Cart.voidvoidsetBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) voidsetPointOfServiceGenericDao(de.hybris.platform.servicelayer.internal.dao.GenericDao<PointOfServiceModel> pointOfServiceGenericDao) voidsetServiceUtils(ServiceUtils serviceUtils) protected voidvalidateResponse(SourcingResponse sourcing) Validates the sourcing response.
-
Constructor Details
-
DefaultCosSourcingResultHandler
public DefaultCosSourcingResultHandler()
-
-
Method Details
-
persistCosSourcingResultInCart
Validates and persists theSourcingResponseto the Cart.- Specified by:
persistCosSourcingResultInCartin interfaceCosSourcingResultHandler
-
persistSourcingResultInCart
Persists theSourcingResponseto the Cart. -
populateScheduleLinesForPickupProduct
- Specified by:
populateScheduleLinesForPickupProductin interfaceCosSourcingResultHandler
-
validateResponse
Validates the sourcing response.- Parameters:
sourcing-
-
hasData
Checks if the sourcing response has sufficient data.- Parameters:
sourcing-- Returns:
- boolean
-
hasSourcingResult
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
-
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
- Returns:
- the serviceUtils
-
setServiceUtils
- Parameters:
serviceUtils- the serviceUtils to set
-