View Javadoc
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   * Created with IntelliJ IDEA.
15   * User: sambasivam
16   * Date: 12/13/13
17   * Time: 6:20 PM
18   * To change this template use File | Settings | File Templates.
19   */
20  public interface DocstoreService {
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      public void createBibTree(BibTree bibTree);
31  
32      public Bib retrieveBib(String bibId);
33  
34      public List<Bib> retrieveBibs(List<String> bibIds);
35  
36      public Holdings retrieveHoldings(String holdingsId);
37  
38      public Item retrieveItem(String itemId);
39  
40      public List<Item> retrieveItems(List<String> itemIds);
41  
42      public HashMap<String,Item> retrieveItemMap(List<String> itemIds);
43  
44      public HoldingsTree retrieveHoldingsTree(String holdingsId);
45  
46      public BibTree retrieveBibTree(String bibId);
47  
48      public BibTrees retrieveBibTrees(List<String> bibIds);
49  
50      public void updateBib(Bib bib);
51  
52      public void updateBibs(List<Bib> bibs);
53  
54      public void updateHoldings(Holdings holdings);
55  
56      public void updateItem(Item item);
57  
58      public void deleteBib(String bibId);
59  
60      public void deleteHoldings(String holdingsId);
61  
62      public void deleteItem(String itemId);
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 void boundHoldingsWithBibs(String holdingsId, List<String> bibIds);
77  
78      public void transferHoldings(List<String> holdingsIds, String bibid);
79  
80      public void transferItems(List<String> itemIds, String bibid);
81  
82      public void createBibTrees(BibTrees bibTrees);
83  
84      public void deleteBibs(List<String> bibIds);
85  
86      public SearchResponse browseItems(BrowseParams browseParams);
87  
88      public SearchResponse browseHoldings(BrowseParams browseParams);
89  
90      public void setResultFieldsForHoldings(Holdings holdings, List<SearchResultField> searchResultFields);
91  
92      public void setResultFieldsForItem(Item itemDoc, List<SearchResultField> searchResultFields);
93  
94      public void setResultFieldsForBib(Bib bib, List<SearchResultField> searchResultFields);
95  
96      public void createLicense(License license);
97  
98      public void createLicenses(Licenses licenses);
99  
100     public License retrieveLicense(String licenseId);
101 
102     public Licenses retrieveLicenses(List<String> licenseIds);
103 
104     public void updateLicense(License license);
105 
106     public void updateLicenses(Licenses licenses);
107 
108     public void deleteLicense(String licenseId);
109 
110     public void createAnalyticsRelation(String seriesHoldingsId, List<String> itemIds);
111     
112     public void breakAnalyticsRelation(String seriesHoldingsId, List<String> itemIds);
113 
114     public void bulkUpdateHoldings(Holdings holdings, List<String> holdingIds, String canUpdateStaffOnlyFlag);
115 
116     public void bulkUpdateItem(Item item, List<String> itemIds,String canUpdateStaffOnlyFlag);
117 
118     public Item retrieveItemByBarcode(String barcode);
119 
120     public BibTrees processBibTrees(BibTrees bibTrees);
121 }