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