Class AccommodationCartsController
java.lang.Object
de.hybris.platform.coreairlinecommonsocc.controllers.AirlineBaseController
de.hybris.platform.coreairlineaccommodationocc.controllers.AccommodationBaseController
de.hybris.platform.coreairlineaccommodationocc.controllers.AccommodationCartsController
@Controller
@RequestMapping("/{baseSiteId}/users/{userId}/carts/{cartId}")
public class AccommodationCartsController
extends AccommodationBaseController
Web Service Controller for the Accommodation Carts resource.
-
Field Summary
Fields inherited from class de.hybris.platform.coreairlineaccommodationocc.controllers.AccommodationBaseController
MAX_PAGE_LIMIT, MAX_RANGE_OF_STAYFields inherited from class de.hybris.platform.coreairlinecommonsocc.controllers.AirlineBaseController
BASIC_FIELD_SET, DEFAULT_CURRENT_PAGE, DEFAULT_PAGE_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntityaddLeadGuestDetails(LeadGuest leadGuestDetails, Integer roomStayRefNumber) org.springframework.http.ResponseEntityaddRoomStay(AddRoomStayToCartRequest addRoomStayToCartRequest, String salesApplication, javax.servlet.http.HttpServletRequest httpServletRequest) voidchangeRoomStayDates(String salesApplication, String cartId, UpdateRoomStaysRequest updateRoomStaysRequest) voidcreateServiceEntry(AddServiceEntryRequest addServiceEntry, String salesApplication, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) voiddeleteAccommodationServiceEntry(String salesApplication, String entryId) org.springframework.http.ResponseEntitydeleteRoomStay(String salesApplication, Integer roomStayRefNumber) org.springframework.http.ResponseEntitygetAccommodationServiceEntry(String salesApplication, Integer entryId) org.springframework.http.ResponseEntitygetAvailableAccommodationServices(String roomStayRefNumber, String salesApplication) org.springframework.http.ResponseEntity<GuaranteeList>getGuaranteesForRoomStay(String salesApplication, String roomStayRefNumber) org.springframework.http.ResponseEntity<CancelPenaltyList>getPenaltiesForRoomStay(String salesApplication, String roomStayRefNumber) protected List<PassengerTypeQuantityData>preparePassengerTypeQuantityDataList(LeadGuest leadGuestDetails) Prepare list ofPassengerTypeQuantityDatafromvoidupdateAccommodationServiceEntry(AddServiceEntryRequest addServiceEntry, String salesApplication, String entryId) protected voidvalidateGuestOccupancy(LeadGuest leadGuestDetails, List<GuestOccupancyData> guestOccupancies, List<String> passengerCodes) Methods inherited from class de.hybris.platform.coreairlineaccommodationocc.controllers.AccommodationBaseController
checkAccommodationAvailability, createAccommodationAvailabilityRequestData, createAccommodationAvailabilityRequestData, createCriterionData, createPageableData, getAccommodationOfferingFacade, getConfigurationServiceMethods inherited from class de.hybris.platform.coreairlinecommonsocc.controllers.AirlineBaseController
createPaginationData, getAbsoluteLocationURL, getDataMapper, getErrorCode, getErrorCodeResolver, handleAccessDeniedException, handleMissingRequestHeaderException, handleTravelModelNotFoundException, sanitize, validate, validate
-
Constructor Details
-
AccommodationCartsController
public AccommodationCartsController()
-
-
Method Details
-
addLeadGuestDetails
@Secured({"ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/roomStays/{roomStayRefNumber}/leadGuest", method=PUT) @ResponseStatus(NO_CONTENT) public org.springframework.http.ResponseEntity addLeadGuestDetails(@RequestBody LeadGuest leadGuestDetails, @PathVariable("roomStayRefNumber") Integer roomStayRefNumber) -
deleteRoomStay
@Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/roomStays/{roomStayRefNumber}", method=DELETE) public org.springframework.http.ResponseEntity deleteRoomStay(@RequestHeader(name="sap.cx-sales-application") String salesApplication, @PathVariable("roomStayRefNumber") Integer roomStayRefNumber) -
getAvailableAccommodationServices
@Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/roomStays/{roomStayRefNumber}/accommodationServices", method=GET) @ResponseBody public org.springframework.http.ResponseEntity getAvailableAccommodationServices(@PathVariable String roomStayRefNumber, @RequestHeader(name="sap.cx-sales-application") String salesApplication) -
addRoomStay
@Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/roomStays", method=POST) @ResponseStatus(CREATED) public org.springframework.http.ResponseEntity addRoomStay(@RequestBody AddRoomStayToCartRequest addRoomStayToCartRequest, @RequestHeader(name="sap.cx-sales-application") String salesApplication, javax.servlet.http.HttpServletRequest httpServletRequest) throws de.hybris.platform.webservicescommons.errors.exceptions.WebserviceValidationException - Throws:
de.hybris.platform.webservicescommons.errors.exceptions.WebserviceValidationException
-
createServiceEntry
@Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/serviceEntries", method=POST) @ResponseStatus(CREATED) public void createServiceEntry(@RequestBody AddServiceEntryRequest addServiceEntry, @RequestHeader(name="sap.cx-sales-application") String salesApplication, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws de.hybris.platform.webservicescommons.errors.exceptions.WebserviceValidationException - Throws:
de.hybris.platform.webservicescommons.errors.exceptions.WebserviceValidationException
-
updateAccommodationServiceEntry
@Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT","ROLE_CLIENT"}) @RequestMapping(value="serviceEntries/{entryId}", method=PATCH) @ResponseStatus(NO_CONTENT) public void updateAccommodationServiceEntry(@RequestBody AddServiceEntryRequest addServiceEntry, @RequestHeader(name="sap.cx-sales-application") String salesApplication, @PathVariable String entryId) throws de.hybris.platform.webservicescommons.errors.exceptions.WebserviceValidationException - Throws:
de.hybris.platform.webservicescommons.errors.exceptions.WebserviceValidationException
-
deleteAccommodationServiceEntry
@Secured({"ROLE_CLIENT","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/serviceEntries/{entryId}", method=DELETE) @ResponseBody @ResponseStatus(NO_CONTENT) public void deleteAccommodationServiceEntry(@RequestHeader(name="sap.cx-sales-application") String salesApplication, @PathVariable(name="entryId") String entryId) -
getAccommodationServiceEntry
@Secured({"ROLE_CLIENT","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/serviceEntries/{entryId}", method=GET) @ResponseBody public org.springframework.http.ResponseEntity getAccommodationServiceEntry(@RequestHeader(name="sap.cx-sales-application") String salesApplication, @PathVariable(name="entryId") Integer entryId) -
getGuaranteesForRoomStay
@Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/roomStays/{roomStayRefNumber}/guarantees", method=GET) @ResponseBody public org.springframework.http.ResponseEntity<GuaranteeList> getGuaranteesForRoomStay(@RequestHeader(name="sap.cx-sales-application") String salesApplication, @PathVariable String roomStayRefNumber) -
getPenaltiesForRoomStay
@Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/roomStays/{roomStayRefNumber}/cancelPenalties", method=GET) @ResponseBody public org.springframework.http.ResponseEntity<CancelPenaltyList> getPenaltiesForRoomStay(@RequestHeader(name="sap.cx-sales-application") String salesApplication, @PathVariable String roomStayRefNumber) -
changeRoomStayDates
@Secured({"ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/changeStayDates", method=POST) @ResponseStatus(NO_CONTENT) public void changeRoomStayDates(@RequestHeader(name="sap.cx-sales-application") String salesApplication, @PathVariable String cartId, @RequestBody UpdateRoomStaysRequest updateRoomStaysRequest) -
validateGuestOccupancy
protected void validateGuestOccupancy(LeadGuest leadGuestDetails, List<GuestOccupancyData> guestOccupancies, List<String> passengerCodes) -
preparePassengerTypeQuantityDataList
protected List<PassengerTypeQuantityData> preparePassengerTypeQuantityDataList(LeadGuest leadGuestDetails) Prepare list ofPassengerTypeQuantityDatafrom- Parameters:
leadGuestDetails-- Returns:
- list of
-