Class RuleCachedStorage
java.lang.Object
io.meeds.gamification.storage.RuleStorage
io.meeds.gamification.storage.cached.RuleCachedStorage
-
Constructor Summary
ConstructorsConstructorDescriptionRuleCachedStorage(ProgramStorage programStorage, EventStorage eventStorage, ProgramDAO programDAO, RuleDAO ruleDAO, org.exoplatform.services.cache.CacheService cacheService) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclearCache(RuleDTO rule) deleteRuleById(long ruleId, String userId) findRuleById(Long id) findRuleByTitle(String title) Methods inherited from class io.meeds.gamification.storage.RuleStorage
countRulesByFilter, findActiveRuleByEventAndProgramId, findAllRulesIds, findRuleIdsByFilter
-
Constructor Details
-
RuleCachedStorage
public RuleCachedStorage(ProgramStorage programStorage, EventStorage eventStorage, ProgramDAO programDAO, RuleDAO ruleDAO, org.exoplatform.services.cache.CacheService cacheService)
-
-
Method Details
-
saveRule
- Overrides:
saveRulein classRuleStorage
-
findRuleById
- Overrides:
findRuleByIdin classRuleStorage
-
findRuleByTitle
- Overrides:
findRuleByTitlein classRuleStorage
-
deleteRuleById
public RuleDTO deleteRuleById(long ruleId, String userId) throws org.exoplatform.commons.exception.ObjectNotFoundException - Overrides:
deleteRuleByIdin classRuleStorage- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
clearCache
public void clearCache()- Overrides:
clearCachein classRuleStorage
-
clearCache
- Overrides:
clearCachein classRuleStorage
-