public class Utils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
MAPPING_FILE |
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
getMapImportHistory(InputStream importHistorySourceStream)
get data from the version history file
|
static <T> T |
getService(Class<T> clazz)
Deprecated.
|
static <T> T |
getService(Class<T> clazz,
String containerName)
Deprecated.
|
static javax.jcr.Node |
makePath(javax.jcr.Node rootNode,
String path,
String nodetype) |
static javax.jcr.Node |
makePath(javax.jcr.Node rootNode,
String path,
String nodetype,
Map permissions) |
static void |
processImportHistory(javax.jcr.Node currentNode,
InputStream versionHistorySourceStream,
Map<String,String> mapHistoryValue)
this function used to process import version history for a node
|
public static final String MAPPING_FILE
public static javax.jcr.Node makePath(javax.jcr.Node rootNode,
String path,
String nodetype)
throws javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
javax.jcr.PathNotFoundExceptionjavax.jcr.RepositoryExceptionpublic static javax.jcr.Node makePath(javax.jcr.Node rootNode,
String path,
String nodetype,
Map permissions)
throws javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
javax.jcr.PathNotFoundExceptionjavax.jcr.RepositoryExceptionpublic static void processImportHistory(javax.jcr.Node currentNode,
InputStream versionHistorySourceStream,
Map<String,String> mapHistoryValue)
throws Exception
currentNode - versionHistorySourceStream - mapHistoryValue - Exceptionpublic static Map<String,String> getMapImportHistory(InputStream importHistorySourceStream) throws Exception
importHistorySourceStream - Exceptionpublic static <T> T getService(Class<T> clazz)
CommonsUtils.getService(Class)public static <T> T getService(Class<T> clazz, String containerName)
CommonsUtils.getService(Class, String)Copyright © 2003–2018 eXo Platform SAS. All rights reserved.