public class ResourceHelper extends Object
Constructor and Description |
---|
ResourceHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
deleteResource(ResourceResolver resourceResolver,
String path) |
static Resource |
getOrCreateResource(ResourceResolver resourceResolver,
String path) |
static StringBuilder |
getPropertiesForLogging(Resource resource)
Compile a string builder containing the properties of a resource - used for logging
|
static void |
moveResource(Resource res,
String path)
Move resource to given path.
|
public static Resource getOrCreateResource(ResourceResolver resourceResolver, String path) throws PersistenceException
PersistenceException
public static boolean deleteResource(ResourceResolver resourceResolver, String path) throws PersistenceException
PersistenceException
public static StringBuilder getPropertiesForLogging(Resource resource)
public static void moveResource(Resource res, String path) throws PersistenceException
res
- Source resourcepath
- Target pathPersistenceException
Copyright © 2017 The Apache Software Foundation. All rights reserved.