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 Details

    • DefaultCosReservationService

      public DefaultCosReservationService()
  • Method Details

    • updateReservation

      public ReservationResponse updateReservation(AbstractOrderModel abstractOrderModel, String reservationStatus)
      Description copied from interface: ReservationService
      Calls 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:
      updateReservation in interface ReservationService
      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: ReservationService
      Calls the REST service to update the temporary reservation for available Cart Items.
      Specified by:
      updateReservationForCartItem in interface ReservationService
      Parameters:
      abstractOrderModel - The order to be used as CartModel or OrderModel during COS Reservation.
      reservationStatus - reservationStatus used for COS Reservation Status
      cartItemId - cartItemId Used during COS update Reservation.
      Returns:
      reservationResponse
    • deleteReservation

      public void deleteReservation(AbstractOrderModel abstractOrderModel)
      Description copied from interface: ReservationService
      Deletes entire reservation in COS.
      Specified by:
      deleteReservation in interface ReservationService
      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: ReservationService
      Deletes reservation entry in COS.
      Specified by:
      deleteReservationItem in interface ReservationService
      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
    • getCommonUtils

      public CommonUtils getCommonUtils()
    • setCommonUtils

      public void setCommonUtils(CommonUtils commonUtils)