Class RuleStorage
java.lang.Object
org.exoplatform.addons.gamification.storage.RuleStorage
- Direct Known Subclasses:
RuleCachedStorage
-
Constructor Summary
ConstructorsConstructorDescriptionRuleStorage(RuleDAO ruleDAO, RuleSearchConnector ruleSearchConnector, GamificationHistoryDAO gamificationHistoryDAO) -
Method Summary
Modifier and TypeMethodDescriptionvoidintcountRulesByFilter(RuleFilter ruleFilter) deleteRuleById(long ruleId, String userId) deleteRuleById(long ruleId, String userId, boolean force) findAllRulesIds(int offset, int limit) findEnabledRulesByEvent(String event) findEnableRuleByTitle(String ruleTitle) findMostRealizedRuleIds(List<Long> spacesIds, int offset, int limit, EntityType type) findRuleByEventAndDomain(String event, long domainId) findRuleById(Long id) findRuleByTitle(String ruleTitle) findRulesIdsByFilter(RuleFilter ruleFilter, int offset, int limit) getAllRulesByDomain(String domain) longgetRulesTotalScoreByDomain(long domainId)
-
Constructor Details
-
RuleStorage
public RuleStorage(RuleDAO ruleDAO, RuleSearchConnector ruleSearchConnector, GamificationHistoryDAO gamificationHistoryDAO)
-
-
Method Details
-
saveRule
-
findEnableRuleByTitle
-
findRuleById
-
findEnabledRulesByEvent
-
findRuleByTitle
-
findRuleByEventAndDomain
-
findRulesIdsByFilter
-
countRulesByFilter
-
findAllRules
-
findAllRulesIds
-
getActiveRules
-
getAllRulesByDomain
-
getAllRulesWithNullDomain
-
getAllEvents
-
getDomainListFromRules
-
getRulesTotalScoreByDomain
public long getRulesTotalScoreByDomain(long domainId) -
deleteRuleById
public RuleDTO deleteRuleById(long ruleId, String userId) throws org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
deleteRuleById
public RuleDTO deleteRuleById(long ruleId, String userId, boolean force) throws org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
findMostRealizedRuleIds
public List<Long> findMostRealizedRuleIds(List<Long> spacesIds, int offset, int limit, EntityType type) -
clearCache
public void clearCache()
-