1 package fr.ifremer.dali.dao.system.rule; 2 3 /* 4 * #%L 5 * Dali :: Core 6 * $Id:$ 7 * $HeadURL:$ 8 * %% 9 * Copyright (C) 2014 - 2015 Ifremer 10 * %% 11 * This program is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Affero General Public License as published by 13 * the Free Software Foundation, either version 3 of the License, or 14 * (at your option) any later version. 15 * 16 * This program is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * You should have received a copy of the GNU Affero General Public License 22 * along with this program. If not, see <http://www.gnu.org/licenses/>. 23 * #L% 24 */ 25 26 import fr.ifremer.quadrige3.core.dao.system.rule.RuleListDao; 27 import fr.ifremer.dali.dto.configuration.control.RuleListDTO; 28 29 import java.util.List; 30 31 /** 32 * <p>DaliRuleListDao interface.</p> 33 * 34 * @author Ludovic 35 */ 36 public interface DaliRuleListDao extends RuleListDao { 37 38 /** 39 * <p>getAllRuleLists.</p> 40 * 41 * @return a {@link java.util.List} object. 42 */ 43 List<RuleListDTO> getAllRuleLists(); 44 45 List<RuleListDTO> getRuleListsForProgram(String programCode); 46 47 /** 48 * <p>getRuleList.</p> 49 * 50 * @param ruleListCode a {@link java.lang.String} object. 51 * @return a {@link fr.ifremer.dali.dto.configuration.control.RuleListDTO} object. 52 */ 53 RuleListDTO getRuleList(String ruleListCode); 54 55 /** 56 * Save rule list 57 * 58 * @param ruleList a {@link fr.ifremer.dali.dto.configuration.control.RuleListDTO} object. 59 * @param quserId a {@link java.lang.Integer} object. 60 */ 61 void saveRuleList(RuleListDTO ruleList, Integer quserId); 62 63 boolean ruleListExists(String ruleListCode); 64 }