Class DefaultReservationService
- java.lang.Object
-
- com.sap.sapoaacarintegration.services.rest.impl.DefaultAbstractRestService
-
- com.sap.sapoaacarintegration.services.reservation.impl.DefaultReservationService
-
- All Implemented Interfaces:
OaaRestService,ReservationService
public class DefaultReservationService extends DefaultAbstractRestService implements ReservationService
Default Reservation Service.
-
-
Constructor Summary
Constructors Constructor Description DefaultReservationService()
-
Method Summary
-
Methods inherited from class com.sap.sapoaacarintegration.services.rest.impl.DefaultAbstractRestService
beforeRestCall, checkHttpStatusCode, getRestServiceConfiguration, getRestTemplate, getSessionService, initialize, setBackendDown, setRestServiceConfiguration, setRestTemplate, 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 CAR Reservation.reservationStatus- reservationStatus used for CAR Reservation Status- Returns:
- reservationResponse
-
deleteReservation
public void deleteReservation(AbstractOrderModel abstractOrderModel)
Description copied from interface:ReservationServiceDeletes entire reservation in CAR.- Specified by:
deleteReservationin interfaceReservationService- 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:ReservationServiceDeletes reservation entry in CAR.- Specified by:
deleteReservationItemin interfaceReservationService- 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
-
-