public interface ObjectStoreService
extends eu.dnetlib.common.rmi.BaseService
Modifier and Type | Method and Description |
---|---|
W3CEndpointReference |
deliverObjects(String obsId,
Long from,
Long until)
Returns ResultSet EPR for delivered ObjectStore records in a particular range date.
|
W3CEndpointReference |
deliverObjectsByIds(String obsId,
W3CEndpointReference eprId)
Returns ResultSet EPR for delivered ObjectStore records.
|
String |
deliverRecord(String obsId,
String objectId)
Returns an URL to retrieve the ObjectStore record.
|
void |
feedObject(String obsId,
String objectMetadata)
Feed the object in the objectStore
|
List<String> |
getListOfObjectStores()
Returns list of all stored indices.
|
int |
getSize(String obsId)
Gets the size of the objectStore ID.
|
W3CEndpointReference deliverObjects(String obsId, Long from, Long until) throws ObjectStoreServiceException
Please check service implementations for details on the expected format of the records in the result set epr.
This method could be used for a bulk deliver of all objects in the store
obsId
- identifier of the ObjectStorefrom
- the minimum date of the objectuntil
- the maximum date of the objectObjectStoreServiceException
- the object store service exceptionW3CEndpointReference deliverObjectsByIds(String obsId, W3CEndpointReference eprId) throws ObjectStoreServiceException
Please check service implementations for details on the expected format of the records in the result set epr.
obsId
- identifier of the ObjectStoreeprId
- id of a ResultSet EPR with the identifiers of the interesting objects. Each element of the result set contains the
objIdentifier of a recordObjectStoreServiceException
- the object store service exceptionString deliverRecord(String obsId, String objectId) throws ObjectStoreServiceException
obsId
- identifier of the ObjectStoreobjectId
- the id of the objectObjectStoreServiceException
- the object store service exceptionvoid feedObject(String obsId, String objectMetadata) throws ObjectStoreServiceException
obsId
- identifier of the ObjectStoreobjectMetadata
- the String serialized of the JSON object ObjectStoreFileObjectStoreServiceException
List<String> getListOfObjectStores()
int getSize(String obsId) throws ObjectStoreServiceException
obsId
- the obs idObjectStoreServiceException
Copyright © 2017. All rights reserved.