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 import org.kuali.ole.pojo.OleException;
8
9 import javax.jcr.Node;
10 import javax.jcr.RepositoryException;
11 import java.io.FileNotFoundException;
12 import java.util.List;
13
14
15
16
17
18
19
20
21 public interface DocumentManager {
22
23
24
25
26
27
28
29
30
31 public List<ResponseDocument> ingest(List<RequestDocument> requestDocuments, Object object)
32 throws OleDocStoreException;
33
34
35
36
37
38
39
40
41
42 public ResponseDocument ingest(RequestDocument requestDocument, Object object, ResponseDocument respDoc) throws OleDocStoreException;
43
44 public List<ResponseDocument> checkout(List<RequestDocument> requestDocuments, Object object) throws OleDocStoreException;
45
46 public ResponseDocument checkout(RequestDocument requestDocument, Object object) throws OleDocStoreException;
47
48 public List<ResponseDocument> checkin(List<RequestDocument> requestDocuments, Object object) throws OleDocStoreException;
49
50 public ResponseDocument checkin(RequestDocument requestDocument, Object object, ResponseDocument respDoc) throws OleDocStoreException;
51
52 public List<ResponseDocument> delete(List<RequestDocument> requestDocuments, Object object) throws Exception;
53
54 public ResponseDocument delete(RequestDocument requestDocument, Object object) throws Exception;
55
56 public ResponseDocument buildResponseDocument(RequestDocument requestDocument);
57
58 public void validateInput(RequestDocument requestDocument, Object object, List<String> valuesList) throws OleDocStoreException;
59
60
61
62
63
64
65
66 public void bulkIngest(BulkProcessRequest bulkProcessRequest, List<RequestDocument> requestDocuments)
67 throws OleDocStoreException;
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96 public void index(List<RequestDocument> requestDocuments, boolean commit) throws OleDocStoreException;
97
98
99
100
101
102
103
104
105 public Node storeDocument(RequestDocument requestDocument, Object object, ResponseDocument responseDocument) throws OleDocStoreException;
106
107 ResponseDocument bind(RequestDocument requestDocument, Object object, String operation) throws OleDocStoreException, RepositoryException, OleException, FileNotFoundException;
108
109 public ResponseDocument unbind(RequestDocument requestDocument, Object object, String operation) throws OleDocStoreException, RepositoryException, OleException, FileNotFoundException;
110
111 public List<ResponseDocument> deleteVerify(List<RequestDocument> requestDocument, Object object);
112
113 public ResponseDocument deleteVerify(RequestDocument requestDocument, Object object) throws Exception;
114
115 public void addResourceId(RequestDocument requestDocument, ResponseDocument respDoc);
116 }