org.exoplatform.services.deployment
Class Utils

java.lang.Object
  extended by org.exoplatform.services.deployment.Utils

public class Utils
extends Object

Author:
benjaminmestrallet

Field Summary
static String MAPPING_FILE
           
 
Constructor Summary
Utils()
           
 
Method Summary
static Map<String,String> getMapImportHistory(InputStream importHistorySourceStream)
          get data from the version history file
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAPPING_FILE

public static final String MAPPING_FILE
See Also:
Constant Field Values
Constructor Detail

Utils

public Utils()
Method Detail

makePath

public static javax.jcr.Node makePath(javax.jcr.Node rootNode,
                                      String path,
                                      String nodetype)
                               throws javax.jcr.PathNotFoundException,
                                      javax.jcr.RepositoryException
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

makePath

public static javax.jcr.Node makePath(javax.jcr.Node rootNode,
                                      String path,
                                      String nodetype,
                                      Map permissions)
                               throws javax.jcr.PathNotFoundException,
                                      javax.jcr.RepositoryException
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

processImportHistory

public static void processImportHistory(javax.jcr.Node currentNode,
                                        InputStream versionHistorySourceStream,
                                        Map<String,String> mapHistoryValue)
                                 throws Exception
this function used to process import version history for a node

Parameters:
currentNode -
versionHistorySourceStream -
mapHistoryValue -
Throws:
Exception

getMapImportHistory

public static Map<String,String> getMapImportHistory(InputStream importHistorySourceStream)
                                              throws Exception
get data from the version history file

Parameters:
importHistorySourceStream -
Returns:
Throws:
Exception


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.