Class ChallengeStorage

java.lang.Object
org.exoplatform.addons.gamification.storage.ChallengeStorage

public class ChallengeStorage extends Object
  • Constructor Details

    • ChallengeStorage

      public ChallengeStorage(RuleStorage ruleStorage)
  • Method Details

    • saveChallenge

      public Challenge saveChallenge(Challenge challenge, String username)
    • deleteChallenge

      public Challenge deleteChallenge(long challengeId, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • findChallengesIdsByFilter

      public List<Long> findChallengesIdsByFilter(RuleFilter ruleFilter, int offset, int limit)
    • countChallengesByFilter

      public int countChallengesByFilter(RuleFilter challengeFilter)
    • getChallengeById

      public Challenge getChallengeById(Long challengeId)
    • findMostRealizedChallengesIds

      public List<Long> findMostRealizedChallengesIds(List<Long> spacesIds, int offset, int limit)
    • clearCache

      public void clearCache()