org.kuali.ole.docstore.document
Class WorkInstanceDocumentManager
java.lang.Object
org.kuali.ole.docstore.document.AbstractDocumentManager
org.kuali.ole.docstore.document.WorkInstanceDocumentManager
- All Implemented Interfaces:
- DocumentManager
- Direct Known Subclasses:
- WorkItemDocumentManager
public class WorkInstanceDocumentManager
- extends AbstractDocumentManager
Implements the DocumentManager interface for [Work-Instance-*] documents.
- Version:
- %I%, %G%
Method Summary |
protected void |
addNewRecordsToDocStore(RequestDocument requestDocument,
javax.jcr.Session session)
|
ResponseDocument |
bind(RequestDocument requestDocument,
javax.jcr.Session session,
String operation)
|
protected void |
buildLinkedResponseDocuments(RequestDocument requestDocument,
ResponseDocument responseDocument)
Used in the case of adding an item. |
ResponseDocument |
buildResponseDocument(RequestDocument requestDocument)
|
ResponseDocument |
buildResponseDocument(RequestDocument requestDocument,
javax.jcr.Session session)
|
protected String |
checkOutContent(javax.jcr.Node nodeByUUID,
String format,
String user)
|
List<ResponseDocument> |
deleteVerify(List<RequestDocument> requestDocument,
javax.jcr.Session session)
|
ResponseDocument |
deleteVerify(RequestDocument requestDocument,
javax.jcr.Session session)
|
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)
|
javax.jcr.Node |
storeDocument(RequestDocument requestDocument,
javax.jcr.Session session)
Deletes the given documents, along with linked documents, from the discovery. |
void |
transferInstances(List<RequestDocument> requestDocuments,
javax.jcr.Session session)
|
void |
transferItems(List<RequestDocument> requestDocuments,
javax.jcr.Session session)
|
ResponseDocument |
unbind(RequestDocument requestDocument,
javax.jcr.Session session,
String operation)
|
Methods inherited from class org.kuali.ole.docstore.document.AbstractDocumentManager |
batchIngest, buildResponseDocuments, bulkIngest, checkin, checkin, checkItemsExists, checkout, checkout, convertContentToBytes, delete, delete, delete, deleteFromRepository, deleteIndex, getVersionManager, index, ingest, ingest, isVersioningEnabled, modifyAdditionalAttributes, setResponseParameters, store, store, storeLinkedDocuments, updateContentToNode, updateDocstore, updateIndex, updateRecord, updateVersion, validateInput, validateInput |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkInstanceDocumentManager
protected WorkInstanceDocumentManager()
getInstance
public static WorkInstanceDocumentManager getInstance()
modifyDocumentContent
public void modifyDocumentContent(RequestDocument document,
String nodeIdentifier,
String parentNodeIdentifier)
- Overrides:
modifyDocumentContent
in class AbstractDocumentManager
storeDocument
public javax.jcr.Node storeDocument(RequestDocument requestDocument,
javax.jcr.Session session)
throws OleDocStoreException
- Description copied from interface:
DocumentManager
- Deletes the given documents, along with linked documents, from the discovery.
- Specified by:
storeDocument
in interface DocumentManager
- 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
bind
public ResponseDocument bind(RequestDocument requestDocument,
javax.jcr.Session session,
String operation)
throws OleDocStoreException,
javax.jcr.RepositoryException,
OleException,
FileNotFoundException
- Specified by:
bind
in interface DocumentManager
- Overrides:
bind
in class AbstractDocumentManager
- Throws:
OleDocStoreException
javax.jcr.RepositoryException
OleException
FileNotFoundException
unbind
public ResponseDocument unbind(RequestDocument requestDocument,
javax.jcr.Session session,
String operation)
throws OleDocStoreException,
javax.jcr.RepositoryException,
OleException,
FileNotFoundException
- Specified by:
unbind
in interface DocumentManager
- Overrides:
unbind
in class AbstractDocumentManager
- Throws:
OleDocStoreException
javax.jcr.RepositoryException
OleException
FileNotFoundException
deleteVerify
public List<ResponseDocument> deleteVerify(List<RequestDocument> requestDocument,
javax.jcr.Session session)
deleteVerify
public ResponseDocument deleteVerify(RequestDocument requestDocument,
javax.jcr.Session session)
throws Exception
- Throws:
Exception
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 OleMLlinkedBibIds
- TODO
- Returns:
buildResponseDocument
public ResponseDocument buildResponseDocument(RequestDocument requestDocument)
- Specified by:
buildResponseDocument
in interface DocumentManager
- Overrides:
buildResponseDocument
in class AbstractDocumentManager
buildResponseDocument
public ResponseDocument buildResponseDocument(RequestDocument requestDocument,
javax.jcr.Session session)
- Overrides:
buildResponseDocument
in class AbstractDocumentManager
buildLinkedResponseDocuments
protected void buildLinkedResponseDocuments(RequestDocument requestDocument,
ResponseDocument responseDocument)
- Used in the case of adding an item.
- Overrides:
buildLinkedResponseDocuments
in class AbstractDocumentManager
- Parameters:
requestDocument
- responseDocument
-
transferItems
public void transferItems(List<RequestDocument> requestDocuments,
javax.jcr.Session session)
throws Exception
- Throws:
Exception
transferInstances
public void transferInstances(List<RequestDocument> requestDocuments,
javax.jcr.Session session)
throws Exception
- Throws:
Exception
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.