public interface ConsentService
| Modifier and Type | Method and Description |
|---|---|
void |
generateConsentReference(HttpServletRequest request,
HttpServletResponse response)
Generates the consent reference for the user and stores it both in a cookie
and in the session
|
void |
generateConsentReference(HttpServletRequest request,
HttpServletResponse response,
boolean shouldGenerateConsentReference)
Generates the consent reference for the user and stores it both in a cookie
and in the session
|
<any> |
generateConsentReferenceForUser(java.lang.String userId)
Executes the rest call to the consent service to get the consent reference for a given user
|
java.lang.String |
getConsentReferenceFromCookie(java.lang.String siteId,
HttpServletRequest request)
Fetches the consent reference from cookie
|
java.lang.String |
getConsentReferenceFromSession()
Fetches the consent reference from session
|
<any> generateConsentReferenceForUser(java.lang.String userId)
userId - the user idvoid generateConsentReference(HttpServletRequest request,
HttpServletResponse response)
request - Http requestresponse - Http response with the consent reference cookievoid generateConsentReference(HttpServletRequest request,
HttpServletResponse response,
boolean shouldGenerateConsentReference)
request - Http requestresponse - Http response with the consent reference cookieshouldGenerateConsentReference - should generate consent referencejava.lang.String getConsentReferenceFromSession()
java.lang.String getConsentReferenceFromCookie(java.lang.String siteId,
HttpServletRequest request)
siteId - base site identifierrequest - http requestCopyright © 2017 SAP SE. All Rights Reserved.