Package org.sakaiproject.profile2.logic
Interface ProfileKudosLogic
-
public interface ProfileKudosLogicAn interface for dealing with kudos in Profile2- Author:
- Steve Swinsburg (steve.swinsburg@gmail.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetKudos(String userUuid)Get the kudos rating for a userBigDecimalgetRawKudos(String userUuid)Get the kudos rating for a userbooleanupdateKudos(String userUuid, int score, BigDecimal percentage)Update a user's kudos rating
-
-
-
Method Detail
-
getKudos
int getKudos(String userUuid)
Get the kudos rating for a user- Parameters:
userUuid- user to get the rating for- Returns:
- int or 0 if none.
This is the adjusted score, an integer out of ten.
-
getRawKudos
BigDecimal getRawKudos(String userUuid)
Get the kudos rating for a user- Parameters:
userUuid- user to get the rating for- Returns:
- BigDecimal or null if none.
This is the more accurate score.
-
updateKudos
boolean updateKudos(String userUuid, int score, BigDecimal percentage)
Update a user's kudos rating- Parameters:
userUuid- uuid for the userscore- score, already calculated out of ten.percentage- value out of 100, more accurate.- Returns:
-
-