1 package org.kuali.ole.docstore.engine.client;
2
3 import org.kuali.ole.docstore.common.client.DocstoreClient;
4 import org.kuali.ole.docstore.common.document.*;
5 import org.kuali.ole.docstore.common.document.config.DocumentSearchConfig;
6 import org.kuali.ole.docstore.common.document.content.bib.marc.BibMarcRecords;
7 import org.kuali.ole.docstore.common.search.BrowseParams;
8 import org.kuali.ole.docstore.common.search.SearchParams;
9 import org.kuali.ole.docstore.common.search.SearchResponse;
10 import org.kuali.ole.docstore.common.service.DocstoreService;
11 import org.kuali.ole.docstore.service.BeanLocator;
12
13 import java.util.HashMap;
14 import java.util.List;
15 import java.util.Map;
16
17
18
19
20
21
22
23
24 public class DocstoreLocalClient implements DocstoreClient {
25
26 private static DocstoreService ds = BeanLocator.getDocstoreService();
27
28 @Override
29 public void createBib(Bib bib) {
30 ds.createBib(bib);
31 }
32
33 @Override
34 public void createHoldings(Holdings holdings) {
35 ds.createHoldings(holdings);
36 }
37
38 @Override
39 public void createItem(Item item) {
40 ds.createItem(item);
41 }
42
43 @Override
44 public void createHoldingsTree(HoldingsTree holdingsTree) {
45 ds.createHoldingsTree(holdingsTree);
46 }
47
48
49
50 @Override
51 public void createBibTree(BibTree bibTree) {
52 ds.createBibTree(bibTree);
53 }
54
55 @Override
56 public Bib retrieveBib(String bibId) {
57 return ds.retrieveBib(bibId);
58 }
59
60 @Override
61 public Holdings retrieveHoldings(String holdingsId) {
62 return ds.retrieveHoldings(holdingsId);
63 }
64
65 @Override
66 public Item retrieveItem(String itemId) {
67 return ds.retrieveItem(itemId);
68 }
69
70 @Override
71 public HoldingsTree retrieveHoldingsTree(String retrieveHoldingsTree) {
72 return ds.retrieveHoldingsTree(retrieveHoldingsTree);
73 }
74
75 @Override
76 public BibTree retrieveBibTree(String bibId) {
77 return ds.retrieveBibTree(bibId);
78 }
79
80 @Override
81 public BibTrees retrieveBibTrees(List<String> bibIds) {
82 return ds.retrieveBibTrees(bibIds);
83 }
84
85 @Override
86 public Bib updateBib(Bib bib) {
87 ds.updateBib(bib);
88 return bib;
89 }
90
91
92 @Override
93 public Holdings updateHoldings(Holdings holdings) {
94 ds.updateHoldings(holdings);
95 return holdings;
96 }
97
98
99 @Override
100 public Item updateItem(Item item) {
101 ds.updateItem(item);
102 return item;
103 }
104
105
106 @Override
107 public void deleteBib(String bibId) {
108 ds.deleteBib(bibId);
109 }
110
111 @Override
112 public void deleteHoldings(String holdingsId) {
113 ds.deleteHoldings(holdingsId);
114 }
115
116 @Override
117 public void deleteItem(String itemId) {
118 ds.deleteItem(itemId);
119 }
120
121 @Override
122 public void deleteItems(List<String> itemIds) {
123
124 }
125
126 @Override
127 public SearchResponse search(SearchParams searchParams) {
128 return ds.search(searchParams);
129 }
130
131 @Override
132 public Bib findBib(Map<String, String> map) {
133 return ds.findBib(map);
134 }
135
136 @Override
137 public BibTree findBibTree(Map<String, String> map) {
138 return ds.findBibTree(map);
139 }
140
141 @Override
142 public Holdings findHoldings(Map<String, String> map) {
143 return ds.findHoldings(map);
144 }
145
146 @Override
147 public HoldingsTree findHoldingsTree(Map<String, String> map) {
148 return ds.findHoldingsTree(map);
149 }
150
151 @Override
152 public Item findItem(Map<String, String> map) {
153 return ds.findItem(map);
154 }
155
156 @Override
157 public SearchResponse browseItems(BrowseParams browseParams) {
158 return ds.browseItems(browseParams);
159 }
160
161 @Override
162 public SearchResponse browseHoldings(BrowseParams browseParams) {
163 return ds.browseHoldings(browseParams);
164 }
165
166 @Override
167 public void boundWithBibs(String holdingsId, List<String> bibIds) {
168 ds.boundHoldingsWithBibs(holdingsId, bibIds);
169 }
170
171 @Override
172 public void transferHoldings(List<String> holdingsIds, String bibId) {
173 ds.transferHoldings(holdingsIds, bibId);
174 }
175
176 @Override
177 public void transferItems(List<String> itemIds, String bibId) {
178 ds.transferItems(itemIds, bibId);
179 }
180
181 @Override
182 public void deleteBibs(List<String> bibIds) {
183 ds.deleteBibs(bibIds);
184 }
185
186
187
188 @Override
189 public List<Bib> retrieveBibs(List<String> bibIds) {
190 return ds.retrieveBibs(bibIds);
191 }
192
193 @Override
194 public List<Item> retrieveItems(List<String> itemIds) {
195 return ds.retrieveItems(itemIds);
196 }
197
198 @Override
199 public HashMap<String, Item> retrieveItemMap(List<String> itemIds) {
200 return ds.retrieveItemMap(itemIds);
201 }
202
203 @Override
204 public void createLicenses(Licenses licenses) {
205
206 }
207
208 @Override
209 public License retrieveLicense(String id) {
210 return null;
211 }
212
213 @Override
214 public Licenses retrieveLicenses(List<String> ids) {
215 return null;
216 }
217
218 @Override
219 public void updateLicense(License license) {
220
221 }
222
223 @Override
224 public void updateLicenses(Licenses licenses) {
225
226 }
227
228 @Override
229 public void deleteLicense(String id) {
230
231 }
232
233 @Override
234 public void createAnalyticsRelation(String seriesHoldingsId, List<String> itemIds) {
235 ds.createAnalyticsRelation(seriesHoldingsId, itemIds);
236 }
237
238 @Override
239 public void breakAnalyticsRelation(String seriesHoldingsId, List<String> itemIds) {
240 ds.breakAnalyticsRelation(seriesHoldingsId, itemIds);
241 }
242
243 @Override
244 public void bulkUpdateHoldings(Holdings holdings, List<String> holdingIds,String canUpdateStaffOnlyFlag) {
245 ds.bulkUpdateHoldings(holdings,holdingIds,canUpdateStaffOnlyFlag);
246 }
247
248 @Override
249 public void bulkUpdateItem(Item item, List<String> itemIds,String canUpdateStaffOnlyFlag) {
250 ds.bulkUpdateItem(item, itemIds,canUpdateStaffOnlyFlag);
251 }
252
253 @Override
254 public BibMarcRecords retrieveBibContent(List<String> bibIds) {
255 return null;
256 }
257
258 @Override
259 public String patchItem(String requestBody) {
260 return null;
261 }
262
263 @Override
264 public String updateItemByBarcode(String barcode, String requestBody) {
265 return null;
266 }
267
268 @Override
269 public HoldingsTrees retrieveHoldingsTrees(List<String> bibIds) {
270 return null;
271 }
272
273 @Override
274 public HoldingsTrees retrieveHoldingsDocTrees(List<String> bibIds) {
275 return null;
276 }
277
278 @Override
279 public Item retrieveItemByBarcode(String barcode) {
280 return null;
281 }
282
283 @Override
284 public void reloadConfiguration() {
285 DocumentSearchConfig.reloadDocumentConfig();
286 }
287
288 @Override
289 public BibTrees processBibTrees(BibTrees bibTrees) {
290 return ds.processBibTrees(bibTrees);
291 }
292
293 }