Package io.meeds.gamification.storage
Class RuleStorage
java.lang.Object
io.meeds.gamification.storage.RuleStorage
- Direct Known Subclasses:
RuleCachedStorage
-
Constructor Summary
ConstructorsConstructorDescriptionRuleStorage(ProgramStorage programStorage, EventStorage eventStorage, ProgramDAO programDAO, RuleDAO ruleDAO) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclearCache(RuleDTO rule) voidintcountRulesByFilter(RuleFilter ruleFilter) deleteRuleById(long ruleId, String userId) findActiveRuleByEventAndProgramId(String event, long programId) findAllRulesIds(int offset, int limit) findRuleById(Long id) findRuleByTitle(String ruleTitle) findRuleIdsByFilter(RuleFilter ruleFilter, int offset, int limit)
-
Constructor Details
-
RuleStorage
public RuleStorage(ProgramStorage programStorage, EventStorage eventStorage, ProgramDAO programDAO, RuleDAO ruleDAO)
-
-
Method Details
-
saveRule
-
findRuleById
-
findRuleByTitle
-
findActiveRuleByEventAndProgramId
-
findRuleIdsByFilter
-
countRulesByFilter
-
findAllRulesIds
-
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
-
clearListCache
public void clearListCache()
-