Project

General

Profile

1
package eu.dnetlib.rmi.data;
2

    
3
import java.util.List;
4
import javax.jws.WebMethod;
5
import javax.jws.WebParam;
6
import javax.jws.WebService;
7

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

    
11
/**
12
 * Publisher service. Provides access to metadata records and objects.
13
 * 
14
 * @author marko
15
 * 
16
 */
17
@WebService(targetNamespace = "http://services.dnetlib.eu/")
18
public interface PublisherService extends BaseService {
19

    
20
	/**
21
	 * Get a (metadata) resource by ID.
22
	 * 
23
	 * @param id
24
	 * @param format
25
	 * @param layout
26
	 * @param interpretation
27
	 * @return
28
	 */
29
	@WebMethod
30
	String getResourceById(@WebParam(name = "id") final String id,
31
			@WebParam(name = "format") final String format,
32
			@WebParam(name = "layout") final String layout,
33
			@WebParam(name = "interpretation") final String interpretation);
34

    
35
	/**
36
	 * Get (metadata) resources by IDs.
37
	 * 
38
	 * @param ids
39
	 * @param format
40
	 * @param layout
41
	 * @param interpretation
42
	 * @return
43
	 */
44
	@WebMethod
45
	ResultSet<String> getResourcesByIds(@WebParam(name = "ids") final List<String> ids,
46
			@WebParam(name = "format") final String format,
47
			@WebParam(name = "layout") final String layout,
48
			@WebParam(name = "interpretation") final String interpretation);
49
}
(33-33/35)