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 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 found
      javax.jcr.RepositoryException