Class JCRCommandHelper
- java.lang.Object
-
- org.exoplatform.frameworks.jcr.command.JCRCommandHelper
-
public class JCRCommandHelper extends Object
Created by The eXo Platform SAS.- Version:
- $Id: JCRCommandHelper.java 9857 2006-10-28 20:49:03Z geaz $
- Author:
- Gennady Azarenkov
-
-
Constructor Summary
Constructors Constructor Description JCRCommandHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.jcr.NodecreateResourceFile(javax.jcr.Node parentNode, String relPath, Object data, String mimeType)creates nt:file node and fills it with incoming datastatic javax.jcr.NodegetNtResourceRecursively(javax.jcr.Node node)traverses incoming node trying to find primary nt:resource node
-
-
-
Method Detail
-
createResourceFile
public static javax.jcr.Node createResourceFile(javax.jcr.Node parentNode, String relPath, Object data, String mimeType) throws Exceptioncreates nt:file node and fills it with incoming data- Parameters:
parentNode-relPath-data-mimeType-- Returns:
- Throws:
Exception
-
getNtResourceRecursively
public static javax.jcr.Node getNtResourceRecursively(javax.jcr.Node node) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryExceptiontraverses incoming node trying to find primary nt:resource node- Parameters:
node-- Returns:
- nt:resource node
- Throws:
javax.jcr.ItemNotFoundException- if no such node foundjavax.jcr.RepositoryException
-
-