Class AirlineConsentsController

java.lang.Object
de.hybris.platform.coreairlinecommonsocc.controllers.AirlineBaseController
de.hybris.platform.coreairlineocc.controllers.AirlineConsentsController

@Controller @RequestMapping("/{baseSiteId}/users/{userId}") public class AirlineConsentsController extends AirlineBaseController
  • Constructor Details

    • AirlineConsentsController

      public AirlineConsentsController()
  • Method Details

    • fetchAllConsents

      @SecurePortalUnauthenticatedAccess @Secured({"ROLE_CLIENT","ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/consenttemplates", method=GET) @ResponseBody public org.springframework.http.ResponseEntity<ConsentTemplateListWsDTO> fetchAllConsents()
    • grantConsent

      @Secured({"ROLE_CLIENT","ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/consents", method=POST) @ResponseBody public org.springframework.http.ResponseEntity grantConsent(@RequestParam String consentTemplateId, @RequestParam Integer consentTemplateVersion)
    • removeConsent

      @Secured({"ROLE_CLIENT","ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/consents/{consentCode}", method=DELETE) @ResponseBody public org.springframework.http.ResponseEntity removeConsent(@PathVariable("consentCode") String consentCode)
    • getConsentTemplate

      @SecurePortalUnauthenticatedAccess @Secured({"ROLE_CLIENT","ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/consenttemplates/{consentTemplateId}", method=GET) @ResponseBody public org.springframework.http.ResponseEntity<ConsentTemplateWsDTO> getConsentTemplate(@PathVariable String consentTemplateId)