View Javadoc
1   package fr.ifremer.reefdb.dto.configuration.control;
2   
3   /*-
4    * #%L
5    * Reef DB :: Core
6    * $Id:$
7    * $HeadURL:$
8    * %%
9    * Copyright (C) 2014 - 2022 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.ui.core.dto.CodeOnly;
27  import fr.ifremer.quadrige3.ui.core.dto.referential.BaseReferentialDTO;
28  import fr.ifremer.reefdb.dto.ErrorAware;
29  import fr.ifremer.reefdb.dto.ErrorDTO;
30  import fr.ifremer.reefdb.dto.FunctionDTO;
31  import java.util.Collection;
32  import javax.annotation.Generated;
33  
34  @Generated(value = "org.nuiton.eugene.java.SimpleJavaBeanTransformer", date = "Mon May 09 09:01:00 CEST 2022")
35  public interface ControlRuleDTO extends ErrorAware, CodeOnly, BaseReferentialDTO {
36  
37      String PROPERTY_CODE = "code";
38  
39      String PROPERTY_ACTIVE = "active";
40  
41      String PROPERTY_BLOCKING = "blocking";
42  
43      String PROPERTY_MIN = "min";
44  
45      String PROPERTY_MAX = "max";
46  
47      String PROPERTY_ALLOWED_VALUES = "allowedValues";
48  
49      String PROPERTY_DESCRIPTION = "description";
50  
51      String PROPERTY_MESSAGE = "message";
52  
53      String PROPERTY_NEW_CODE = "newCode";
54  
55      String PROPERTY_RULE_PMFMS = "rulePmfms";
56  
57      String PROPERTY_CONTROL_FEATURE = "controlFeature";
58  
59      String PROPERTY_CONTROL_ELEMENT = "controlElement";
60  
61      String PROPERTY_FUNCTION = "function";
62  
63      String PROPERTY_ERRORS = "errors";
64  
65      String PROPERTY_PRECONDITIONS = "preconditions";
66  
67      String PROPERTY_GROUPS = "groups";
68  
69      String getCode();
70  
71      void setCode(String code);
72  
73      boolean isActive();
74  
75      void setActive(boolean active);
76  
77      boolean isBlocking();
78  
79      void setBlocking(boolean blocking);
80  
81      Object getMin();
82  
83      void setMin(Object min);
84  
85      Object getMax();
86  
87      void setMax(Object max);
88  
89      String getAllowedValues();
90  
91      void setAllowedValues(String allowedValues);
92  
93      String getDescription();
94  
95      void setDescription(String description);
96  
97      String getMessage();
98  
99      void setMessage(String message);
100 
101     boolean isNewCode();
102 
103     void setNewCode(boolean newCode);
104 
105     RulePmfmDTO getRulePmfms(int index);
106 
107     boolean isRulePmfmsEmpty();
108 
109     int sizeRulePmfms();
110 
111     void addRulePmfms(RulePmfmDTO rulePmfms);
112 
113     void addAllRulePmfms(Collection<RulePmfmDTO> rulePmfms);
114 
115     boolean removeRulePmfms(RulePmfmDTO rulePmfms);
116 
117     boolean removeAllRulePmfms(Collection<RulePmfmDTO> rulePmfms);
118 
119     boolean containsRulePmfms(RulePmfmDTO rulePmfms);
120 
121     boolean containsAllRulePmfms(Collection<RulePmfmDTO> rulePmfms);
122 
123     Collection<RulePmfmDTO> getRulePmfms();
124 
125     void setRulePmfms(Collection<RulePmfmDTO> rulePmfms);
126 
127     ControlFeatureDTO getControlFeature();
128 
129     void setControlFeature(ControlFeatureDTO controlFeature);
130 
131     ControlElementDTO getControlElement();
132 
133     void setControlElement(ControlElementDTO controlElement);
134 
135     FunctionDTO getFunction();
136 
137     void setFunction(FunctionDTO function);
138 
139     ErrorDTO getErrors(int index);
140 
141     boolean isErrorsEmpty();
142 
143     int sizeErrors();
144 
145     void addErrors(ErrorDTO errors);
146 
147     void addAllErrors(Collection<ErrorDTO> errors);
148 
149     boolean removeErrors(ErrorDTO errors);
150 
151     boolean removeAllErrors(Collection<ErrorDTO> errors);
152 
153     boolean containsErrors(ErrorDTO errors);
154 
155     boolean containsAllErrors(Collection<ErrorDTO> errors);
156 
157     Collection<ErrorDTO> getErrors();
158 
159     void setErrors(Collection<ErrorDTO> errors);
160 
161     PreconditionRuleDTO getPreconditions(int index);
162 
163     boolean isPreconditionsEmpty();
164 
165     int sizePreconditions();
166 
167     void addPreconditions(PreconditionRuleDTO preconditions);
168 
169     void addAllPreconditions(Collection<PreconditionRuleDTO> preconditions);
170 
171     boolean removePreconditions(PreconditionRuleDTO preconditions);
172 
173     boolean removeAllPreconditions(Collection<PreconditionRuleDTO> preconditions);
174 
175     boolean containsPreconditions(PreconditionRuleDTO preconditions);
176 
177     boolean containsAllPreconditions(Collection<PreconditionRuleDTO> preconditions);
178 
179     Collection<PreconditionRuleDTO> getPreconditions();
180 
181     void setPreconditions(Collection<PreconditionRuleDTO> preconditions);
182 
183     RuleGroupDTO getGroups(int index);
184 
185     boolean isGroupsEmpty();
186 
187     int sizeGroups();
188 
189     void addGroups(RuleGroupDTO groups);
190 
191     void addAllGroups(Collection<RuleGroupDTO> groups);
192 
193     boolean removeGroups(RuleGroupDTO groups);
194 
195     boolean removeAllGroups(Collection<RuleGroupDTO> groups);
196 
197     boolean containsGroups(RuleGroupDTO groups);
198 
199     boolean containsAllGroups(Collection<RuleGroupDTO> groups);
200 
201     Collection<RuleGroupDTO> getGroups();
202 
203     void setGroups(Collection<RuleGroupDTO> groups);
204 
205 } //ControlRuleDTO