Class RuleDAO
- java.lang.Object
-
- org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<RuleEntity,Long>
-
- org.exoplatform.addons.gamification.storage.dao.RuleDAO
-
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<RuleEntity,Long>
public class RuleDAO extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<RuleEntity,Long> implements org.exoplatform.commons.api.persistence.GenericDAO<RuleEntity,Long>
-
-
Constructor Summary
Constructors Constructor Description RuleDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<RuleEntity>findAllChallengesByUser(int offset, int limit, List<Long> ids)List<RuleEntity>findEnabledRulesByEvent(String event)RuleEntityfindEnableRuleByTitle(String ruleTitle)RuleEntityfindRuleByEventAndDomain(String event, String domain)RuleEntityfindRuleByTitle(String ruleTitle)List<RuleEntity>getActiveRules()List<RuleEntity>getAllAutomaticRules()List<String>getAllEvents()List<RuleEntity>getAllRules()List<RuleEntity>getAllRulesByDomain(String domain)List<RuleEntity>getAllRulesWithNullDomain()List<String>getDomainList()-
Methods inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAll
-
-
-
-
Method Detail
-
findEnableRuleByTitle
public RuleEntity findEnableRuleByTitle(String ruleTitle) throws javax.persistence.PersistenceException
- Throws:
javax.persistence.PersistenceException
-
findEnabledRulesByEvent
public List<RuleEntity> findEnabledRulesByEvent(String event) throws javax.persistence.PersistenceException
- Throws:
javax.persistence.PersistenceException
-
findRuleByTitle
public RuleEntity findRuleByTitle(String ruleTitle) throws javax.persistence.PersistenceException
- Throws:
javax.persistence.PersistenceException
-
findRuleByEventAndDomain
public RuleEntity findRuleByEventAndDomain(String event, String domain) throws javax.persistence.PersistenceException
- Throws:
javax.persistence.PersistenceException
-
getAllAutomaticRules
public List<RuleEntity> getAllAutomaticRules() throws javax.persistence.PersistenceException
- Throws:
javax.persistence.PersistenceException
-
getAllRules
public List<RuleEntity> getAllRules() throws javax.persistence.PersistenceException
- Throws:
javax.persistence.PersistenceException
-
getActiveRules
public List<RuleEntity> getActiveRules()
-
getAllRulesByDomain
public List<RuleEntity> getAllRulesByDomain(String domain) throws javax.persistence.PersistenceException
- Throws:
javax.persistence.PersistenceException
-
getAllRulesWithNullDomain
public List<RuleEntity> getAllRulesWithNullDomain() throws javax.persistence.PersistenceException
- Throws:
javax.persistence.PersistenceException
-
getDomainList
public List<String> getDomainList() throws javax.persistence.PersistenceException
- Throws:
javax.persistence.PersistenceException
-
getAllEvents
public List<String> getAllEvents() throws javax.persistence.PersistenceException
- Throws:
javax.persistence.PersistenceException
-
findAllChallengesByUser
public List<RuleEntity> findAllChallengesByUser(int offset, int limit, List<Long> ids)
-
-