Class RuleCachedStorage
java.lang.Object
io.meeds.gamification.storage.RuleStorage
io.meeds.gamification.storage.cached.RuleCachedStorage
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionRuleCachedStorage(ProgramStorage programStorage, EventStorage eventStorage, ProgramDAO programDAO, RuleDAO ruleDAO, org.exoplatform.services.cache.CacheService cacheService) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclearCache(RuleDTO rule) voidintcountRulesByFilter(RuleFilter ruleFilter) deleteRuleById(long ruleId, String userId) findRuleById(Long id) findRuleByTitle(String title) findRuleIdsByFilter(RuleFilter ruleFilter, int offset, int limit) Methods inherited from class io.meeds.gamification.storage.RuleStorage
findActiveRuleByEventAndProgramId, findAllRulesIds
-
Field Details
-
RULE_CACHE_NAME
- See Also:
-
RULE_ID_CONTEXT
public static final int RULE_ID_CONTEXT- See Also:
-
RULE_TITLE_CONTEXT
public static final int RULE_TITLE_CONTEXT- See Also:
-
RULES_BY_FILTER_CONTEXT
public static final int RULES_BY_FILTER_CONTEXT- See Also:
-
RULES_COUNT_BY_FILTER_CONTEXT
public static final int RULES_COUNT_BY_FILTER_CONTEXT- See Also:
-
-
Constructor Details
-
RuleCachedStorage
public RuleCachedStorage(ProgramStorage programStorage, EventStorage eventStorage, ProgramDAO programDAO, RuleDAO ruleDAO, org.exoplatform.services.cache.CacheService cacheService)
-
-
Method Details
-
findRuleIdsByFilter
- Overrides:
findRuleIdsByFilterin classRuleStorage
-
countRulesByFilter
- Overrides:
countRulesByFilterin classRuleStorage
-
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
-
clearListCache
public void clearListCache()- Overrides:
clearListCachein classRuleStorage
-