Class DefaultReservationService

java.lang.Object
com.sap.sapoaacarintegration.services.rest.impl.DefaultRestService
com.sap.sapoaacarintegration.services.reservation.impl.DefaultReservationService
All Implemented Interfaces:
OaaRestService, ReservationService

public class DefaultReservationService extends DefaultRestService implements ReservationService
Default Reservation Service.
  • Constructor Details

    • DefaultReservationService

      public DefaultReservationService()
  • 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 CAR Reservation.
      reservationStatus - reservationStatus used for CAR Reservation Status
      Returns:
      reservationResponse
    • deleteReservation

      public void deleteReservation(AbstractOrderModel abstractOrderModel)
      Description copied from interface: ReservationService
      Deletes entire reservation in CAR.
      Specified by:
      deleteReservation in interface ReservationService
      Parameters:
      abstractOrderModel - The order to be used as CartModel or OrderModel during CAR Reservation.
    • deleteReservationItem

      public void deleteReservationItem(AbstractOrderModel abstractOdrerModel, AbstractOrderEntryModel abstractOrderEntryModel)
      Description copied from interface: ReservationService
      Deletes reservation entry in CAR.
      Specified by:
      deleteReservationItem in interface ReservationService
      Parameters:
      abstractOdrerModel - The order to be used as CartModel or OrderModel during CAR Reservation.
      abstractOrderEntryModel - The order entry to be used as CartModel or OrderModel during CAR Reservation.
    • setAuthenticationService

      public void setAuthenticationService(AuthenticationService authenticationService)
      Parameters:
      authenticationService - the authenticationService to set
    • getAuthenticationService

      protected AuthenticationService getAuthenticationService()
      Returns:
      the authenticationService
    • setUrlProvider

      public void setUrlProvider(URLProvider urlProvider)
      Parameters:
      urlProvider - the urlProvider to set
    • getUrlProvider

      protected URLProvider getUrlProvider()
      Returns:
      the urlProvider
    • setRequestMapper

      public void setRequestMapper(ReservationRequestMapper requestMapper)
      Parameters:
      requestMapper - the requestMapper to set
    • getRequestMapper

      protected ReservationRequestMapper getRequestMapper()
      Returns:
      the requestMapper
    • setHttpHeaderProvider

      public void setHttpHeaderProvider(HttpHeaderProvider httpHeaderProvider)
      Parameters:
      httpHeaderProvider - the httpHeaderProvider to set
    • getHttpHeaderProvider

      protected HttpHeaderProvider getHttpHeaderProvider()
      Returns:
      the httpHeaderProvider
    • setHttpEntityBuilder

      public void setHttpEntityBuilder(HttpEntityBuilder httpEntityBuilder)
      Parameters:
      httpEntityBuilder - the httpEntityBuilder to set
    • getHttpEntityBuilder

      protected HttpEntityBuilder getHttpEntityBuilder()
      Returns:
      the httpEntityBuilder
    • setServiceUtils

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

      protected ServiceUtils getServiceUtils()
      Returns:
      the serviceUtils
    • getReservationResultHandler

      public ReservationResultHandler getReservationResultHandler()
      Returns:
      the reservationResultHandler
    • setReservationResultHandler

      public void setReservationResultHandler(ReservationResultHandler reservationResultHandler)
      Parameters:
      reservationResultHandler - the reservationResultHandler to set
    • getCommonUtils

      public CommonUtils getCommonUtils()
    • setCommonUtils

      public void setCommonUtils(CommonUtils commonUtils)
    • getConfigurationService

      public de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()
      Returns:
      the configurationService
    • setConfigurationService

      public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
      Parameters:
      configurationService - the configurationService to set