1 |
54525
|
panagiotis
|
package eu.dnetlib.repo.manager.service;
|
2 |
49236
|
panagiotis
|
|
3 |
49763
|
panagiotis
|
import eu.dnetlib.repo.manager.shared.BrokerException;
|
4 |
50319
|
panagiotis
|
import eu.dnetlib.repo.manager.shared.Term;
|
5 |
49868
|
panagiotis
|
import eu.dnetlib.repo.manager.shared.broker.*;
|
6 |
50372
|
panagiotis
|
import io.swagger.annotations.Api;
|
7 |
49362
|
panagiotis
|
import org.json.JSONException;
|
8 |
49236
|
panagiotis
|
import org.springframework.http.MediaType;
|
9 |
52781
|
panagiotis
|
import org.springframework.http.ResponseEntity;
|
10 |
54525
|
panagiotis
|
import org.springframework.web.bind.annotation.RequestMapping;
|
11 |
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
12 |
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
13 |
|
|
import org.springframework.web.bind.annotation.RestController;
|
14 |
49236
|
panagiotis
|
|
15 |
49868
|
panagiotis
|
import java.io.IOException;
|
16 |
49245
|
panagiotis
|
import java.util.List;
|
17 |
49868
|
panagiotis
|
import java.util.Map;
|
18 |
49245
|
panagiotis
|
|
19 |
54525
|
panagiotis
|
|
20 |
54690
|
panagiotis
|
public interface BrokerService {
|
21 |
49236
|
panagiotis
|
|
22 |
54525
|
panagiotis
|
DatasourcesBroker getDatasourcesOfUser(String user, String includeShared, String includeByOthers) throws BrokerException, JSONException;
|
23 |
49236
|
panagiotis
|
|
24 |
49245
|
panagiotis
|
List<BrowseEntry> getTopicsForDatasource(String datasourceName) throws BrokerException;
|
25 |
|
|
|
26 |
50756
|
panagiotis
|
EventsPage advancedShowEvents(String page,
|
27 |
|
|
String size,
|
28 |
|
|
AdvQueryObject advQueryObject) throws BrokerException, JSONException ,IOException;
|
29 |
49852
|
panagiotis
|
|
30 |
50756
|
panagiotis
|
EventsPage showEvents(String datasourceName,
|
31 |
|
|
String topic,
|
32 |
50860
|
panagiotis
|
String page,
|
33 |
|
|
String size) throws BrokerException, JSONException;
|
34 |
49868
|
panagiotis
|
|
35 |
50756
|
panagiotis
|
Map<String, List<SimpleSubscriptionDesc>> getSimpleSubscriptionsOfUser(String userEmail) throws BrokerException;
|
36 |
49868
|
panagiotis
|
|
37 |
57176
|
ioannis.di
|
Map<String, List<SimpleSubscriptionDesc>> getSimpleSubscriptionsOfUserByRepoId(String userEmail, String repoId) throws BrokerException;
|
38 |
|
|
|
39 |
50756
|
panagiotis
|
Subscription subscribe(OpenaireSubscription obj) throws BrokerException;
|
40 |
49868
|
panagiotis
|
|
41 |
52781
|
panagiotis
|
ResponseEntity<Object> unsubscribe(String subscriptionId) throws BrokerException;
|
42 |
49868
|
panagiotis
|
|
43 |
50756
|
panagiotis
|
Subscription getSubscription(String subscriptionId) throws BrokerException;
|
44 |
50319
|
panagiotis
|
|
45 |
|
|
Map<String, Term> getDnetTopics() throws BrokerException;
|
46 |
50383
|
panagiotis
|
|
47 |
54525
|
panagiotis
|
EventsPage getNotificationsBySubscriptionId(String subscriptionId, String page, String size) throws BrokerException;
|
48 |
50409
|
panagiotis
|
|
49 |
|
|
Map<String, List<Subscription>> getSubscriptionsOfUser(String userEmail) throws BrokerException;
|
50 |
49236
|
panagiotis
|
}
|