1 package org.kuali.ole.docstore.common.client;
2
3 import org.kuali.ole.docstore.common.document.*;
4 import org.kuali.ole.docstore.common.exception.BibImportResponse;
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.List;
10 import java.util.Map;
11
12
13
14
15
16
17
18
19 public interface DocstoreClient {
20
21 public void createBib(Bib bib);
22
23 public void createHoldings(Holdings holdings);
24
25 public void createItem(Item item);
26
27 public void createHoldingsTree(HoldingsTree holdingsTree);
28
29 public BibImportResponse createHoldingsTrees(HoldingsTrees holdingsTrees);
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 Bib updateBib(Bib bib);
44
45 public BibImportResponse updateBibs(List<Bib> bibs);
46
47 public Holdings updateHoldings(Holdings holdings);
48
49 public Item updateItem(Item item);
50
51 public void deleteBib(String bibId);
52
53 public void deleteHoldings(String holdingsId);
54
55 public void deleteItem(String itemId);
56
57 public SearchResponse search(SearchParams searchParams);
58
59 public Bib findBib(Map<String, String> map);
60
61 public BibTree findBibTree(Map<String, String> map);
62
63 public Holdings findHoldings(Map<String, String> map);
64
65 public HoldingsTree findHoldingsTree(Map<String, String> map);
66
67 public Item findItem(Map<String, String> map);
68
69 public SearchResponse browseItems(BrowseParams browseParams);
70
71 public SearchResponse browseHoldings(BrowseParams browseParams);
72
73 public void boundWithBibs(String holdingsId, List<String> bibIds);
74
75 public void transferHoldings(List<String> holdingsIds, String bibId);
76
77 public void transferItems(List<String> itemIds, String bibId);
78
79 public void deleteBibs(List<String> bibIds);
80
81 public BibImportResponse createBibTrees(BibTrees bibTrees);
82
83 public List<Bib> retrieveBibs(List<String> bibIds);
84
85 public List<Item> retrieveItems(List<String> itemIds);
86
87 }