Project

General

Profile

1 26600 sandro.lab
package eu.dnetlib.data.utility.objectpackaging.rmi;
2
3
import java.util.List;
4
5
import javax.jws.WebParam;
6
import javax.jws.WebService;
7
import javax.xml.ws.wsaddressing.W3CEndpointReference;
8
9
import eu.dnetlib.common.rmi.BaseService;
10
11
/** The Object Packaging Service is used to combine the records spread
12
 *  into one information package, namely an Object Record.
13
 */
14
15
16
@WebService(targetNamespace = "http://services.dnetlib.eu/")
17
public interface ObjectPackagingService extends BaseService {
18
	 /** Return the EPR of the resultSet containing the generated packages
19
     *
20
     * @param  eprs       A list of EPRs used to access the input resultSets. ResultSets MUST be ordered using an order key identified by xpath_ID
21
     * @param  xpath_ID   A valid xpath, used to access the ordered ID of the elements of the input resultSets.
22
     * @return            EPR of the generated resultset
23
     */
24
	W3CEndpointReference generatePackages(@WebParam(name="eprs") List<W3CEndpointReference> eprs,
25
                                          @WebParam(name="xpath_ID") String xpath_ID) throws ObjectPackagingException;
26
27
	/** Return the EPR of the resultSet containing the unpackaged element
28
     *
29
     * @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>
30
     * @return           EPR of the generated resultset
31
     */
32
	W3CEndpointReference splitPackages(@WebParam(name="epr") W3CEndpointReference epr) throws ObjectPackagingException;
33
34
35
}