1 package org.kuali.ole.docstore.common.service;
2
3 import org.kuali.ole.docstore.common.document.*;
4 import org.kuali.ole.docstore.common.search.BrowseParams;
5 import org.kuali.ole.docstore.common.search.SearchParams;
6 import org.kuali.ole.docstore.common.search.SearchResponse;
7 import org.kuali.ole.docstore.common.search.SearchResultField;
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 DocstoreService {
21
22 public static String OLE ="OLE";
23
24 public static String OLE_DESC="OLE-DESC";
25
26 public static String DESCRIBE ="Describe";
27
28 public static String PROCESS_SOLR_IND ="PROCESS_SOLR_IND";
29
30 public void createBib(Bib bib);
31
32 public void createHoldings(Holdings holdings);
33
34 public void createItem(Item item);
35
36 public void createHoldingsTree(HoldingsTree holdingsTree);
37
38 public void createBibTree(BibTree bibTree);
39
40 public Bib retrieveBib(String bibId);
41
42 public List<Bib> retrieveBibs(List<String> bibIds);
43
44 public Holdings retrieveHoldings(String holdingsId);
45
46 public Item retrieveItem(String itemId);
47
48 public List<Item> retrieveItems(List<String> itemIds);
49
50 public HashMap<String,Item> retrieveItemMap(List<String> itemIds);
51
52 public HoldingsTree retrieveHoldingsTree(String holdingsId);
53
54 public BibTree retrieveBibTree(String bibId);
55
56 public BibTrees retrieveBibTrees(List<String> bibIds);
57
58 public void updateBib(Bib bib);
59
60 public void updateBibs(List<Bib> bibs);
61
62 public void updateHoldings(Holdings holdings);
63
64 public void updateItem(Item item);
65
66 public void deleteBib(String bibId);
67
68 public void deleteHoldings(String holdingsId);
69
70 public void deleteItem(String itemId);
71
72 public SearchResponse search(SearchParams searchParams);
73
74 public Bib findBib(Map<String, String> map);
75
76 public BibTree findBibTree(Map<String, String> map);
77
78 public Holdings findHoldings(Map<String, String> map);
79
80 public HoldingsTree findHoldingsTree(Map<String, String> map);
81
82 public Item findItem(Map<String, String> map);
83
84 public void boundHoldingsWithBibs(String holdingsId, List<String> bibIds);
85
86 public void transferHoldings(List<String> holdingsIds, String bibid);
87
88 public void transferItems(List<String> itemIds, String bibid);
89
90 public void createBibTrees(BibTrees bibTrees);
91
92 public void deleteBibs(List<String> bibIds);
93
94 public SearchResponse browseItems(BrowseParams browseParams);
95
96 public SearchResponse browseHoldings(BrowseParams browseParams);
97
98 public void setResultFieldsForHoldings(Holdings holdings, List<SearchResultField> searchResultFields);
99
100 public void setResultFieldsForItem(Item itemDoc, List<SearchResultField> searchResultFields);
101
102 public void setResultFieldsForBib(Bib bib, List<SearchResultField> searchResultFields);
103
104 public void createLicense(License license);
105
106 public void createLicenses(Licenses licenses);
107
108 public License retrieveLicense(String licenseId);
109
110 public Licenses retrieveLicenses(List<String> licenseIds);
111
112 public void updateLicense(License license);
113
114 public void updateLicenses(Licenses licenses);
115
116 public void deleteLicense(String licenseId);
117
118 public void createAnalyticsRelation(String seriesHoldingsId, List<String> itemIds);
119
120 public void breakAnalyticsRelation(String seriesHoldingsId, List<String> itemIds);
121
122 public void bulkUpdateHoldings(Holdings holdings, List<String> holdingIds, String canUpdateStaffOnlyFlag);
123
124 public void bulkUpdateItem(Item item, List<String> itemIds,String canUpdateStaffOnlyFlag);
125
126 public Item retrieveItemByBarcode(String barcode);
127
128 public BibTrees processBibTrees(BibTrees bibTrees);
129
130 public BibTrees processBibTreesForBatch(BibTrees bibTrees);
131
132 public void unbindWithOneBib(List<String> holdingsIds, String bibId);
133
134 public void unbindWithAllBibs(List<String> holdingsIds, String bibId);
135 }