org.apache.chemistry.opencmis.jcr
Class JcrNodeFactory
java.lang.Object
org.apache.chemistry.opencmis.jcr.JcrNodeFactory
public class JcrNodeFactory
- extends Object
Factory for creating instances of sub-classes of JcrNode from JCR Nodes.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JcrNodeFactory
public JcrNodeFactory()
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.