public interface RatingService extends DriverService
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
void rate(String userId, String documentId, float score) throws RatingServiceException
userId
- the id of the userdocumentId
- the id of the documentscore
- the rating scoreRatingServiceException
- if any errors occurList<eu.dnetlib.domain.functionality.Rating> searchRatingsByUser(String userId) throws RatingServiceException
userId
- the id of the userRatingServiceException
- if any errors occurList<eu.dnetlib.domain.functionality.Rating> searchRatingsByDocument(String documentId) throws RatingServiceException
documentId
- the id of the documentRatingServiceException
- if any errors occurList<eu.dnetlib.domain.functionality.Rating> getTopRatings(int limit) throws RatingServiceException
limit
- the maximum number of ratings to retrieveRatingServiceException
- if any errors occurList<eu.dnetlib.domain.functionality.Rating> getTopDocuments(int limit) throws RatingServiceException
limit
- the maximum number of ratings to retrieveRatingServiceException
- if any errors occurCopyright © 2023. All rights reserved.