Class RuleStorage
- java.lang.Object
-
- org.exoplatform.addons.gamification.storage.RuleStorage
-
- Direct Known Subclasses:
RuleCachedStorage
public class RuleStorage extends Object
-
-
Constructor Summary
Constructors Constructor Description RuleStorage(RuleDAO ruleDAO)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearCache()voiddeleteChallenge(Challenge challenge)voiddeleteRule(RuleDTO rule)List<RuleEntity>findAllChallengesByUser(int offset, int limit, List<Long> ids)List<RuleDTO>findAllRules()List<RuleDTO>findEnabledRulesByEvent(String event)RuleDTOfindEnableRuleByTitle(String ruleTitle)RuleDTOfindRuleByEventAndDomain(String event, String domain)RuleDTOfindRuleById(Long id)RuleDTOfindRuleByTitle(String ruleTitle)List<RuleDTO>getActiveRules()List<RuleDTO>getAllAutomaticRules()List<String>getAllEvents()List<RuleDTO>getAllRulesByDomain(String domain)List<RuleDTO>getAllRulesWithNullDomain()ChallengegetChallengeById(long challengeId)List<String>getDomainListFromRules()ChallengesaveChallenge(Challenge challenge, String username)RuleDTOsaveRule(RuleDTO ruleDTO)
-
-
-
Constructor Detail
-
RuleStorage
public RuleStorage(RuleDAO ruleDAO)
-
-
Method Detail
-
deleteRule
public void deleteRule(RuleDTO rule)
-
getChallengeById
public Challenge getChallengeById(long challengeId)
-
findAllChallengesByUser
public List<RuleEntity> findAllChallengesByUser(int offset, int limit, List<Long> ids)
-
deleteChallenge
public void deleteChallenge(Challenge challenge)
-
clearCache
public void clearCache()
-
-