public class JCRCommandHelper extends Object
| Constructor and Description |
|---|
JCRCommandHelper() |
| Modifier and Type | Method and Description |
|---|---|
static javax.jcr.Node |
createResourceFile(javax.jcr.Node parentNode,
String relPath,
Object data,
String mimeType)
creates nt:file node and fills it with incoming data
|
static javax.jcr.Node |
getNtResourceRecursively(javax.jcr.Node node)
traverses incoming node trying to find primary nt:resource node
|
public static javax.jcr.Node createResourceFile(javax.jcr.Node parentNode,
String relPath,
Object data,
String mimeType)
throws Exception
parentNode - relPath - data - mimeType - Exceptionpublic static javax.jcr.Node getNtResourceRecursively(javax.jcr.Node node)
throws javax.jcr.ItemNotFoundException,
javax.jcr.RepositoryException
node - javax.jcr.ItemNotFoundException - if no such node foundjavax.jcr.RepositoryExceptionCopyright © 2017 eXo Platform SAS. All Rights Reserved.