Class AirlineAddressController
java.lang.Object
de.hybris.platform.coreairlinecommonsocc.controllers.AirlineBaseController
de.hybris.platform.coreairlinecommonsocc.controllers.AirlineAddressController
@Controller
@RequestMapping("/{baseSiteId}/users/{userId}/addresses")
public class AirlineAddressController
extends AirlineBaseController
Main Controller for Address resource
-
Field Summary
Fields 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.ResponseEntitycreateAddress(Address address, javax.servlet.http.HttpServletRequest httpRequest) org.springframework.http.ResponseEntitygetAddress(String addressId) org.springframework.http.ResponseEntityorg.springframework.http.ResponseEntityremoveAddress(String addressId) org.springframework.http.ResponseEntityreplaceAddress(String addressId, Address address) org.springframework.http.ResponseEntityupdateAddress(String addressId, Address address) Methods inherited from class de.hybris.platform.coreairlinecommonsocc.controllers.AirlineBaseController
createPaginationData, getAbsoluteLocationURL, getDataMapper, getErrorCode, getErrorCodeResolver, handleAccessDeniedException, handleMissingRequestHeaderException, handleTravelModelNotFoundException, sanitize, validate, validate
-
Constructor Details
-
AirlineAddressController
public AirlineAddressController()
-
-
Method Details
-
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) -
getAddresses
@Secured({"ROLE_CUSTOMERGROUP","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(method=GET) @ResponseBody public org.springframework.http.ResponseEntity getAddresses() -
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) -
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) -
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) -
getAddress
@Secured({"ROLE_CUSTOMERGROUP","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(value="/{addressId}", method=GET) @ResponseBody public org.springframework.http.ResponseEntity getAddress(@PathVariable String addressId)
-