001package org.kuali.ole.docstore.common.client;
002
003import org.kuali.ole.docstore.common.document.*;
004import org.kuali.ole.docstore.common.document.content.bib.marc.BibMarcRecords;
005import org.kuali.ole.docstore.common.search.BrowseParams;
006import org.kuali.ole.docstore.common.search.SearchParams;
007import org.kuali.ole.docstore.common.search.SearchResponse;
008
009import java.util.HashMap;
010import java.util.List;
011import java.util.Map;
012
013/**
014 * Created with IntelliJ IDEA.
015 * User: Venkatasrinath
016 * Date: 12/16/13
017 * Time: 5:02 PM
018 * To change this template use File | Settings | File Templates.
019 */
020public interface DocstoreClient {
021
022    public void createBib(Bib bib);
023
024    public void createHoldings(Holdings holdings);
025
026    public void createItem(Item item);
027
028    public void createHoldingsTree(HoldingsTree holdingsTree);
029
030
031    public void createBibTree(BibTree bibTree);
032
033    public Bib retrieveBib(String bibId);
034
035    public Holdings retrieveHoldings(String holdingsId);
036
037    public Item retrieveItem(String itemId);
038
039    public HoldingsTree retrieveHoldingsTree(String holdingsId);
040
041    public BibTree retrieveBibTree(String bibId);
042
043    public BibTrees retrieveBibTrees(List<String> bibIds);
044
045    public Bib updateBib(Bib bib);
046
047
048
049    public Holdings updateHoldings(Holdings holdings);
050
051
052    public Item updateItem(Item item);
053
054
055
056    public void deleteBib(String bibId);
057
058    public void deleteHoldings(String holdingsId);
059
060    public void deleteItem(String itemId);
061
062    public void deleteItems(List<String> itemIds);
063
064    public SearchResponse search(SearchParams searchParams);
065
066    public Bib findBib(Map<String, String> map);
067
068    public BibTree findBibTree(Map<String, String> map);
069
070    public Holdings findHoldings(Map<String, String> map);
071
072    public HoldingsTree findHoldingsTree(Map<String, String> map);
073
074    public Item findItem(Map<String, String> map);
075
076    public SearchResponse browseItems(BrowseParams browseParams);
077
078    public SearchResponse browseHoldings(BrowseParams browseParams);
079
080    public void boundWithBibs(String holdingsId, List<String> bibIds);
081
082    public void transferHoldings(List<String> holdingsIds, String bibId);
083
084    public void transferItems(List<String> itemIds, String bibId);
085
086    public void deleteBibs(List<String> bibIds);
087
088    public List<Bib> retrieveBibs(List<String> bibIds);
089
090    public List<Bib> acquisitionSearchRetrieveBibs(List<String> bibIds);
091
092    public List<Item> retrieveItems(List<String> itemIds);
093
094    public HashMap<String,Item> retrieveItemMap(List<String> itemIds);
095
096    public void createLicenses(Licenses licenses);
097
098    public License retrieveLicense(String id);
099
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}