Class TravelAddressController

java.lang.Object
de.hybris.platform.coretravelcommonsocc.controllers.TravelBaseController
de.hybris.platform.coretravelcommonsocc.controllers.TravelAddressController

@Controller @RequestMapping("/{baseSiteId}/users/{userId}/addresses") public class TravelAddressController extends TravelBaseController
Main Controller for Address resource
  • Constructor Details

    • TravelAddressController

      public TravelAddressController()
  • Method Details

    • getAddresses

      @Secured({"ROLE_CUSTOMERGROUP","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(method=GET) @ResponseBody public org.springframework.http.ResponseEntity getAddresses()
    • createAddress

      @Secured({"ROLE_CUSTOMERGROUP","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(method=POST, consumes={"application/json","application/xml"}) @ResponseBody @ResponseStatus(CREATED) public org.springframework.http.ResponseEntity createAddress(@RequestBody Address address, javax.servlet.http.HttpServletRequest httpRequest)
    • getAddress

      @Secured({"ROLE_CUSTOMERGROUP","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(value="/{addressId}", method=GET) @ResponseBody public org.springframework.http.ResponseEntity getAddress(@PathVariable String addressId)
    • replaceAddress

      @Secured({"ROLE_CUSTOMERGROUP","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(value="/{addressId}", method=PUT, consumes={"application/json","application/xml"}) @ResponseStatus(NO_CONTENT) public org.springframework.http.ResponseEntity replaceAddress(@PathVariable String addressId, @RequestBody Address address)
    • updateAddress

      @Secured({"ROLE_CUSTOMERGROUP","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(value="/{addressId}", method=PATCH, consumes={"application/json","application/xml"}) @ResponseStatus(NO_CONTENT) public org.springframework.http.ResponseEntity updateAddress(@PathVariable String addressId, @RequestBody Address address)
    • removeAddress

      @Secured({"ROLE_CUSTOMERGROUP","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(value="/{addressId}", method=DELETE) @ResponseStatus(NO_CONTENT) public org.springframework.http.ResponseEntity removeAddress(@PathVariable String addressId)