Class RuleCachedStorage
java.lang.Object
org.exoplatform.addons.gamification.storage.RuleStorage
org.exoplatform.addons.gamification.storage.cached.RuleCachedStorage
-
Constructor Summary
ConstructorsConstructorDescriptionRuleCachedStorage(RuleDAO ruleDAO, RuleSearchConnector ruleSearchConnector, org.exoplatform.services.cache.CacheService cacheService, GamificationHistoryDAO gamificationHistoryDAO) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteRuleById(long ruleId, String userId, boolean force) findRuleById(Long id) findRuleByTitle(String title) Methods inherited from class org.exoplatform.addons.gamification.storage.RuleStorage
countRulesByFilter, deleteRuleById, findAllRulesIds, findEnabledRulesByEvent, findEnableRuleByTitle, findMostRealizedRuleIds, findRuleByEventAndDomain, findRulesIdsByFilter, getActiveRules, getAllEvents, getAllRulesByDomain, getAllRulesWithNullDomain, getRulesTotalScoreByDomain
-
Constructor Details
-
RuleCachedStorage
public RuleCachedStorage(RuleDAO ruleDAO, RuleSearchConnector ruleSearchConnector, org.exoplatform.services.cache.CacheService cacheService, GamificationHistoryDAO gamificationHistoryDAO)
-
-
Method Details
-
saveRule
- Overrides:
saveRulein classRuleStorage
-
findRuleById
- Overrides:
findRuleByIdin classRuleStorage
-
findRuleByTitle
- Overrides:
findRuleByTitlein classRuleStorage
-
findAllRules
- Overrides:
findAllRulesin classRuleStorage
-
deleteRuleById
public RuleDTO deleteRuleById(long ruleId, String userId, boolean force) throws org.exoplatform.commons.exception.ObjectNotFoundException - Overrides:
deleteRuleByIdin classRuleStorage- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
clearCache
public void clearCache()- Overrides:
clearCachein classRuleStorage
-