org.kuali.ole.docstore.document
Class WorkInstanceDocumentManager

java.lang.Object
  extended by org.kuali.ole.docstore.document.AbstractDocumentManager
      extended by org.kuali.ole.docstore.document.WorkInstanceDocumentManager
All Implemented Interfaces:
DocumentManager

public class WorkInstanceDocumentManager
extends AbstractDocumentManager

Implements the DocumentManager interface for [Work-Instance-*] documents.

Version:
%I%, %G%

Field Summary
 
Fields inherited from class org.kuali.ole.docstore.document.AbstractDocumentManager
docCategory, docFormat, docType, nodeManager, repositoryManager
 
Constructor Summary
protected WorkInstanceDocumentManager()
           
 
Method Summary
protected  void addNewRecordsToDocStore(RequestDocument requestDocument, javax.jcr.Session session)
           
protected  String checkOutContent(javax.jcr.Node nodeByUUID, String format, String user)
           
static WorkInstanceDocumentManager getInstance()
           
 List<RequestDocument> getParsedHoldingsNItemDocuments(RequestDocument instanceDoc, List<String> linkedBibIds)
          Method to get Parsed Holdings & Item Documents.
protected  void modifyContent(RequestDocument reqDoc, javax.jcr.Session session, javax.jcr.Node nodeByUUID)
           
 void modifyDocumentContent(RequestDocument document, String nodeIdentifier, String parentNodeIdentifier)
           
protected  javax.jcr.Node storeDocument(RequestDocument requestDocument, javax.jcr.Session session)
           
protected  String updateIndex(RequestDocument requestDocument)
           
 
Methods inherited from class org.kuali.ole.docstore.document.AbstractDocumentManager
batchIngest, buildResponse, buildResponseDocument, buildResponseDocuments, bulkIngest, checkin, checkin, checkout, checkout, convertContentToBytes, delete, delete, delete, deleteIndex, getVersionManager, index, ingest, ingest, isVersioningEnabled, modifyAdditionalAttributes, store, store, storeLinkedDocuments, updateContentToNode, updateDocstore, updateRecord, updateVersion, validateInput, validateInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkInstanceDocumentManager

protected WorkInstanceDocumentManager()
Method Detail

getInstance

public static WorkInstanceDocumentManager getInstance()

modifyDocumentContent

public void modifyDocumentContent(RequestDocument document,
                                  String nodeIdentifier,
                                  String parentNodeIdentifier)
Overrides:
modifyDocumentContent in class AbstractDocumentManager

storeDocument

protected javax.jcr.Node storeDocument(RequestDocument requestDocument,
                                       javax.jcr.Session session)
                                throws OleDocStoreException
Overrides:
storeDocument in class AbstractDocumentManager
Throws:
OleDocStoreException

modifyContent

protected void modifyContent(RequestDocument reqDoc,
                             javax.jcr.Session session,
                             javax.jcr.Node nodeByUUID)
                      throws javax.jcr.RepositoryException
Overrides:
modifyContent in class AbstractDocumentManager
Throws:
javax.jcr.RepositoryException

addNewRecordsToDocStore

protected void addNewRecordsToDocStore(RequestDocument requestDocument,
                                       javax.jcr.Session session)
                                throws OleDocStoreException
Overrides:
addNewRecordsToDocStore in class AbstractDocumentManager
Throws:
OleDocStoreException

updateIndex

protected String updateIndex(RequestDocument requestDocument)
                      throws OleDocStoreException
Overrides:
updateIndex in class AbstractDocumentManager
Throws:
OleDocStoreException

checkOutContent

protected String checkOutContent(javax.jcr.Node nodeByUUID,
                                 String format,
                                 String user)
                          throws javax.jcr.RepositoryException,
                                 OleDocStoreException,
                                 FileNotFoundException
Overrides:
checkOutContent in class AbstractDocumentManager
Throws:
javax.jcr.RepositoryException
OleDocStoreException
FileNotFoundException

getParsedHoldingsNItemDocuments

public List<RequestDocument> getParsedHoldingsNItemDocuments(RequestDocument instanceDoc,
                                                             List<String> linkedBibIds)
Method to get Parsed Holdings & Item Documents.

Parameters:
instanceDoc - - Instance document in format OleML
linkedBibIds - TODO
Returns:


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.