com.xebialabs.deployit.jcr
Class JcrUtils
java.lang.Object
com.xebialabs.deployit.jcr.JcrUtils
public class JcrUtils
- extends java.lang.Object
|
Method Summary |
static void |
clearProperties(javax.jcr.Node node)
|
static void |
forEachNonJcrProperty(javax.jcr.Node node,
JcrUtils.Callback<javax.jcr.Property> f)
|
static org.joda.time.DateTime |
getDate(javax.jcr.Node node,
java.lang.String propName)
|
static int |
getIntegerProperty(javax.jcr.Node node,
java.lang.String propName)
|
static java.lang.String |
getOptionalProperty(javax.jcr.Node node,
java.lang.String propName)
|
static javax.jcr.Node |
getOrCreateChild(javax.jcr.Node parentNode,
java.lang.String nodeId)
|
static java.lang.String |
getProperty(javax.jcr.Node node,
java.lang.String propName)
|
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 |
JcrUtils
public JcrUtils()
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
getProperty
public static java.lang.String getProperty(javax.jcr.Node node,
java.lang.String propName)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
getIntegerProperty
public static int getIntegerProperty(javax.jcr.Node node,
java.lang.String propName)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
getDate
public static org.joda.time.DateTime getDate(javax.jcr.Node node,
java.lang.String propName)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
getOptionalProperty
public static java.lang.String getOptionalProperty(javax.jcr.Node node,
java.lang.String propName)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
getOrCreateChild
public static javax.jcr.Node getOrCreateChild(javax.jcr.Node parentNode,
java.lang.String nodeId)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException