|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.forum.database.RewardStatusLevelCalculator
public class RewardStatusLevelCalculator
Provides a status level calculator implementation that ties in with the rewards system.
Constructor Summary | |
---|---|
RewardStatusLevelCalculator()
|
Method Summary | |
---|---|
long[] |
getLeaderIds(ForumCategory category,
int startIndex,
int numResults)
Returns a long array of user ids of forum category leaders given a start index and desired number of results. |
long[] |
getLeaderIds(Forum forum,
int startIndex,
int numResults)
Returns a long array of user ids of forum leaders |
long[] |
getLeaderIds(int startIndex,
int numResults)
Returns a long array of user ids of system leaders given a start index and desired number of results. |
int |
getPointLevel(User user)
Returns the point level for a user system wide. |
int |
getPointLevel(User user,
Forum forum)
Returns the status level points for a user in regards to a specific forum |
int |
getPointLevel(User user,
ForumCategory category)
Returns the status level points for a user in regards to a specific category |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RewardStatusLevelCalculator()
Method Detail |
---|
public int getPointLevel(User user)
StatusLevelCalculator
getPointLevel
in interface StatusLevelCalculator
user
- user to get status level points for
public int getPointLevel(User user, Forum forum)
StatusLevelCalculator
getPointLevel
in interface StatusLevelCalculator
user
- user user to get status level points forforum
- forum to filter by
public int getPointLevel(User user, ForumCategory category)
StatusLevelCalculator
getPointLevel
in interface StatusLevelCalculator
user
- user user to get status level points forcategory
- category to filter by
public long[] getLeaderIds(int startIndex, int numResults)
StatusLevelCalculator
getLeaderIds
in interface StatusLevelCalculator
startIndex
- the start index for results.numResults
- the desired number of results to return.
public long[] getLeaderIds(ForumCategory category, int startIndex, int numResults)
StatusLevelCalculator
getLeaderIds
in interface StatusLevelCalculator
category
- category that the leaders leadstartIndex
- the start index for results.numResults
- the desired number of results to return.
public long[] getLeaderIds(Forum forum, int startIndex, int numResults)
StatusLevelCalculator
getLeaderIds
in interface StatusLevelCalculator
forum
- forum that the leaders belong tostartIndex
- the start index for results.numResults
- the desired number of results to return.
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |