View Javadoc
1   package fr.ifremer.tutti.service.genericformat;
2   
3   /*
4    * #%L
5    * Tutti :: Service
6    * $Id:$
7    * $HeadURL:$
8    * %%
9    * Copyright (C) 2012 - 2015 Ifremer
10   * %%
11   * This program is free software: you can redistribute it and/or modify
12   * it under the terms of the GNU General Public License as
13   * published by the Free Software Foundation, either version 3 of the
14   * License, or (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 General Public
22   * License along with this program.  If not, see
23   * <http://www.gnu.org/licenses/gpl-3.0.html>.
24   * #L%
25   */
26  
27  import fr.ifremer.tutti.persistence.model.ProgramDataModel;
28  
29  import java.io.File;
30  import java.io.Serializable;
31  
32  /**
33   * Created on 2/23/15.
34   *
35   * @author Tony Chemit - chemit@codelutin.com
36   * @since 3.14
37   */
38  public class GenericFormatImportConfiguration implements Serializable {
39  
40      private static final long serialVersionUID = 1L;
41  
42      /**
43       * File to import.
44       */
45      private File importFile;
46  
47      /**
48       * Path to report to generation.
49       */
50      private File reportFile;
51  
52      /**
53       * Should perform clean weights after import ?
54       */
55      private boolean cleanWeights;
56  
57      /**
58       * Should perform check weights after import ?
59       */
60      private boolean checkWeights;
61  
62      /**
63       * Override protocol if same name ?
64       */
65      private boolean overrideProtocol;
66  
67      /**
68       * Data to export.
69       */
70      private ProgramDataModel dataToExport;
71  
72      /**
73       * Should we import species batches ?
74       */
75      private boolean importSpecies;
76  
77      /**
78       * Should we import benthos batches ?
79       */
80      private boolean importBenthos;
81  
82      /**
83       * Should we import marine litter batches ?
84       */
85      private boolean importMarineLitter;
86  
87      /**
88       * Should we import accidental catches ?
89       */
90      private boolean importAccidentalCatch;
91  
92      /**
93       * Should we import individual observations ?
94       */
95      private boolean importIndividualObservation;
96  
97      /**
98       * Should we import attachments ?
99       */
100     private boolean importAttachments;
101 
102     /**
103      * Should we update existing cruises ?
104      */
105     private boolean updateCruises;
106 
107     /**
108      * Should we update existing operations ?
109      */
110     private boolean updateOperations;
111 
112     /**
113      * Maximum rows in errors by file before stopping validation.
114      */
115     private int maximumRowsInErrorPerFile;
116 
117     private boolean authorizeObsoleteReferentials;
118 
119     public ProgramDataModel getDataToExport() {
120         return dataToExport;
121     }
122 
123     public void setDataToExport(ProgramDataModel dataToExport) {
124         this.dataToExport = dataToExport;
125     }
126 
127     public File getImportFile() {
128         return importFile;
129     }
130 
131     public void setImportFile(File importFile) {
132         this.importFile = importFile;
133     }
134 
135     public File getReportFile() {
136         return reportFile;
137     }
138 
139     public void setReportFile(File reportFile) {
140         this.reportFile = reportFile;
141     }
142 
143     public boolean isCleanWeights() {
144         return cleanWeights;
145     }
146 
147     public void setCleanWeights(boolean cleanWeights) {
148         this.cleanWeights = cleanWeights;
149     }
150 
151     public boolean isCheckWeights() {
152         return checkWeights;
153     }
154 
155     public void setCheckWeights(boolean checkWeights) {
156         this.checkWeights = checkWeights;
157     }
158 
159     public void setOverrideProtocol(boolean overrideProtocol) {
160         this.overrideProtocol = overrideProtocol;
161     }
162 
163     public boolean isOverrideProtocol() {
164         return overrideProtocol;
165     }
166 
167     public boolean isUpdateCruises() {
168         return updateCruises;
169     }
170 
171     public void setUpdateCruises(boolean updateCruises) {
172         this.updateCruises = updateCruises;
173     }
174 
175     public boolean isUpdateOperations() {
176         return updateOperations;
177     }
178 
179     public void setUpdateOperations(boolean updateOperations) {
180         this.updateOperations = updateOperations;
181     }
182 
183     public boolean isImportSpecies() {
184         return importSpecies;
185     }
186 
187     public void setImportSpecies(boolean importSpecies) {
188         this.importSpecies = importSpecies;
189     }
190 
191     public boolean isImportBenthos() {
192         return importBenthos;
193     }
194 
195     public void setImportBenthos(boolean importBenthos) {
196         this.importBenthos = importBenthos;
197     }
198 
199     public boolean isImportMarineLitter() {
200         return importMarineLitter;
201     }
202 
203     public void setImportMarineLitter(boolean importMarineLitter) {
204         this.importMarineLitter = importMarineLitter;
205     }
206 
207     public boolean isImportAccidentalCatch() {
208         return importAccidentalCatch;
209     }
210 
211     public void setImportAccidentalCatch(boolean importAccidentalCatch) {
212         this.importAccidentalCatch = importAccidentalCatch;
213     }
214 
215     public boolean isImportIndividualObservation() {
216         return importIndividualObservation;
217     }
218 
219     public void setImportIndividualObservation(boolean importIndividualObservation) {
220         this.importIndividualObservation = importIndividualObservation;
221     }
222 
223     public boolean isImportAttachments() {
224         return importAttachments;
225     }
226 
227     public void setImportAttachments(boolean importAttachments) {
228         this.importAttachments = importAttachments;
229     }
230 
231     public int getMaximumRowsInErrorPerFile() {
232         return maximumRowsInErrorPerFile;
233     }
234 
235     public void setMaximumRowsInErrorPerFile(int maximumRowsInErrorPerFile) {
236         this.maximumRowsInErrorPerFile = maximumRowsInErrorPerFile;
237     }
238 
239     public boolean isAuthorizeObsoleteReferentials() {
240         return authorizeObsoleteReferentials;
241     }
242 
243     public void setAuthorizeObsoleteReferentials(boolean authorizeObsoleteReferentials) {
244         this.authorizeObsoleteReferentials = authorizeObsoleteReferentials;
245     }
246 }