public abstract class SlingshotUtil extends Object
| Constructor and Description |
|---|
SlingshotUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getContentPath(Resource resource)
Get the user content path for the resource
|
static String |
getUserId(Resource resource)
Get the user id for a resource
|
static boolean |
isUser(SlingHttpServletRequest request)
Checks whether the request is from a known user or from anonymous
|
public static String getUserId(Resource resource)
resource - The resource of a usernull.public static String getContentPath(Resource resource)
resource - The resourcenull.public static boolean isUser(SlingHttpServletRequest request)
request - The requesttrue if it is a known user.Copyright © 2017 The Apache Software Foundation. All rights reserved.