View Javadoc
1   package fr.ifremer.reefdb.dto.data.survey;
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.CommentAware;
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.referential.DepartmentDTO;
31  import fr.ifremer.reefdb.dto.referential.PersonDTO;
32  import java.util.Collection;
33  import java.util.Date;
34  import javax.annotation.Generated;
35  
36  @Generated(value = "org.nuiton.eugene.java.SimpleJavaBeanTransformer", date = "Mon May 09 09:01:00 CEST 2022")
37  public interface CampaignDTO extends ErrorAware, CommentAware, BaseReferentialDTO {
38  
39      String PROPERTY_START_DATE = "startDate";
40  
41      String PROPERTY_END_DATE = "endDate";
42  
43      String PROPERTY_SISMER_LINK = "sismerLink";
44  
45      String PROPERTY_COMMENT = "comment";
46  
47      String PROPERTY_ERRORS = "errors";
48  
49      String PROPERTY_MANAGER = "manager";
50  
51      String PROPERTY_RECORDER_DEPARTMENT = "recorderDepartment";
52  
53      Date getStartDate();
54  
55      void setStartDate(Date startDate);
56  
57      Date getEndDate();
58  
59      void setEndDate(Date endDate);
60  
61      String getSismerLink();
62  
63      void setSismerLink(String sismerLink);
64  
65      String getComment();
66  
67      void setComment(String comment);
68  
69      ErrorDTO getErrors(int index);
70  
71      boolean isErrorsEmpty();
72  
73      int sizeErrors();
74  
75      void addErrors(ErrorDTO errors);
76  
77      void addAllErrors(Collection<ErrorDTO> errors);
78  
79      boolean removeErrors(ErrorDTO errors);
80  
81      boolean removeAllErrors(Collection<ErrorDTO> errors);
82  
83      boolean containsErrors(ErrorDTO errors);
84  
85      boolean containsAllErrors(Collection<ErrorDTO> errors);
86  
87      Collection<ErrorDTO> getErrors();
88  
89      void setErrors(Collection<ErrorDTO> errors);
90  
91      PersonDTO getManager();
92  
93      void setManager(PersonDTO manager);
94  
95      DepartmentDTO getRecorderDepartment();
96  
97      void setRecorderDepartment(DepartmentDTO recorderDepartment);
98  
99  } //CampaignDTO