com.squeakysand.sling
Class SlingUtils
java.lang.Object
com.squeakysand.sling.SlingUtils
public class SlingUtils
- extends Object
Method Summary |
static com.squeakysand.jcr.SimpleNode |
findAncestorBySlingResourceType(javax.jcr.Node descendentNode,
String slingResourceType)
Utility method for walking the content tree to find an ancestor node with a specific sling:resourceType value. |
static org.apache.sling.api.resource.Resource |
getResource(String resourcePath,
org.apache.sling.api.resource.ResourceResolver resourceResolver)
|
static String |
getResourceType(javax.jcr.Node node)
|
static List<String> |
getSelectors(org.apache.sling.api.SlingHttpServletRequest slingRequest)
|
static Boolean |
isSelectorPresent(String selector,
org.apache.sling.api.SlingHttpServletRequest slingRequest)
Returns true if the specific selector string is present in the request and false otherwise. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SlingUtils
public SlingUtils()
findAncestorBySlingResourceType
public static com.squeakysand.jcr.SimpleNode findAncestorBySlingResourceType(javax.jcr.Node descendentNode,
String slingResourceType)
- Utility method for walking the content tree to find an ancestor node with a specific sling:resourceType value.
getResource
public static org.apache.sling.api.resource.Resource getResource(String resourcePath,
org.apache.sling.api.resource.ResourceResolver resourceResolver)
getResourceType
public static String getResourceType(javax.jcr.Node node)
getSelectors
public static List<String> getSelectors(org.apache.sling.api.SlingHttpServletRequest slingRequest)
isSelectorPresent
public static Boolean isSelectorPresent(String selector,
org.apache.sling.api.SlingHttpServletRequest slingRequest)
- Returns true if the specific selector string is present in the request and false otherwise.
Copyright © 2010-2012 squeakysand.com. All Rights Reserved.