public final class JcrConverter extends Object
| Modifier and Type | Method and Description |
|---|---|
static PropertyData<?> |
convert(javax.jcr.Property jcrProperty)
Convert a JCR
Property to a CMIS PropertyData. |
static void |
removeProperty(javax.jcr.Node node,
PropertyData<?> propertyData)
Remove a property from a JCR node
|
static void |
setProperty(javax.jcr.Node node,
PropertyData<?> propertyData)
Set a property on a JCR node.
|
static String |
toJcrName(String cmisName)
See JSR-283, 3.2 Names
A JCR name is an ordered pair of strings:
(N, L) where N is a JCR namespace and L is a JCR local name.
|
public static String toJcrName(String cmisName)
cmisName - the name to escapepublic static PropertyData<?> convert(javax.jcr.Property jcrProperty) throws javax.jcr.RepositoryException
Property to a CMIS PropertyData.jcrProperty - javax.jcr.RepositoryExceptionpublic static void setProperty(javax.jcr.Node node,
PropertyData<?> propertyData)
throws javax.jcr.RepositoryException
node - the node to set the propertypropertyData - the property to setjavax.jcr.RepositoryExceptionpublic static void removeProperty(javax.jcr.Node node,
PropertyData<?> propertyData)
throws javax.jcr.RepositoryException
node - the node from which to remove the propertypropertyData - the property to removejavax.jcr.RepositoryExceptionCopyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.