Project

General

Profile

1
package eu.dnetlib.enabling.is.rmi;
2

    
3
import java.util.List;
4

    
5
import javax.jws.WebParam;
6
import javax.jws.WebService;
7

    
8
import eu.dnetlib.common.rmi.BaseService;
9

    
10
@WebService(targetNamespace = "http://services.dnetlib.eu/")
11
public interface InformationService extends BaseService {
12

    
13
	// Resource Type
14
	boolean addResourceType(@WebParam(name = "type") DnetResourceType type) throws InformationServiceException;
15

    
16
	List<DnetResourceType> listResourceTypes() throws InformationServiceException;
17

    
18
	// Generic search/update methods
19
	String findOneSql(@WebParam(name = "sql") String sql) throws InformationServiceException;
20

    
21
	List<String> searchSql(@WebParam(name = "sql") String sql) throws InformationServiceException;
22

    
23
	int updateSql(@WebParam(name = "sql") String sql) throws InformationServiceException;
24

    
25
	// Services
26
	List<DnetService> listServices() throws InformationServiceException;
27

    
28
	String registerService(@WebParam(name = "service") DnetService service) throws InformationServiceException;
29

    
30
	DnetService getService(@WebParam(name = "id") String id) throws InformationServiceException;
31

    
32
	DnetService getServiceByAddress(@WebParam(name = "address") String address) throws InformationServiceException;
33

    
34
	boolean deleteService(@WebParam(name = "id") String id) throws InformationServiceException;
35

    
36
	boolean isRegisteredService(@WebParam(name = "address") String address);
37

    
38
	boolean addBlackBoardMessage(@WebParam(name = "serviceId") String serviceId, @WebParam(name = "message") BlackboardMessage message)
39
			throws InformationServiceException;
40

    
41
	boolean updateBlackBoardMessage(@WebParam(name = "message") BlackboardMessage message) throws InformationServiceException;
42

    
43
	boolean deleteBlackBoardMessage(@WebParam(name = "message") BlackboardMessage message) throws InformationServiceException;
44

    
45
	String subscribe(@WebParam(name = "serviceId") String serviceId, @WebParam(name = "subscription") Subcription subcription)
46
			throws InformationServiceException;
47

    
48
	boolean unsubscribe(@WebParam(name = "subscriptionId") String subscriptionId) throws InformationServiceException;;
49

    
50
	// DS
51
	DnetDataStructure getDsById(@WebParam(name = "id") String id) throws InformationServiceException;
52

    
53
	DnetDataStructure getDsByCode(@WebParam(name = "code") String code, @WebParam(name = "type") String type) throws InformationServiceException;
54

    
55
	String registerDs(@WebParam(name = "resource") DnetDataStructure ds) throws InformationServiceException;
56

    
57
	boolean deleteDsById(@WebParam(name = "id") String id) throws InformationServiceException;
58

    
59
	boolean deleteDsByCode(@WebParam(name = "code") String code, @WebParam(name = "type") String type) throws InformationServiceException;
60

    
61
	boolean isRegisteredDs(@WebParam(name = "code") String code, @WebParam(name = "type") String type);
62

    
63
	// Generic resources
64
	boolean validateResource(@WebParam(name = "id") String id, @WebParam(name = "valid") boolean valid) throws InformationServiceException;
65

    
66
}
(8-8/11)