public class ResourceHelper
extends java.lang.Object
Constructor and Description |
---|
ResourceHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
deleteResource(ResourceResolver resourceResolver,
java.lang.String path) |
static Resource |
getOrCreateResource(ResourceResolver resourceResolver,
java.lang.String path) |
static java.lang.StringBuilder |
getPropertiesForLogging(Resource resource)
Compile a string builder containing the properties of a resource - used for logging
|
static void |
moveResource(Resource res,
java.lang.String path)
Move resource to given path.
|
public static Resource getOrCreateResource(ResourceResolver resourceResolver, java.lang.String path) throws PersistenceException
PersistenceException
public static boolean deleteResource(ResourceResolver resourceResolver, java.lang.String path) throws PersistenceException
PersistenceException
public static java.lang.StringBuilder getPropertiesForLogging(Resource resource)
public static void moveResource(Resource res, java.lang.String path) throws PersistenceException
res
- Source resourcepath
- Target pathPersistenceException
Copyright © 2010 - 2020 Adobe. All Rights Reserved