Class ConsentsController
- java.lang.Object
-
- de.hybris.platform.ycommercewebservices.v2.controller.BaseController
-
- de.hybris.platform.ycommercewebservices.v2.controller.BaseCommerceController
-
- de.hybris.platform.ycommercewebservices.v2.controller.ConsentsController
-
@Controller @RequestMapping("/{baseSiteId}/users/{userId}") public class ConsentsController extends BaseCommerceController
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.ycommercewebservices.v2.controller.BaseCommerceController
API_COMPATIBILITY_B2C_CHANNELS
-
Fields inherited from class de.hybris.platform.ycommercewebservices.v2.controller.BaseController
BASIC_FIELD_SET, DEFAULT_CURRENT_PAGE, DEFAULT_FIELD_SET, DEFAULT_PAGE_SIZE, HEADER_TOTAL_COUNT, INVALID_REQUEST_BODY_ERROR_MESSAGE
-
-
Constructor Summary
Constructors Constructor Description ConsentsController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<ConsentTemplateWsDTO>doGiveConsent(java.lang.String consentTemplateId, java.lang.Integer consentTemplateVersion)ConsentTemplateWsDTOgetConsentTemplate(java.lang.String consentTemplateId, java.lang.String fields)ConsentTemplateListWsDTOgetConsentTemplates(java.lang.String fields)voidremoveConsent(java.lang.String consentCode)-
Methods inherited from class de.hybris.platform.ycommercewebservices.v2.controller.BaseCommerceController
addPaymentDetailsInternal, addPaymentDetailsInternal, applyVoucherForCartInternal, createAddressInternal, createAddressInternal, getAddressDTOValidator, getAddressValidator, getCartFacade, getCartVoucherValidator, getCcPaymentInfoValidator, getCheckoutFacade, getDeliveryAddressValidator, getHttpRequestAddressDataPopulator, getHttpRequestPaymentInfoPopulator, getPaymentDetailsDTOValidator, getSessionCart, getUserFacade, getVoucherFacade, setAddressDTOValidator, setAddressValidator, setCartDeliveryAddressInternal, setCartDeliveryModeInternal, setCartFacade, setCcPaymentInfoValidator, setCheckoutFacade, setDeliveryAddressValidator, setHttpRequestAddressDataPopulator, setHttpRequestPaymentInfoPopulator, setPaymentDetailsDTOValidator, setPaymentDetailsInternal, setUserFacade, setVoucherFacade, validateCartForPlaceOrder, validateStatusesEnumValue
-
Methods inherited from class de.hybris.platform.ycommercewebservices.v2.controller.BaseController
addPaginationField, getDataMapper, handleDuplicateUidException, handleErrorInternal, handleHttpMessageNotReadableException, handleModelNotFoundException, logParam, logParam, logValue, sanitize, setDataMapper, setTotalCountHeader, setTotalCountHeader, validate
-
-
-
-
Method Detail
-
getConsentTemplates
@RequestMapping(value="/consenttemplates", method=GET) @ResponseStatus(OK) @ResponseBody public ConsentTemplateListWsDTO getConsentTemplates(@RequestParam(defaultValue="DEFAULT") java.lang.String fields)
-
doGiveConsent
@RequestMapping(value="/consents", method=POST) @ResponseBody public org.springframework.http.ResponseEntity<ConsentTemplateWsDTO> doGiveConsent(@RequestParam java.lang.String consentTemplateId, @RequestParam java.lang.Integer consentTemplateVersion)
-
getConsentTemplate
@RequestMapping(value="/consenttemplates/{consentTemplateId}", method=GET) @ResponseStatus(OK) @ResponseBody public ConsentTemplateWsDTO getConsentTemplate(@PathVariable java.lang.String consentTemplateId, @RequestParam(defaultValue="DEFAULT") java.lang.String fields)
-
removeConsent
@RequestMapping(value="/consents/{consentCode}", method=DELETE) @ResponseStatus(OK) @ResponseBody public void removeConsent(@PathVariable("consentCode") java.lang.String consentCode)
-
-