1 package fr.ifremer.quadrige3.synchro.service.client.vo;
2
3 /*-
4 * #%L
5 * Quadrige3 Core :: Quadrige3 Client Core
6 * $Id:$
7 * $HeadURL:$
8 * %%
9 * Copyright (C) 2017 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.common.synchro.service.SynchroResult;
27 import fr.ifremer.quadrige3.synchro.service.data.DataSynchroContext;
28 import fr.ifremer.quadrige3.synchro.service.referential.ReferentialSynchroContext;
29
30 import java.io.File;
31 import java.util.Date;
32
33 /**
34 * <p>
35 * SynchroClientImportFromFileResult class.
36 * </p>
37 *
38 */
39 public class SynchroClientImportFromFileResult {
40
41 private ReferentialSynchroContext referentialContext;
42
43 private DataSynchroContext dataContext;
44
45 private Date referentialSynchronizationDate;
46
47 private Date dataSynchronizationDate;
48
49 private File file;
50
51 /**
52 * <p>
53 * Getter for the field <code>dataContext</code>.
54 * </p>
55 *
56 * @return a {@link fr.ifremer.quadrige3.synchro.service.data.DataSynchroContext} object.
57 */
58 public DataSynchroContext getDataContext() {
59 return dataContext;
60 }
61
62 /**
63 * <p>
64 * Setter for the field <code>dataContext</code>.
65 * </p>
66 *
67 * @param dataContext
68 * a {@link fr.ifremer.quadrige3.synchro.service.data.DataSynchroContext} object.
69 */
70 public void setDataContext(DataSynchroContext dataContext) {
71 this.dataContext = dataContext;
72 }
73
74 /**
75 * <p>
76 * Getter for the field <code>referentialContext</code>.
77 * </p>
78 *
79 * @return a {@link fr.ifremer.quadrige3.synchro.service.referential.ReferentialSynchroContext} object.
80 */
81 public ReferentialSynchroContext getReferentialContext() {
82 return referentialContext;
83 }
84
85 /**
86 * <p>
87 * Setter for the field <code>referentialContext</code>.
88 * </p>
89 *
90 * @param referentialContext
91 * a {@link fr.ifremer.quadrige3.synchro.service.referential.ReferentialSynchroContext} object.
92 */
93 public void setReferentialContext(ReferentialSynchroContext referentialContext) {
94 this.referentialContext = referentialContext;
95 }
96
97 /**
98 * <p>
99 * getReferentialResult.
100 * </p>
101 *
102 * @return a {@link fr.ifremer.common.synchro.service.SynchroResult} object.
103 */
104 public SynchroResult getReferentialResult() {
105 if (referentialContext == null)
106 return null;
107 return referentialContext.getResult();
108 }
109
110 /**
111 * <p>
112 * getDataResult.
113 * </p>
114 *
115 * @return a {@link fr.ifremer.common.synchro.service.SynchroResult} object.
116 */
117 public SynchroResult getDataResult() {
118 if (dataContext == null)
119 return null;
120 return dataContext.getResult();
121 }
122
123 /**
124 * <p>
125 * Getter for the field <code>referentialSynchronizationDate</code>.
126 * </p>
127 *
128 * @return a {@link java.util.Date} object.
129 */
130 public Date getReferentialSynchronizationDate() {
131 return referentialSynchronizationDate;
132 }
133
134 /**
135 * <p>
136 * Setter for the field <code>referentialSynchronizationDate</code>.
137 * </p>
138 *
139 * @param referentialSynchronizationDate
140 * a {@link java.util.Date} object.
141 */
142 public void setReferentialSynchronizationDate(Date referentialSynchronizationDate) {
143 this.referentialSynchronizationDate = referentialSynchronizationDate;
144 }
145
146 /**
147 * <p>
148 * Getter for the field <code>dataSynchronizationDate</code>.
149 * </p>
150 *
151 * @return a {@link java.util.Date} object.
152 */
153 public Date getDataSynchronizationDate() {
154 return dataSynchronizationDate;
155 }
156
157 /**
158 * <p>
159 * Setter for the field <code>dataSynchronizationDate</code>.
160 * </p>
161 *
162 * @param dataSynchronizationDate
163 * a {@link java.util.Date} object.
164 */
165 public void setDataSynchronizationDate(Date dataSynchronizationDate) {
166 this.dataSynchronizationDate = dataSynchronizationDate;
167 }
168
169 /**
170 * <p>
171 * Getter for the field <code>file</code>.
172 * </p>
173 *
174 * @return a {@link java.io.File} object.
175 */
176 public File getFile() {
177 return file;
178 }
179
180 /**
181 * <p>
182 * Setter for the field <code>file</code>.
183 * </p>
184 *
185 * @param file
186 * a {@link java.io.File} object.
187 */
188 public void setFile(File file) {
189 this.file = file;
190 }
191 }