Class RuleStorage

java.lang.Object
org.exoplatform.addons.gamification.storage.RuleStorage
Direct Known Subclasses:
RuleCachedStorage

public class RuleStorage extends Object
  • Constructor Details

  • Method Details

    • saveRule

      public RuleDTO saveRule(RuleDTO ruleDTO)
    • findEnableRuleByTitle

      public RuleDTO findEnableRuleByTitle(String ruleTitle)
    • findRuleById

      public RuleDTO findRuleById(Long id)
    • findEnabledRulesByEvent

      public List<RuleDTO> findEnabledRulesByEvent(String event)
    • findRuleByTitle

      public RuleDTO findRuleByTitle(String ruleTitle)
    • findRuleByEventAndDomain

      public RuleDTO findRuleByEventAndDomain(String event, long domainId)
    • findRulesIdsByFilter

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

      public int countRulesByFilter(RuleFilter ruleFilter)
    • findAllRules

      public List<RuleDTO> findAllRules()
    • findAllRulesIds

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

      public List<RuleDTO> getActiveRules()
    • getAllRulesByDomain

      public List<RuleDTO> getAllRulesByDomain(String domain)
    • getAllRulesWithNullDomain

      public List<RuleDTO> getAllRulesWithNullDomain()
    • getAllEvents

      public List<String> getAllEvents()
    • getDomainListFromRules

      public List<String> getDomainListFromRules()
    • getRulesTotalScoreByDomain

      public long getRulesTotalScoreByDomain(long domainId)
    • deleteRuleById

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

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

      public List<Long> findMostRealizedRuleIds(List<Long> spacesIds, int offset, int limit, EntityType type)
    • clearCache

      public void clearCache()