org.apache.chemistry.opencmis.jcr
Class JcrNodeFactory

java.lang.Object
  extended by org.apache.chemistry.opencmis.jcr.JcrNodeFactory

public class JcrNodeFactory
extends java.lang.Object

Factory for creating instances of sub-classes of JcrNode from JCR Nodes.


Constructor Summary
JcrNodeFactory()
           
 
Method Summary
 JcrNode create(javax.jcr.Node node)
          Create a new JcrNode from a JCR Node.
 IdentifierMap getIdentifierMap(TypeDefinition fromType)
          Return a IdentifierMap for the given CMIS type.
protected  PathManager getPathManager()
           
protected  JcrTypeManager getTypeManager()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JcrNodeFactory

public JcrNodeFactory()
Method Detail

create

public JcrNode create(javax.jcr.Node node)
Create a new JcrNode from a JCR Node. This implementation creates a JcrUnversionedDocument if node is of type nt:file but not of type mix:simpleVersionable, a JcrVersion if node is of type nt:file and of type mix:simpleVersionable and a JcrFolder otherwise.

Parameters:
node -
Returns:

getIdentifierMap

public IdentifierMap getIdentifierMap(TypeDefinition fromType)
Return a IdentifierMap for the given CMIS type.

Parameters:
fromType - CMIS type
Returns:
IdentifierMap

getTypeManager

protected final JcrTypeManager getTypeManager()

getPathManager

protected final PathManager getPathManager()


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.