1 |
26600
|
sandro.lab
|
package eu.dnetlib.data.information.publisher.rmi;
|
2 |
|
|
|
3 |
|
|
import java.util.List;
|
4 |
|
|
|
5 |
|
|
import javax.jws.WebMethod;
|
6 |
|
|
import javax.jws.WebParam;
|
7 |
|
|
import javax.jws.WebService;
|
8 |
|
|
import javax.xml.ws.wsaddressing.W3CEndpointReference;
|
9 |
|
|
|
10 |
|
|
import eu.dnetlib.common.rmi.BaseService;
|
11 |
|
|
|
12 |
|
|
/**
|
13 |
|
|
* Publisher service. Provides access to metadata records and objects.
|
14 |
|
|
*
|
15 |
|
|
* @author marko
|
16 |
|
|
*
|
17 |
|
|
*/
|
18 |
|
|
@WebService(targetNamespace = "http://services.dnetlib.eu/")
|
19 |
|
|
public interface PublisherService extends BaseService {
|
20 |
|
|
|
21 |
|
|
/**
|
22 |
|
|
* Get a (metadata) resource by ID.
|
23 |
|
|
*
|
24 |
|
|
* @param id
|
25 |
|
|
* @param format
|
26 |
|
|
* @param layout
|
27 |
|
|
* @param interpretation
|
28 |
|
|
* @return
|
29 |
|
|
*/
|
30 |
|
|
@WebMethod
|
31 |
|
|
String getResourceById(@WebParam(name = "id") final String id,
|
32 |
|
|
@WebParam(name = "format") final String format,
|
33 |
|
|
@WebParam(name = "layout") final String layout,
|
34 |
|
|
@WebParam(name = "interpretation") final String interpretation);
|
35 |
|
|
|
36 |
|
|
/**
|
37 |
|
|
* Get (metadata) resources by IDs.
|
38 |
|
|
*
|
39 |
|
|
* @param ids
|
40 |
|
|
* @param format
|
41 |
|
|
* @param layout
|
42 |
|
|
* @param interpretation
|
43 |
|
|
* @return
|
44 |
|
|
*/
|
45 |
|
|
@WebMethod
|
46 |
|
|
W3CEndpointReference getResourcesByIds(@WebParam(name = "ids") final List<String> ids,
|
47 |
|
|
@WebParam(name = "format") final String format,
|
48 |
|
|
@WebParam(name = "layout") final String layout,
|
49 |
|
|
@WebParam(name = "interpretation") final String interpretation);
|
50 |
|
|
}
|