Project

General

Profile

1
package eu.dnetlib.rmi.data;
2

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

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

    
10
/** The Object Packaging Service is used to combine the records spread
11
 *  into one information package, namely an Object Record.
12
 */ 
13

    
14

    
15
@WebService(targetNamespace = "http://services.dnetlib.eu/")
16
public interface ObjectPackagingService extends BaseService {
17
	 /** Return the EPR of the resultSet containing the generated packages 
18
     * 
19
     * @param  eprs       A list of EPRs used to access the input resultSets. ResultSets MUST be ordered using an order key identified by xpath_ID 
20
     * @param  xpath_ID   A valid xpath, used to access the ordered ID of the elements of the input resultSets. 
21
     * @return            EPR of the generated resultset 
22
     */
23
	 ResultSet<String> generatePackages(@WebParam(name = "eprs") List<ResultSet<String>> eprs,
24
			 @WebParam(name="xpath_ID") String xpath_ID) throws ObjectPackagingException;
25

    
26
	/** Return the EPR of the resultSet containing the unpackaged element 
27
     * 
28
     * @param  epr       The epr used to access the resultset that contains input packages, packages are xml record in this format: <objectRecord><elem>REC1</elem><elem>REC2</elem><elem>REC3</elem></objectRecord>
29
     * @return           EPR of the generated resultset 
30
     */
31
	ResultSet<String> splitPackages(@WebParam(name = "epr") ResultSet<String> epr) throws ObjectPackagingException;
32

    
33
	
34
}
(23-23/35)