com.day.cq.personalization.ProfileUtil instead.public class ProfileUtil
extends java.lang.Object
| Constructor and Description |
|---|
ProfileUtil()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static Profile |
fromRequest(SlingHttpServletRequest request)
Deprecated.
Use
request.adaptTo(Profile.class) instead. |
static Profile |
getProfile(java.lang.String userId,
Session session)
Deprecated.
|
static boolean |
isAnonymous(Profile profile)
Deprecated.
|
static boolean |
isAnonymous(SlingHttpServletRequest request)
Deprecated.
|
public static Profile fromRequest(SlingHttpServletRequest request)
request.adaptTo(Profile.class) instead.request the previous result is returned.request - a request.@Deprecated public static Profile getProfile(java.lang.String userId, Session session) throws RepositoryException
userId using the provided session.userId - a userId.session - the current session.null if the userId is unknown or an error occurs.RepositoryException - if an error occursjava.lang.UnsupportedOperationException - always.@Deprecated public static boolean isAnonymous(Profile profile)
@Deprecated public static boolean isAnonymous(SlingHttpServletRequest request)
"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"