Class DefaultCosReservationService
java.lang.Object
com.sap.sapoaacosintegration.services.rest.impl.DefaultAbstractCosRestService
com.sap.sapoaacosintegration.services.reservation.impl.DefaultCosReservationService
- All Implemented Interfaces:
ReservationService,CosRestService
public class DefaultCosReservationService
extends DefaultAbstractCosRestService
implements ReservationService
Default Reservation Service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteReservation(AbstractOrderModel abstractOrderModel) Deletes entire reservation in COS.voiddeleteReservationItem(AbstractOrderModel abstractOdrerModel, AbstractOrderEntryModel abstractOrderEntryModel) Deletes reservation entry in COS.protected de.hybris.platform.servicelayer.config.ConfigurationServicede.hybris.platform.outboundservices.client.IntegrationRestTemplateFactoryprotected ServiceUtilsvoidsetCommonUtils(CommonUtils commonUtils) voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) voidsetCosRequestMapper(CosReservationRequestMapper cosRequestMapper) voidsetCosServiceUtils(CosServiceUtils cosServiceUtils) voidsetIntegrationRestTemplateFactory(de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory integrationRestTemplateFactory) voidsetReservationResultHandler(CosReservationResultHandler reservationResultHandler) voidsetServiceUtils(ServiceUtils serviceUtils) updateReservation(AbstractOrderModel abstractOrderModel, String reservationStatus) Calls the REST service to update the temporary reservation.updateReservationForCartItem(AbstractOrderModel abstractOrderModel, String reservationStatus, String cartItemId) Calls the REST service to update the temporary reservation for available Cart Items.Methods inherited from class com.sap.sapoaacosintegration.services.rest.impl.DefaultAbstractCosRestService
checkHttpStatusCode, getSessionService, setBackendDown, setSessionService
-
Constructor Details
-
DefaultCosReservationService
public DefaultCosReservationService()
-
-
Method Details
-
updateReservation
public ReservationResponse updateReservation(AbstractOrderModel abstractOrderModel, String reservationStatus) Description copied from interface:ReservationServiceCalls the REST service to update the temporary reservation. This only updates the Status and the Order ID of the temporary reservation in the Backend, other changes which where done in the order are not changed in the reservation - new Item, changed items etc.- Specified by:
updateReservationin interfaceReservationService- Parameters:
abstractOrderModel- The order to be used as CartModel or OrderModel during COS Reservation.reservationStatus- reservationStatus used for COS Reservation Status- Returns:
- reservationResponse
-
updateReservationForCartItem
public ReservationResponse updateReservationForCartItem(AbstractOrderModel abstractOrderModel, String reservationStatus, String cartItemId) Description copied from interface:ReservationServiceCalls the REST service to update the temporary reservation for available Cart Items.- Specified by:
updateReservationForCartItemin interfaceReservationService- Parameters:
abstractOrderModel- The order to be used as CartModel or OrderModel during COS Reservation.reservationStatus- reservationStatus used for COS Reservation StatuscartItemId- cartItemId Used during COS update Reservation.- Returns:
- reservationResponse
-
deleteReservation
Description copied from interface:ReservationServiceDeletes entire reservation in COS.- Specified by:
deleteReservationin interfaceReservationService- Parameters:
abstractOrderModel- The order to be used as CartModel or OrderModel during COS Reservation Delete.
-
deleteReservationItem
public void deleteReservationItem(AbstractOrderModel abstractOdrerModel, AbstractOrderEntryModel abstractOrderEntryModel) Description copied from interface:ReservationServiceDeletes reservation entry in COS.- Specified by:
deleteReservationItemin interfaceReservationService- Parameters:
abstractOdrerModel- The order to be used as CartModel or OrderModel during COS Reservation Delete.abstractOrderEntryModel- The order entry to be used as CartModel or OrderModel during COS Reservation Delete.
-
setServiceUtils
- Parameters:
serviceUtils- the serviceUtils to set
-
getServiceUtils
- Returns:
- the serviceUtils
-
getIntegrationRestTemplateFactory
public de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory getIntegrationRestTemplateFactory() -
getReservationResultHandler
- Returns:
- the reservationResultHandler
-
setReservationResultHandler
- Parameters:
reservationResultHandler- the reservationResultHandler to set
-
setIntegrationRestTemplateFactory
public void setIntegrationRestTemplateFactory(de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory integrationRestTemplateFactory) -
getCosRequestMapper
-
setCosRequestMapper
-
getConfigurationService
protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService() -
setConfigurationService
public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) -
getCosServiceUtils
- Returns:
- the cosServiceUtils
-
setCosServiceUtils
- Parameters:
cosServiceUtils- the cosServiceUtils to set
-
getCommonUtils
-
setCommonUtils
-