Class JCRCommandHelper
java.lang.Object
org.exoplatform.frameworks.jcr.command.JCRCommandHelper
Created by The eXo Platform SAS.
- Version:
- $Id: JCRCommandHelper.java 9857 2006-10-28 20:49:03Z geaz $
- Author:
- Gennady Azarenkov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
-
Constructor Details
-
JCRCommandHelper
public JCRCommandHelper()
-
-
Method Details
-
createResourceFile
public static javax.jcr.Node createResourceFile(javax.jcr.Node parentNode, String relPath, Object data, String mimeType) throws Exception creates 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.RepositoryException traverses 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
-