org.sakaiproject.profile2.logic
Interface ProfileKudosLogic


public interface ProfileKudosLogic

An interface for dealing with kudos in Profile2

Author:
Steve Swinsburg (steve.swinsburg@gmail.com)

Method Summary
 int getKudos(String userUuid)
          Get the kudos rating for a user
 BigDecimal getRawKudos(String userUuid)
          Get the kudos rating for a user
 boolean updateKudos(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 user
score - score, already calculated out of ten.
percentage - value out of 100, more accurate.
Returns:


Copyright © 2008-2012 The Sakai Foundation. All Rights Reserved.