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
-
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.ResponseEntity<ConsentTemplateListWsDTO>org.springframework.http.ResponseEntity<ConsentTemplateWsDTO>getConsentTemplate(String consentTemplateId) org.springframework.http.ResponseEntitygrantConsent(String consentTemplateId, Integer consentTemplateVersion) org.springframework.http.ResponseEntityremoveConsent(String consentCode) Methods inherited from class de.hybris.platform.coreairlinecommonsocc.controllers.AirlineBaseController
createPaginationData, getAbsoluteLocationURL, getDataMapper, getErrorCode, getErrorCodeResolver, handleAccessDeniedException, handleMissingRequestHeaderException, handleTravelModelNotFoundException, sanitize, validate, validate
-
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)
-