com.xebialabs.deployit.jcr
Class JcrUtils

java.lang.Object
  extended by com.xebialabs.deployit.jcr.JcrUtils

public class JcrUtils
extends java.lang.Object


Nested Class Summary
static interface JcrUtils.Callback<T>
           
 
Constructor Summary
JcrUtils()
           
 
Method Summary
static void clearProperties(javax.jcr.Node node)
           
static void forEachNonJcrProperty(javax.jcr.Node node, JcrUtils.Callback<javax.jcr.Property> f)
           
static java.util.Map<java.lang.String,java.lang.String> readMap(javax.jcr.Property property)
           
static void writeMap(javax.jcr.Node node, java.lang.String propertyName, java.util.Map<java.lang.String,java.lang.String> map)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JcrUtils

public JcrUtils()
Method Detail

readMap

public static java.util.Map<java.lang.String,java.lang.String> readMap(javax.jcr.Property property)
                                                                throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

writeMap

public static void writeMap(javax.jcr.Node node,
                            java.lang.String propertyName,
                            java.util.Map<java.lang.String,java.lang.String> map)
                     throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

forEachNonJcrProperty

public static void forEachNonJcrProperty(javax.jcr.Node node,
                                         JcrUtils.Callback<javax.jcr.Property> f)
                                  throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

clearProperties

public static void clearProperties(javax.jcr.Node node)
                            throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException