1 package org.kuali.ole.docstore.common.client;
2
3 import org.kuali.ole.docstore.common.document.*;
4 import org.kuali.ole.docstore.common.document.content.bib.marc.BibMarcRecords;
5 import org.kuali.ole.docstore.common.search.BrowseParams;
6 import org.kuali.ole.docstore.common.search.SearchParams;
7 import org.kuali.ole.docstore.common.search.SearchResponse;
8
9 import java.util.HashMap;
10 import java.util.List;
11 import java.util.Map;
12
13
14
15
16
17
18
19
20 public interface DocstoreClient {
21
22 public void createBib(Bib bib);
23
24 public void createHoldings(Holdings holdings);
25
26 public void createItem(Item item);
27
28 public void createHoldingsTree(HoldingsTree holdingsTree);
29
30
31 public void createBibTree(BibTree bibTree);
32
33 public Bib retrieveBib(String bibId);
34
35 public Holdings retrieveHoldings(String holdingsId);
36
37 public Item retrieveItem(String itemId);
38
39 public HoldingsTree retrieveHoldingsTree(String holdingsId);
40
41 public BibTree retrieveBibTree(String bibId);
42
43 public BibTrees retrieveBibTrees(List<String> bibIds);
44
45 public Bib updateBib(Bib bib);
46
47
48
49 public Holdings updateHoldings(Holdings holdings);
50
51
52 public Item updateItem(Item item);
53
54
55
56 public void deleteBib(String bibId);
57
58 public void deleteHoldings(String holdingsId);
59
60 public void deleteItem(String itemId);
61
62 public void deleteItems(List<String> itemIds);
63
64 public SearchResponse search(SearchParams searchParams);
65
66 public Bib findBib(Map<String, String> map);
67
68 public BibTree findBibTree(Map<String, String> map);
69
70 public Holdings findHoldings(Map<String, String> map);
71
72 public HoldingsTree findHoldingsTree(Map<String, String> map);
73
74 public Item findItem(Map<String, String> map);
75
76 public SearchResponse browseItems(BrowseParams browseParams);
77
78 public SearchResponse browseHoldings(BrowseParams browseParams);
79
80 public void boundWithBibs(String holdingsId, List<String> bibIds);
81
82 public void transferHoldings(List<String> holdingsIds, String bibId);
83
84 public void transferItems(List<String> itemIds, String bibId);
85
86 public void deleteBibs(List<String> bibIds);
87
88 public List<Bib> retrieveBibs(List<String> bibIds);
89
90 public List<Bib> acquisitionSearchRetrieveBibs(List<String> bibIds);
91
92 public List<Item> retrieveItems(List<String> itemIds);
93
94 public HashMap<String,Item> retrieveItemMap(List<String> itemIds);
95
96 public void createLicenses(Licenses licenses);
97
98 public License retrieveLicense(String id);
99
100 public Licenses retrieveLicenses(List<String> ids);
101
102 public void updateLicense(License license);
103
104 public void updateLicenses(Licenses licenses);
105
106 public void deleteLicense(String id);
107
108 public void createAnalyticsRelation(String seriesHoldingsId, List<String> itemIds);
109
110 public void breakAnalyticsRelation(String seriesHoldingsId, List<String> itemIds);
111
112 public void bulkUpdateHoldings(Holdings holdings, List<String> holdingIds,String canUpdateStaffOnlyFlag);
113
114 public void bulkUpdateItem(Item item, List<String> itemIds,String canUpdateStaffOnlyFlag);
115
116 public BibMarcRecords retrieveBibContent(List<String> bibIds);
117
118 public String patchItem(String requestBody);
119
120 public String updateItemByBarcode(String barcode, String requestBody);
121
122 public HoldingsTrees retrieveHoldingsTrees(List<String> bibIds);
123
124 public HoldingsTrees retrieveHoldingsDocTrees(List<String> bibIds);
125
126 public Item retrieveItemByBarcode(String barcode);
127
128 public void reloadConfiguration();
129
130 public BibTrees processBibTrees(BibTrees bibTrees);
131
132 public void unbindWithOneBib(List<String> holdingsIds, String bibId);
133
134 public void unbindWithAllBibs(List<String> holdingsIds, String bibId);
135 }