Package com.day.cq.personalization
Interface UserPropertiesProvider
-
public interface UserPropertiesProvider
TheUserPropertiesProvider
interface describes access toUserProperties
via request orResourceResolver
.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_USERPROPS_PATH
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UserProperties
getUserProperties(ResourceResolver resolver)
Extract theUserProperties
based on the givenresolver
.UserProperties
getUserProperties(SlingHttpServletRequest request)
Extract theUserProperties
based on the givenrequest
.
-
-
-
Field Detail
-
DEFAULT_USERPROPS_PATH
static final java.lang.String DEFAULT_USERPROPS_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUserProperties
UserProperties getUserProperties(SlingHttpServletRequest request)
Extract theUserProperties
based on the givenrequest
.- Parameters:
request
- The request from which to extract user properties.- Returns:
- The
UserProperties
ornull
if not found.
-
getUserProperties
UserProperties getUserProperties(ResourceResolver resolver)
Extract theUserProperties
based on the givenresolver
.- Parameters:
resolver
- The ResourceResolver from which to extract user properties.- Returns:
- The
UserProperties
ornull
if not found.
-
-