Project

General

Profile

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.broker.*;
7
import org.json.JSONException;
8

    
9
import java.util.List;
10
import java.util.Map;
11

    
12
/**
13
 * Created by stefania on 10/26/16.
14
 */
15
@RemoteServiceRelativePath("springGwtServices/brokerService")
16
public interface BrokerService extends RemoteService {
17

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

    
20
    EventsPage showEvents(String datasourceName, String topic, long page) throws BrokerException;
21

    
22
    EventsPage advancedShowEvents(AdvQueryObject advQueryObject, long page, long pageSize) throws BrokerException;
23

    
24
    DatasourcesBroker getDatasourcesOfUser(String userEmail, boolean includeShared, boolean includeByOthers) throws BrokerException;
25

    
26
    Map<String, List<SimpleSubscriptionDesc>> getSubscriptionsOfUser(String userEmail) throws BrokerException;
27

    
28
    Subscription subscribe(OpenaireSubscription obj) throws BrokerException;
29

    
30
    void unsubscribe(String subscriptionId) throws BrokerException;
31

    
32
    void unsubscribe(List<String> subscriptionIds) throws BrokerException;
33

    
34
    Subscription getSubscription(String subscriptionId) throws BrokerException;
35
}
(1-1/4)