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 Constructor Description DefaultCosReservationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteReservation(AbstractOrderModel abstractOrderModel)Deletes entire reservation in COS.voiddeleteReservationItem(AbstractOrderModel abstractOdrerModel, AbstractOrderEntryModel abstractOrderEntryModel)Deletes reservation entry in COS.protected de.hybris.platform.servicelayer.config.ConfigurationServicegetConfigurationService()CosReservationRequestMappergetCosRequestMapper()CosServiceUtilsgetCosServiceUtils()de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactorygetIntegrationRestTemplateFactory()CosReservationResultHandlergetReservationResultHandler()protected ServiceUtilsgetServiceUtils()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)ReservationResponseupdateReservation(AbstractOrderModel abstractOrderModel, java.lang.String reservationStatus)Calls the REST service to update the temporary reservation.ReservationResponseupdateReservationForCartItem(AbstractOrderModel abstractOrderModel, java.lang.String reservationStatus, java.lang.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
-
-
-
-
Method Detail
-
updateReservation
public ReservationResponse updateReservation(AbstractOrderModel abstractOrderModel, java.lang.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, java.lang.String reservationStatus, java.lang.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
public void deleteReservation(AbstractOrderModel abstractOrderModel)
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
public void setServiceUtils(ServiceUtils serviceUtils)
- Parameters:
serviceUtils- the serviceUtils to set
-
getServiceUtils
protected ServiceUtils getServiceUtils()
- Returns:
- the serviceUtils
-
getIntegrationRestTemplateFactory
public de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory getIntegrationRestTemplateFactory()
-
getReservationResultHandler
public CosReservationResultHandler getReservationResultHandler()
- Returns:
- the reservationResultHandler
-
setReservationResultHandler
public void setReservationResultHandler(CosReservationResultHandler reservationResultHandler)
- Parameters:
reservationResultHandler- the reservationResultHandler to set
-
setIntegrationRestTemplateFactory
public void setIntegrationRestTemplateFactory(de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory integrationRestTemplateFactory)
-
getCosRequestMapper
public CosReservationRequestMapper getCosRequestMapper()
-
setCosRequestMapper
public void setCosRequestMapper(CosReservationRequestMapper cosRequestMapper)
-
getConfigurationService
protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()
-
setConfigurationService
public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
-
getCosServiceUtils
public CosServiceUtils getCosServiceUtils()
- Returns:
- the cosServiceUtils
-
setCosServiceUtils
public void setCosServiceUtils(CosServiceUtils cosServiceUtils)
- Parameters:
cosServiceUtils- the cosServiceUtils to set
-
-