Package com.day.cq.personalization
Interface UserPropertiesProvider
-
public interface UserPropertiesProviderTheUserPropertiesProviderinterface describes access toUserPropertiesvia request orResourceResolver.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_USERPROPS_PATH
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UserPropertiesgetUserProperties(ResourceResolver resolver)Extract theUserPropertiesbased on the givenresolver.UserPropertiesgetUserProperties(SlingHttpServletRequest request)Extract theUserPropertiesbased 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 theUserPropertiesbased on the givenrequest.- Parameters:
request- The request from which to extract user properties.- Returns:
- The
UserPropertiesornullif not found.
-
getUserProperties
UserProperties getUserProperties(ResourceResolver resolver)
Extract theUserPropertiesbased on the givenresolver.- Parameters:
resolver- The ResourceResolver from which to extract user properties.- Returns:
- The
UserPropertiesornullif not found.
-
-