1 package org.kuali.ole.docstore.document;
2
3 import org.kuali.ole.docstore.OleDocStoreException;
4 import org.kuali.ole.docstore.model.xmlpojo.ingest.RequestDocument;
5 import org.kuali.ole.docstore.model.xmlpojo.ingest.ResponseDocument;
6 import org.kuali.ole.docstore.process.batch.BulkProcessRequest;
7
8 import javax.jcr.Node;
9 import javax.jcr.Session;
10 import java.util.List;
11
12
13
14
15
16
17
18
19 public interface DocumentManager {
20
21
22
23
24
25
26
27
28
29 public List<ResponseDocument> ingest(List<RequestDocument> requestDocuments, Session session)
30 throws OleDocStoreException;
31
32
33
34
35
36
37
38
39 public ResponseDocument ingest(RequestDocument requestDocument, Session session) throws OleDocStoreException;
40
41 public List<ResponseDocument> checkout(List<RequestDocument> requestDocuments) throws OleDocStoreException;
42
43 public ResponseDocument checkout(RequestDocument requestDocument, Session session) throws OleDocStoreException;
44
45 public List<ResponseDocument> checkin(List<RequestDocument> requestDocuments) throws OleDocStoreException;
46
47 public ResponseDocument checkin(RequestDocument requestDocument, Session session) throws OleDocStoreException;
48
49 public List<ResponseDocument> delete(List<RequestDocument> requestDocuments) throws OleDocStoreException;
50
51 public ResponseDocument delete(RequestDocument requestDocument,Session session) throws OleDocStoreException;
52
53 public ResponseDocument buildResponseDocument(RequestDocument requestDocument);
54
55
56
57
58
59
60
61 public void bulkIngest(BulkProcessRequest bulkProcessRequest, List<RequestDocument> requestDocuments)
62 throws OleDocStoreException;
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91 public void index(List<RequestDocument> requestDocuments, boolean commit) throws OleDocStoreException;
92
93
94
95
96
97
98
99
100 public Node storeDocument(RequestDocument requestDocument, Session session) throws OleDocStoreException;
101
102 }