public class RatingWebServiceImpl extends BaseDriverWebService<eu.dnetlib.api.functionality.RatingService> implements RatingWebService
service| Constructor and Description |
|---|
RatingWebServiceImpl() |
| 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.
|
identify, notify, setService, startpublic List<eu.dnetlib.domain.functionality.Rating> getTopDocuments(int limit) throws RatingWebServiceException
RatingWebServicegetTopDocuments in interface RatingWebServicelimit - the maximum number of ratings to retrieveRatingWebServiceException - if any errors occurpublic List<eu.dnetlib.domain.functionality.Rating> getTopRatings(int limit) throws RatingWebServiceException
RatingWebServicegetTopRatings in interface RatingWebServicelimit - the maximum number of ratings to retrieveRatingWebServiceException - if any errors occurpublic void rate(String userId, String documentId, float score) throws RatingWebServiceException
RatingWebServicerate in interface RatingWebServiceuserId - the id of the userdocumentId - the id of the documentscore - the rating scoreRatingWebServiceException - if any errors occurpublic List<eu.dnetlib.domain.functionality.Rating> searchRatingsByDocument(String documentId) throws RatingWebServiceException
RatingWebServicesearchRatingsByDocument in interface RatingWebServicedocumentId - the id of the documentRatingWebServiceException - if any errors occurpublic List<eu.dnetlib.domain.functionality.Rating> searchRatingsByUser(String userId) throws RatingWebServiceException
RatingWebServicesearchRatingsByUser in interface RatingWebServiceuserId - the id of the userRatingWebServiceException - if any errors occurCopyright © 2017. All rights reserved.