1
|
package eu.dnetlib.repo.manager.client.services;
|
2
|
|
3
|
import com.google.gwt.user.client.rpc.RemoteService;
|
4
|
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
5
|
import eu.dnetlib.repo.manager.shared.BrokerException;
|
6
|
import eu.dnetlib.repo.manager.shared.Term;
|
7
|
import eu.dnetlib.repo.manager.shared.broker.*;
|
8
|
import org.json.JSONException;
|
9
|
|
10
|
import java.util.List;
|
11
|
import java.util.Map;
|
12
|
|
13
|
/**
|
14
|
* Created by stefania on 10/26/16.
|
15
|
*/
|
16
|
@RemoteServiceRelativePath("springGwtServices/brokerService")
|
17
|
public interface BrokerService extends RemoteService {
|
18
|
|
19
|
List<BrowseEntry> getTopicsForDatasource(String datasourceName) throws BrokerException;
|
20
|
|
21
|
EventsPage showEvents(String datasourceName, String topic, long page) throws BrokerException;
|
22
|
|
23
|
EventsPage advancedShowEvents(AdvQueryObject advQueryObject, long page, long pageSize) throws BrokerException;
|
24
|
|
25
|
DatasourcesBroker getDatasourcesOfUser(String userEmail, boolean includeShared, boolean includeByOthers) throws BrokerException;
|
26
|
|
27
|
Map<String, List<SimpleSubscriptionDesc>> getSubscriptionsOfUser(String userEmail) throws BrokerException;
|
28
|
|
29
|
Subscription subscribe(OpenaireSubscription obj) throws BrokerException;
|
30
|
|
31
|
void unsubscribe(String subscriptionId) throws BrokerException;
|
32
|
|
33
|
void unsubscribe(List<String> subscriptionIds) throws BrokerException;
|
34
|
|
35
|
Subscription getSubscription(String subscriptionId) throws BrokerException;
|
36
|
|
37
|
Map<String,Term> getDnetTopics() throws BrokerException;
|
38
|
}
|