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