ProfileUtil
instead.public class ProfileUtil extends 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(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(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 occursUnsupportedOperationException
- always.@Deprecated public static boolean isAnonymous(Profile profile)
@Deprecated public static boolean isAnonymous(SlingHttpServletRequest request)
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"