Class GamificationUtils
- java.lang.Object
-
- org.exoplatform.addons.gamification.GamificationUtils
-
public class GamificationUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringBLACK_LISTED_USERS_GROUPstatic StringGAMIFICATION_DATAMODEL_MIGRATION_DONEstatic StringGAMIFICATION_DATAMODEL_MIGRATION_DONE_KEYstatic StringGAMIFICATION_DATAMODEL_MIGRATION_USER_KEY
-
Constructor Summary
Constructors Constructor Description GamificationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringextractProfileOwnerFromUrl(String url, String separator)Build current username from urlstatic org.exoplatform.social.core.space.model.SpaceextractSpaceNameFromUrl(String url)Build space name from urlstatic booleanisBlackListed(String userName)Compute the list of user whithin the black list (user we shouldn't display them on leaderboard screen)
-
-
-
Field Detail
-
BLACK_LISTED_USERS_GROUP
public static String BLACK_LISTED_USERS_GROUP
-
GAMIFICATION_DATAMODEL_MIGRATION_USER_KEY
public static final String GAMIFICATION_DATAMODEL_MIGRATION_USER_KEY
- See Also:
- Constant Field Values
-
GAMIFICATION_DATAMODEL_MIGRATION_DONE_KEY
public static final String GAMIFICATION_DATAMODEL_MIGRATION_DONE_KEY
- See Also:
- Constant Field Values
-
GAMIFICATION_DATAMODEL_MIGRATION_DONE
public static final String GAMIFICATION_DATAMODEL_MIGRATION_DONE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isBlackListed
public static boolean isBlackListed(String userName)
Compute the list of user whithin the black list (user we shouldn't display them on leaderboard screen)- Parameters:
userName- : the user social id to check if is already black listed- Returns:
- : return true is the user is black lisetd false else
-
extractProfileOwnerFromUrl
public static String extractProfileOwnerFromUrl(String url, String separator)
Build current username from url- Parameters:
url- : http urlseparator- : seperator to use to build profile's owner- Returns:
- username
-
-