1 |
26600
|
sandro.lab
|
package eu.dnetlib.data.mdstore;
|
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 |
|
|
@WebService(targetNamespace = "http://services.dnetlib.eu/")
|
12 |
|
|
public interface MDStoreService extends BaseService {
|
13 |
|
|
|
14 |
|
|
/**
|
15 |
|
|
* Identifies service and version.
|
16 |
|
|
*
|
17 |
|
|
* @return
|
18 |
|
|
*/
|
19 |
|
|
@Override
|
20 |
|
|
public String identify();
|
21 |
|
|
|
22 |
|
|
/**
|
23 |
|
|
* Returns ResultSet EPR for delivered mdstore records.
|
24 |
|
|
*
|
25 |
27575
|
claudio.at
|
* @param mdId
|
26 |
26600
|
sandro.lab
|
* @param from
|
27 |
|
|
* @param until
|
28 |
27575
|
claudio.at
|
* @param recordFilter
|
29 |
|
|
* REGEX on the metadata record
|
30 |
26600
|
sandro.lab
|
* @throws MDStoreServiceException
|
31 |
|
|
* @return ResultSet EPR
|
32 |
|
|
*/
|
33 |
|
|
public W3CEndpointReference deliverMDRecords(@WebParam(name = "mdId") String mdId,
|
34 |
|
|
@WebParam(name = "from") String from,
|
35 |
|
|
@WebParam(name = "until") String until,
|
36 |
|
|
@WebParam(name = "recordsFilter") String recordFilter) throws MDStoreServiceException;
|
37 |
|
|
|
38 |
|
|
/**
|
39 |
|
|
* Deliver single record from selected mdstore.
|
40 |
|
|
*
|
41 |
|
|
* @param mdId
|
42 |
|
|
* @param recordId
|
43 |
|
|
* @throws MDStoreServiceException
|
44 |
|
|
* @return record
|
45 |
|
|
*/
|
46 |
27678
|
sandro.lab
|
public String deliverRecord(@WebParam(name = "mdId") String mdId, @WebParam(name = "recordId") String recordId) throws DocumentNotFoundException;
|
47 |
26600
|
sandro.lab
|
|
48 |
|
|
/**
|
49 |
|
|
* Returns list of all stored indices.
|
50 |
|
|
*
|
51 |
|
|
* @return list of all stored indices
|
52 |
|
|
*/
|
53 |
28849
|
claudio.at
|
public List<String> getListOfMDStores() throws MDStoreServiceException;;
|
54 |
26600
|
sandro.lab
|
|
55 |
|
|
public List<String> listMDStores(@WebParam(name = "format") String format,
|
56 |
|
|
@WebParam(name = "layout") String layout,
|
57 |
28849
|
claudio.at
|
@WebParam(name = "interpretation") String interpretation) throws MDStoreServiceException;
|
58 |
26600
|
sandro.lab
|
|
59 |
|
|
public W3CEndpointReference bulkDeliverMDRecords(@WebParam(name = "format") String format,
|
60 |
|
|
@WebParam(name = "layout") String layout,
|
61 |
28849
|
claudio.at
|
@WebParam(name = "interpretation") String interpretation) throws MDStoreServiceException;
|
62 |
26600
|
sandro.lab
|
|
63 |
28848
|
claudio.at
|
/**
|
64 |
|
|
* Store md records from a result set
|
65 |
|
|
*
|
66 |
|
|
* @param mdId
|
67 |
|
|
* @param rsId
|
68 |
|
|
* @param storingType
|
69 |
|
|
* @throws MDStoreServiceException
|
70 |
|
|
* @return returns true immediately.
|
71 |
|
|
*/
|
72 |
|
|
@Deprecated
|
73 |
|
|
public boolean storeMDRecordsFromRS(@WebParam(name = "mdId") String mdId,
|
74 |
|
|
@WebParam(name = "rsId") String rsId,
|
75 |
28849
|
claudio.at
|
@WebParam(name = "storingType") String storingType) throws MDStoreServiceException;
|
76 |
26600
|
sandro.lab
|
}
|