Project

General

Profile

1
package eu.dnetlib.repo.manager.service;
2

    
3
import eu.dnetlib.repo.manager.domain.BrokerException;
4
import eu.dnetlib.repo.manager.domain.Term;
5
import eu.dnetlib.repo.manager.domain.broker.*;
6
import org.json.JSONException;
7
import org.springframework.http.ResponseEntity;
8

    
9
import java.io.IOException;
10
import java.util.List;
11
import java.util.Map;
12

    
13

    
14
public interface BrokerService {
15

    
16
    DatasourcesBroker getDatasourcesOfUser(String user, String includeShared, String includeByOthers) throws BrokerException, JSONException;
17

    
18
    List<BrowseEntry> getTopicsForDatasource(String datasourceName) throws BrokerException;
19

    
20
    EventsPage advancedShowEvents(String page,
21
                                  String size,
22
                                  AdvQueryObject advQueryObject) throws BrokerException, JSONException ,IOException;
23

    
24
    EventsPage showEvents(String datasourceName,
25
                          String topic,
26
                          String page,
27
                          String size) throws BrokerException, JSONException;
28

    
29
    Map<String, List<SimpleSubscriptionDesc>> getSimpleSubscriptionsOfUser(String userEmail) throws BrokerException;
30

    
31
    Map<String, List<SimpleSubscriptionDesc>> getSimpleSubscriptionsOfUserByRepoId(String userEmail, String repoId) throws BrokerException;
32

    
33
    Subscription subscribe(OpenaireSubscription obj) throws BrokerException;
34

    
35
    ResponseEntity<Object> unsubscribe(String subscriptionId) throws BrokerException;
36

    
37
    Subscription getSubscription(String subscriptionId) throws BrokerException;
38

    
39
    Map<String, Term> getDnetTopics() throws BrokerException;
40

    
41
    EventsPage getNotificationsBySubscriptionId(String subscriptionId, String page, String size) throws BrokerException;
42

    
43
    Map<String, List<Subscription>> getSubscriptionsOfUser(String userEmail) throws BrokerException;
44
}
(1-1/20)