public interface RatingWebService extends DriverWebService<eu.dnetlib.api.functionality.RatingService>
| Modifier and Type | Method and Description |
|---|---|
List<eu.dnetlib.domain.functionality.Rating> |
getTopDocuments(int limit)
Get the top documents.
|
List<eu.dnetlib.domain.functionality.Rating> |
getTopRatings(int limit)
Get the top ratings.
|
void |
rate(String userId,
String documentId,
float score)
Rate a document by a specifed user.
|
List<eu.dnetlib.domain.functionality.Rating> |
searchRatingsByDocument(String documentId)
Search for existing ratings by document.
|
List<eu.dnetlib.domain.functionality.Rating> |
searchRatingsByUser(String userId)
Search for existing ratings by user.
|
void rate(String userId, String documentId, float score) throws RatingWebServiceException
userId - the id of the userdocumentId - the id of the documentscore - the rating scoreRatingWebServiceException - if any errors occurList<eu.dnetlib.domain.functionality.Rating> searchRatingsByUser(String userId) throws RatingWebServiceException
userId - the id of the userRatingWebServiceException - if any errors occurList<eu.dnetlib.domain.functionality.Rating> searchRatingsByDocument(String documentId) throws RatingWebServiceException
documentId - the id of the documentRatingWebServiceException - if any errors occurList<eu.dnetlib.domain.functionality.Rating> getTopRatings(int limit) throws RatingWebServiceException
limit - the maximum number of ratings to retrieveRatingWebServiceException - if any errors occurList<eu.dnetlib.domain.functionality.Rating> getTopDocuments(int limit) throws RatingWebServiceException
limit - the maximum number of ratings to retrieveRatingWebServiceException - if any errors occurCopyright © 2017. All rights reserved.