public class DefaultDocumentTypeHandler extends AbstractJcrTypeHandler implements JcrDocumentTypeHandler
pathManager, typeHandlerManager, typeManager
Constructor and Description |
---|
DefaultDocumentTypeHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
addContentNodeMixins(javax.jcr.Node contentNode) |
protected void |
addFileNodeMixins(javax.jcr.Node fileNode,
VersioningState versioningState) |
boolean |
canHandle(javax.jcr.Node node) |
JcrNode |
createDocument(JcrFolder parentFolder,
String name,
Properties properties,
ContentStream contentStream,
VersioningState versioningState)
See CMIS 1.0 section 2.2.4.1 createDocument
|
IdentifierMap |
getIdentifierMap()
Used by QueryTranslator to translate CMIS queries to JCR queries.
|
JcrDocument |
getJcrNode(javax.jcr.Node node) |
protected JcrNode |
getJcrNode(javax.jcr.Node fileNode,
VersioningState versioningState) |
TypeDefinition |
getTypeDefinition() |
String |
getTypeId() |
protected void |
setContentNodeProperties(javax.jcr.Node contentNode,
Properties properties) |
protected String |
supportedVersioningType(javax.jcr.Node node) |
protected void |
updateContentNode(ContentStream contentStream,
javax.jcr.Node contentNode) |
initialize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize
public String getTypeId()
getTypeId
in interface JcrTypeHandler
public TypeDefinition getTypeDefinition()
getTypeDefinition
in interface JcrTypeHandler
public IdentifierMap getIdentifierMap()
JcrTypeHandler
public JcrDocument getJcrNode(javax.jcr.Node node) throws javax.jcr.RepositoryException
getJcrNode
in interface JcrDocumentTypeHandler
getJcrNode
in interface JcrTypeHandler
javax.jcr.RepositoryException
public boolean canHandle(javax.jcr.Node node) throws javax.jcr.RepositoryException
canHandle
in interface JcrTypeHandler
javax.jcr.RepositoryException
protected String supportedVersioningType(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public JcrNode createDocument(JcrFolder parentFolder, String name, Properties properties, ContentStream contentStream, VersioningState versioningState)
JcrDocumentTypeHandler
createDocument
in interface JcrDocumentTypeHandler
protected JcrNode getJcrNode(javax.jcr.Node fileNode, VersioningState versioningState) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void updateContentNode(ContentStream contentStream, javax.jcr.Node contentNode) throws IOException, javax.jcr.RepositoryException
IOException
javax.jcr.RepositoryException
protected void setContentNodeProperties(javax.jcr.Node contentNode, Properties properties)
protected void addContentNodeMixins(javax.jcr.Node contentNode) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void addFileNodeMixins(javax.jcr.Node fileNode, VersioningState versioningState) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.