1
|
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
|
* @param mdId
|
26
|
* @param from
|
27
|
* @param until
|
28
|
* @param recordFilter
|
29
|
* REGEX on the metadata record
|
30
|
* @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
|
public String deliverRecord(@WebParam(name = "mdId") String mdId, @WebParam(name = "recordId") String recordId) throws DocumentNotFoundException;
|
47
|
|
48
|
/**
|
49
|
* Returns list of all stored indices.
|
50
|
*
|
51
|
* @return list of all stored indices
|
52
|
*/
|
53
|
public List<String> getListOfMDStores() throws MDStoreServiceException;;
|
54
|
|
55
|
public List<String> listMDStores(@WebParam(name = "format") String format,
|
56
|
@WebParam(name = "layout") String layout,
|
57
|
@WebParam(name = "interpretation") String interpretation) throws MDStoreServiceException;
|
58
|
|
59
|
public W3CEndpointReference bulkDeliverMDRecords(@WebParam(name = "format") String format,
|
60
|
@WebParam(name = "layout") String layout,
|
61
|
@WebParam(name = "interpretation") String interpretation) throws MDStoreServiceException;
|
62
|
|
63
|
/**
|
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
|
@WebParam(name = "storingType") String storingType) throws MDStoreServiceException;
|
76
|
}
|