|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.discovery.impl.common.resource.ResourceHelper
public class ResourceHelper
Some helper methods surrounding resources
Constructor Summary | |
---|---|
ResourceHelper()
|
Method Summary | |
---|---|
static org.apache.sling.api.resource.Resource |
createResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String path)
Deprecated. use getOrCreateResource(ResourceResolver, String) instead |
static boolean |
deleteResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String path)
|
static org.apache.sling.api.resource.Resource |
getOrCreateResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String path)
|
static StringBuilder |
getPropertiesForLogging(org.apache.sling.api.resource.Resource resource)
Compile a string builder containing the properties of a resource - used for logging |
static boolean |
isValidPropertyName(String name)
SLING-2883 : properly test for valid property names |
static void |
moveResource(org.apache.sling.api.resource.Resource res,
String path)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceHelper()
Method Detail |
---|
public static org.apache.sling.api.resource.Resource getOrCreateResource(org.apache.sling.api.resource.ResourceResolver resourceResolver, String path) throws org.apache.sling.api.resource.PersistenceException
org.apache.sling.api.resource.PersistenceException
public static boolean deleteResource(org.apache.sling.api.resource.ResourceResolver resourceResolver, String path) throws org.apache.sling.api.resource.PersistenceException
org.apache.sling.api.resource.PersistenceException
@Deprecated public static org.apache.sling.api.resource.Resource createResource(org.apache.sling.api.resource.ResourceResolver resourceResolver, String path) throws org.apache.sling.api.resource.PersistenceException
getOrCreateResource(ResourceResolver, String)
instead
org.apache.sling.api.resource.PersistenceException
public static StringBuilder getPropertiesForLogging(org.apache.sling.api.resource.Resource resource)
public static void moveResource(org.apache.sling.api.resource.Resource res, String path) throws org.apache.sling.api.resource.PersistenceException
org.apache.sling.api.resource.PersistenceException
public static boolean isValidPropertyName(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |