Class 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 Detail

      • RuleDAO

        public RuleDAO()
    • 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
      • 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)