public abstract class JcrAbstractDocumentManager extends AbstractDocumentManager
Modifier and Type | Field and Description |
---|---|
static DocCategory |
docCategory |
static DocFormat |
docFormat |
static DocType |
docType |
protected NodeManager |
nodeManager |
protected RepositoryManager |
repositoryManager |
Constructor and Description |
---|
JcrAbstractDocumentManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
addNewRecordsToDocStore(RequestDocument requestDocument,
javax.jcr.Session session) |
List<String> |
batchIngest(BulkProcessRequest bulkProcessRequest,
List<RequestDocument> requestDocuments,
javax.jcr.Session session) |
ResponseDocument |
bind(RequestDocument requestDocument,
Object object,
String operation) |
protected void |
buildLinkedResponseDocuments(RequestDocument requestDocument,
ResponseDocument responseDocument) |
ResponseDocument |
buildResponseDocument(RequestDocument requestDocument) |
void |
buildResponseDocument(RequestDocument requestDocument,
javax.jcr.Session session,
ResponseDocument responseDocument) |
List<ResponseDocument> |
buildResponseDocuments(List<RequestDocument> requestDocuments) |
void |
bulkIngest(BulkProcessRequest bulkProcessRequest,
List<RequestDocument> requestDocuments)
Performs bulk ingest as per the details in the given bulkProcessRequest.
|
List<ResponseDocument> |
checkin(List<RequestDocument> requestDocuments,
Object object) |
ResponseDocument |
checkin(RequestDocument requestDocument,
Object object,
ResponseDocument respDoc) |
boolean |
checkInstanceForBoundsWith(String instanceIdentifier,
RequestDocument requestDocument,
javax.jcr.Session session,
ResponseDocument responseDocument) |
boolean |
checkInstancesOrItemsExistsInOLE(List<String> uuidsList) |
boolean |
checkInstancesOrItemsExistsInOLE(String instanceIdentifier,
javax.jcr.Session session) |
boolean |
checkItemsExists() |
List<ResponseDocument> |
checkout(List<RequestDocument> requestDocuments,
Object object) |
ResponseDocument |
checkout(RequestDocument requestDocument,
Object object) |
protected String |
checkOutContent(javax.jcr.Node nodeByUUID,
String format,
String user) |
protected byte[] |
convertContentToBytes(RequestDocument reqDoc) |
List<ResponseDocument> |
delete(List<RequestDocument> requestDocuments,
Object object) |
protected void |
delete(List<RequestDocument> requestDocuments,
javax.jcr.Session session) |
ResponseDocument |
delete(RequestDocument requestDocument,
Object object) |
protected void |
deleteFromRepository(List<String> uuidsList,
javax.jcr.Session session) |
void |
deleteIndex(List<RequestDocument> requestDocuments) |
javax.jcr.version.VersionManager |
getVersionManager(javax.jcr.Session session) |
void |
index(List<RequestDocument> requestDocuments,
boolean commit)
Indexes the given documents in discovery.
|
List<ResponseDocument> |
ingest(List<RequestDocument> requestDocuments,
Object object)
Ingests (stores and indexes) the given documents.
|
ResponseDocument |
ingest(RequestDocument requestDocument,
Object object,
ResponseDocument respDoc)
Ingests (stores and indexes) the given document.
|
boolean |
isVersioningEnabled() |
protected void |
modifyAdditionalAttributes(RequestDocument requestDocument,
javax.jcr.Node node) |
protected void |
modifyContent(RequestDocument reqDoc,
javax.jcr.Session session,
javax.jcr.Node node) |
protected void |
modifyDocumentContent(RequestDocument requestDocument,
String nodeIdentifier,
String parentNodeIdentifier) |
RequestDocument |
prepareRequestDocument(ResponseDocument responseDocument) |
protected void |
setResponseParameters(ResponseDocument responseDocument,
RequestDocument docStoreDocument) |
void |
store(List<RequestDocument> requestDocuments,
javax.jcr.Session session) |
void |
store(RequestDocument requestDocument,
javax.jcr.Session session) |
javax.jcr.Node |
storeDocument(RequestDocument requestDocument,
Object object,
ResponseDocument responseDocument)
Deletes the given documents, along with linked documents, from the discovery.
|
protected void |
storeLinkedDocuments(RequestDocument requestDocument,
javax.jcr.Node node,
javax.jcr.Session session,
ResponseDocument responseDocument) |
ResponseDocument |
unbind(RequestDocument requestDocument,
Object object,
String operation) |
protected void |
updateContentToNode(RequestDocument reqDoc,
javax.jcr.Session session,
byte[] documentBytes,
javax.jcr.Node nodeByUUID) |
String |
updateDocstore(RequestDocument reqDoc,
javax.jcr.Session session) |
protected String |
updateIndex(RequestDocument requestDocument) |
protected String |
updateRecord(RequestDocument requestDocument) |
protected String |
updateVersion(javax.jcr.Session session,
javax.jcr.Node nodeByUUID) |
addResourceId, getDate, getTimeStampFromString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteVerify, deleteVerify, validateInput
public static DocCategory docCategory
protected RepositoryManager repositoryManager
protected NodeManager nodeManager
public JcrAbstractDocumentManager()
public List<ResponseDocument> ingest(List<RequestDocument> requestDocuments, Object object) throws OleDocStoreException
DocumentManager
OleDocStoreException
public ResponseDocument ingest(RequestDocument requestDocument, Object object, ResponseDocument respDoc) throws OleDocStoreException
DocumentManager
OleDocStoreException
public List<ResponseDocument> checkout(List<RequestDocument> requestDocuments, Object object) throws OleDocStoreException
OleDocStoreException
public ResponseDocument checkout(RequestDocument requestDocument, Object object) throws OleDocStoreException
OleDocStoreException
protected String checkOutContent(javax.jcr.Node nodeByUUID, String format, String user) throws javax.jcr.RepositoryException, OleDocStoreException, FileNotFoundException
javax.jcr.RepositoryException
OleDocStoreException
FileNotFoundException
public List<ResponseDocument> checkin(List<RequestDocument> requestDocuments, Object object) throws OleDocStoreException
OleDocStoreException
public ResponseDocument checkin(RequestDocument requestDocument, Object object, ResponseDocument respDoc) throws OleDocStoreException
OleDocStoreException
protected void addNewRecordsToDocStore(RequestDocument requestDocument, javax.jcr.Session session) throws OleDocStoreException
OleDocStoreException
public String updateDocstore(RequestDocument reqDoc, javax.jcr.Session session) throws OleDocStoreException, javax.jcr.RepositoryException, FileNotFoundException
OleDocStoreException
javax.jcr.RepositoryException
FileNotFoundException
protected void modifyContent(RequestDocument reqDoc, javax.jcr.Session session, javax.jcr.Node node) throws javax.jcr.RepositoryException, FileNotFoundException, OleDocStoreException
javax.jcr.RepositoryException
FileNotFoundException
OleDocStoreException
protected String updateVersion(javax.jcr.Session session, javax.jcr.Node nodeByUUID) throws javax.jcr.RepositoryException, OleDocStoreException
javax.jcr.RepositoryException
OleDocStoreException
protected void updateContentToNode(RequestDocument reqDoc, javax.jcr.Session session, byte[] documentBytes, javax.jcr.Node nodeByUUID) throws javax.jcr.RepositoryException, OleDocStoreException
javax.jcr.RepositoryException
OleDocStoreException
protected byte[] convertContentToBytes(RequestDocument reqDoc) throws OleDocStoreException
OleDocStoreException
protected String updateIndex(RequestDocument requestDocument) throws OleDocStoreException
OleDocStoreException
protected String updateRecord(RequestDocument requestDocument)
public List<ResponseDocument> delete(List<RequestDocument> requestDocuments, Object object) throws OleDocStoreException
OleDocStoreException
public ResponseDocument delete(RequestDocument requestDocument, Object object) throws Exception
Exception
public void bulkIngest(BulkProcessRequest bulkProcessRequest, List<RequestDocument> requestDocuments) throws OleDocStoreException
DocumentManager
requestDocuments
- documents to be processed in the current invocation.OleDocStoreException
protected void deleteFromRepository(List<String> uuidsList, javax.jcr.Session session) throws Exception
Exception
public List<String> batchIngest(BulkProcessRequest bulkProcessRequest, List<RequestDocument> requestDocuments, javax.jcr.Session session)
public void store(List<RequestDocument> requestDocuments, javax.jcr.Session session) throws OleDocStoreException
OleDocStoreException
public void index(List<RequestDocument> requestDocuments, boolean commit) throws OleDocStoreException
DocumentManager
commit
- indicates whether to commit the changes.OleDocStoreException
protected void delete(List<RequestDocument> requestDocuments, javax.jcr.Session session)
public void deleteIndex(List<RequestDocument> requestDocuments) throws OleDocStoreException
OleDocStoreException
public void store(RequestDocument requestDocument, javax.jcr.Session session) throws OleDocStoreException
OleDocStoreException
public javax.jcr.Node storeDocument(RequestDocument requestDocument, Object object, ResponseDocument responseDocument) throws OleDocStoreException
DocumentManager
OleDocStoreException
protected void storeLinkedDocuments(RequestDocument requestDocument, javax.jcr.Node node, javax.jcr.Session session, ResponseDocument responseDocument) throws OleDocStoreException
OleDocStoreException
public List<ResponseDocument> buildResponseDocuments(List<RequestDocument> requestDocuments)
public ResponseDocument buildResponseDocument(RequestDocument requestDocument)
public void buildResponseDocument(RequestDocument requestDocument, javax.jcr.Session session, ResponseDocument responseDocument)
protected void buildLinkedResponseDocuments(RequestDocument requestDocument, ResponseDocument responseDocument)
protected void setResponseParameters(ResponseDocument responseDocument, RequestDocument docStoreDocument)
protected void modifyAdditionalAttributes(RequestDocument requestDocument, javax.jcr.Node node)
public ResponseDocument bind(RequestDocument requestDocument, Object object, String operation) throws OleDocStoreException, javax.jcr.RepositoryException, OleException, FileNotFoundException
OleDocStoreException
javax.jcr.RepositoryException
OleException
FileNotFoundException
public ResponseDocument unbind(RequestDocument requestDocument, Object object, String operation) throws OleDocStoreException, javax.jcr.RepositoryException, OleException, FileNotFoundException
OleDocStoreException
javax.jcr.RepositoryException
OleException
FileNotFoundException
protected void modifyDocumentContent(RequestDocument requestDocument, String nodeIdentifier, String parentNodeIdentifier)
public boolean isVersioningEnabled()
public javax.jcr.version.VersionManager getVersionManager(javax.jcr.Session session) throws OleDocStoreException, javax.jcr.RepositoryException
OleDocStoreException
javax.jcr.RepositoryException
public boolean checkItemsExists() throws Exception
Exception
public boolean checkInstancesOrItemsExistsInOLE(List<String> uuidsList)
public boolean checkInstancesOrItemsExistsInOLE(String instanceIdentifier, javax.jcr.Session session) throws Exception
Exception
public boolean checkInstanceForBoundsWith(String instanceIdentifier, RequestDocument requestDocument, javax.jcr.Session session, ResponseDocument responseDocument) throws Exception
Exception
public RequestDocument prepareRequestDocument(ResponseDocument responseDocument)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.