View Javadoc
1   package fr.ifremer.reefdb.dto.configuration.programStrategy;
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.reefdb.dto.ErrorAware;
27  import fr.ifremer.reefdb.dto.ErrorDTO;
28  import fr.ifremer.reefdb.dto.referential.DepartmentDTO;
29  import fr.ifremer.reefdb.dto.referential.LocationDTO;
30  import java.io.Serializable;
31  import java.time.LocalDate;
32  import java.util.Collection;
33  import javax.annotation.Generated;
34  
35  @Generated(value = "org.nuiton.eugene.java.SimpleJavaBeanTransformer", date = "Mon May 09 09:01:00 CEST 2022")
36  public interface AppliedStrategyDTO extends ErrorAware, LocationDTO, Serializable {
37  
38      String PROPERTY_APPLIED_STRATEGY_ID = "appliedStrategyId";
39  
40      String PROPERTY_START_DATE = "startDate";
41  
42      String PROPERTY_END_DATE = "endDate";
43  
44      String PROPERTY_PREVIOUS_START_DATE = "previousStartDate";
45  
46      String PROPERTY_PREVIOUS_END_DATE = "previousEndDate";
47  
48      String PROPERTY_DEPARTMENT = "department";
49  
50      String PROPERTY_ERRORS = "errors";
51  
52      Integer getAppliedStrategyId();
53  
54      void setAppliedStrategyId(Integer appliedStrategyId);
55  
56      LocalDate getStartDate();
57  
58      void setStartDate(LocalDate startDate);
59  
60      LocalDate getEndDate();
61  
62      void setEndDate(LocalDate endDate);
63  
64      LocalDate getPreviousStartDate();
65  
66      void setPreviousStartDate(LocalDate previousStartDate);
67  
68      LocalDate getPreviousEndDate();
69  
70      void setPreviousEndDate(LocalDate previousEndDate);
71  
72      DepartmentDTO getDepartment();
73  
74      void setDepartment(DepartmentDTO department);
75  
76      ErrorDTO getErrors(int index);
77  
78      boolean isErrorsEmpty();
79  
80      int sizeErrors();
81  
82      void addErrors(ErrorDTO errors);
83  
84      void addAllErrors(Collection<ErrorDTO> errors);
85  
86      boolean removeErrors(ErrorDTO errors);
87  
88      boolean removeAllErrors(Collection<ErrorDTO> errors);
89  
90      boolean containsErrors(ErrorDTO errors);
91  
92      boolean containsAllErrors(Collection<ErrorDTO> errors);
93  
94      Collection<ErrorDTO> getErrors();
95  
96      void setErrors(Collection<ErrorDTO> errors);
97  
98  } //AppliedStrategyDTO