public interface RatingsService
| Modifier and Type | Method and Description |
|---|---|
double |
getRating(Resource resource)
Get the overall rating for a resource.
|
double |
getRating(Resource resource,
String userId)
Get the rating of a user for a resource.
|
String |
getRatingsResourcePath(Resource resource)
Return the path to the ratings resource for a resource.
|
void |
setRating(Resource resource,
String userId,
double rating)
Set the rating of a user for a resource.
|
String getRatingsResourcePath(Resource resource)
resource - The content resource, this is usually an entry.null if
the passed in content resource is not part of
Slingshot.double getRating(Resource resource)
resource - The content resource, this is usually an entry.0 if
the passed in content resource is not part of
Slingshot.double getRating(Resource resource, String userId)
resource - The content resource, this is usually an entry.userId - The user id0 if
the passed in content resource is not part of
Slingshot.void setRating(Resource resource, String userId, double rating) throws PersistenceException
resource - The content resource, this is usually an entry.userId - The user idPersistenceExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.