Class RuleStorage

java.lang.Object
io.meeds.gamification.storage.RuleStorage
Direct Known Subclasses:
RuleCachedStorage

public class RuleStorage extends Object
  • Constructor Details

  • Method Details

    • saveRule

      public RuleDTO saveRule(RuleDTO ruleDTO)
    • findRuleById

      public RuleDTO findRuleById(Long id)
    • findRuleByTitle

      public RuleDTO findRuleByTitle(String ruleTitle)
    • findActiveRuleByEventAndProgramId

      public RuleDTO findActiveRuleByEventAndProgramId(String event, long programId)
    • findRuleIdsByFilter

      public List<Long> findRuleIdsByFilter(RuleFilter ruleFilter, int offset, int limit)
    • countRulesByFilter

      public int countRulesByFilter(RuleFilter ruleFilter)
    • findAllRulesIds

      public List<Long> findAllRulesIds(int offset, int limit)
    • deleteRuleById

      public RuleDTO deleteRuleById(long ruleId, String userId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • clearCache

      public void clearCache()
    • clearCache

      public void clearCache(RuleDTO rule)