public class CustomNodeManager extends Object implements NodeManager
Modifier and Type | Field and Description |
---|---|
protected int |
numLevels |
Constructor and Description |
---|
CustomNodeManager() |
Modifier and Type | Method and Description |
---|---|
javax.jcr.Node |
createContentNode(javax.jcr.Node fileNode,
RequestDocument document,
javax.jcr.Node parentNode,
javax.jcr.Session session) |
javax.jcr.Node |
createFileNode(RequestDocument document,
String name,
javax.jcr.Node parentNode,
javax.jcr.Session session) |
void |
enableVersioning(javax.jcr.Node node) |
byte[] |
getBinaryData(javax.jcr.Node nodeByUUID) |
byte[] |
getBytesFromInputStream(InputStream is) |
String |
getData(javax.jcr.Node nodeByUUID) |
static CustomNodeManager |
getInstance() |
String |
getInstanceData(javax.jcr.Node instanceNode) |
javax.jcr.Node |
getNodeByUUID(javax.jcr.Session session,
String uuid) |
javax.jcr.Node |
getParentNode(RequestDocument requestDocument,
javax.jcr.Session session) |
javax.jcr.Node |
getStaticFormatNode(RequestDocument doc,
javax.jcr.Session session) |
void |
ingestItemRecForInstance(RequestDocument reqDoc,
String id,
javax.jcr.Session session) |
javax.jcr.Node |
initFileNode(RequestDocument document,
String name,
javax.jcr.Node parentNode,
javax.jcr.Session session)
Deprecated.
|
javax.jcr.Node |
initLevelNode(String name,
javax.jcr.Node parent,
boolean isRecursiveCall,
javax.jcr.Session session) |
javax.jcr.Node |
initNonStaticNode(String nodeName,
javax.jcr.Node parentNode) |
javax.jcr.Node |
initStaticNode(String nodeName,
javax.jcr.Node parentNode,
javax.jcr.Session session) |
void |
linkNodes(javax.jcr.Node node,
javax.jcr.Node linkedDocumentNode,
javax.jcr.Session session) |
protected void |
modifyAdditionalAttributes(AdditionalAttributes additionalAttributes,
RequestDocument requestDocument) |
protected int numLevels
public CustomNodeManager()
public static CustomNodeManager getInstance()
public javax.jcr.Node getParentNode(RequestDocument requestDocument, javax.jcr.Session session) throws OleDocStoreException
getParentNode
in interface NodeManager
OleDocStoreException
public void linkNodes(javax.jcr.Node node, javax.jcr.Node linkedDocumentNode, javax.jcr.Session session) throws OleDocStoreException
linkNodes
in interface NodeManager
OleDocStoreException
public javax.jcr.Node getStaticFormatNode(RequestDocument doc, javax.jcr.Session session) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public javax.jcr.Node initStaticNode(String nodeName, javax.jcr.Node parentNode, javax.jcr.Session session) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public javax.jcr.Node initNonStaticNode(String nodeName, javax.jcr.Node parentNode) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void modifyAdditionalAttributes(AdditionalAttributes additionalAttributes, RequestDocument requestDocument)
public javax.jcr.Node initLevelNode(String name, javax.jcr.Node parent, boolean isRecursiveCall, javax.jcr.Session session) throws Exception
Exception
@Deprecated public javax.jcr.Node initFileNode(RequestDocument document, String name, javax.jcr.Node parentNode, javax.jcr.Session session) throws Exception
Exception
public javax.jcr.Node createFileNode(RequestDocument document, String name, javax.jcr.Node parentNode, javax.jcr.Session session) throws OleDocStoreException
createFileNode
in interface NodeManager
OleDocStoreException
public javax.jcr.Node createContentNode(javax.jcr.Node fileNode, RequestDocument document, javax.jcr.Node parentNode, javax.jcr.Session session) throws OleDocStoreException
createContentNode
in interface NodeManager
OleDocStoreException
public void enableVersioning(javax.jcr.Node node) throws OleDocStoreException
enableVersioning
in interface NodeManager
OleDocStoreException
public javax.jcr.Node getNodeByUUID(javax.jcr.Session session, String uuid) throws OleDocStoreException
getNodeByUUID
in interface NodeManager
OleDocStoreException
public String getData(javax.jcr.Node nodeByUUID) throws OleDocStoreException, javax.jcr.RepositoryException, FileNotFoundException
getData
in interface NodeManager
OleDocStoreException
javax.jcr.RepositoryException
FileNotFoundException
public byte[] getBinaryData(javax.jcr.Node nodeByUUID) throws javax.jcr.RepositoryException, IOException
getBinaryData
in interface NodeManager
javax.jcr.RepositoryException
IOException
public byte[] getBytesFromInputStream(InputStream is) throws IOException
IOException
public void ingestItemRecForInstance(RequestDocument reqDoc, String id, javax.jcr.Session session) throws OleDocStoreException
ingestItemRecForInstance
in interface NodeManager
OleDocStoreException
public String getInstanceData(javax.jcr.Node instanceNode) throws javax.jcr.RepositoryException, OleDocStoreException, FileNotFoundException
getInstanceData
in interface NodeManager
javax.jcr.RepositoryException
OleDocStoreException
FileNotFoundException
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.