View Javadoc
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.util.Date;
31  
32  /**
33   * <p>
34   * SynchroClientImportResult class.
35   * </p>
36   * 
37   */
38  public class SynchroClientImportResult {
39  
40  	private ReferentialSynchroContext referentialContext;
41  
42  	private DataSynchroContext dataContext;
43  
44  	private Date referentialSynchronizationDate;
45  
46  	private Date dataSynchronizationDate;
47  
48  	/**
49  	 * <p>
50  	 * Getter for the field <code>dataContext</code>.
51  	 * </p>
52  	 * 
53  	 * @return a {@link fr.ifremer.quadrige3.synchro.service.data.DataSynchroContext} object.
54  	 */
55  	public DataSynchroContext getDataContext() {
56  		return dataContext;
57  	}
58  
59  	/**
60  	 * <p>
61  	 * Setter for the field <code>dataContext</code>.
62  	 * </p>
63  	 * 
64  	 * @param dataContext
65  	 *            a {@link fr.ifremer.quadrige3.synchro.service.data.DataSynchroContext} object.
66  	 */
67  	public void setDataContext(DataSynchroContext dataContext) {
68  		this.dataContext = dataContext;
69  	}
70  
71  	/**
72  	 * <p>
73  	 * Getter for the field <code>referentialContext</code>.
74  	 * </p>
75  	 * 
76  	 * @return a {@link fr.ifremer.quadrige3.synchro.service.referential.ReferentialSynchroContext} object.
77  	 */
78  	public ReferentialSynchroContext getReferentialContext() {
79  		return referentialContext;
80  	}
81  
82  	/**
83  	 * <p>
84  	 * Setter for the field <code>referentialContext</code>.
85  	 * </p>
86  	 * 
87  	 * @param referentialContext
88  	 *            a {@link fr.ifremer.quadrige3.synchro.service.referential.ReferentialSynchroContext} object.
89  	 */
90  	public void setReferentialContext(ReferentialSynchroContext referentialContext) {
91  		this.referentialContext = referentialContext;
92  	}
93  
94  	/**
95  	 * <p>
96  	 * getReferentialResult.
97  	 * </p>
98  	 * 
99  	 * @return a {@link fr.ifremer.common.synchro.service.SynchroResult} object.
100 	 */
101 	public SynchroResult getReferentialResult() {
102 		if (referentialContext == null)
103 			return null;
104 		return referentialContext.getResult();
105 	}
106 
107 	/**
108 	 * <p>
109 	 * getDataResult.
110 	 * </p>
111 	 * 
112 	 * @return a {@link fr.ifremer.common.synchro.service.SynchroResult} object.
113 	 */
114 	public SynchroResult getDataResult() {
115 		if (dataContext == null)
116 			return null;
117 		return dataContext.getResult();
118 	}
119 
120 	/**
121 	 * <p>
122 	 * Getter for the field <code>referentialSynchronizationDate</code>.
123 	 * </p>
124 	 * 
125 	 * @return a {@link java.util.Date} object.
126 	 */
127 	public Date getReferentialSynchronizationDate() {
128 		return referentialSynchronizationDate;
129 	}
130 
131 	/**
132 	 * <p>
133 	 * Setter for the field <code>referentialSynchronizationDate</code>.
134 	 * </p>
135 	 * 
136 	 * @param referentialSynchronizationDate
137 	 *            a {@link java.util.Date} object.
138 	 */
139 	public void setReferentialSynchronizationDate(Date referentialSynchronizationDate) {
140 		this.referentialSynchronizationDate = referentialSynchronizationDate;
141 	}
142 
143 	/**
144 	 * <p>
145 	 * Getter for the field <code>dataSynchronizationDate</code>.
146 	 * </p>
147 	 * 
148 	 * @return a {@link java.util.Date} object.
149 	 */
150 	public Date getDataSynchronizationDate() {
151 		return dataSynchronizationDate;
152 	}
153 
154 	/**
155 	 * <p>
156 	 * Setter for the field <code>dataSynchronizationDate</code>.
157 	 * </p>
158 	 * 
159 	 * @param dataSynchronizationDate
160 	 *            a {@link java.util.Date} object.
161 	 */
162 	public void setDataSynchronizationDate(Date dataSynchronizationDate) {
163 		this.dataSynchronizationDate = dataSynchronizationDate;
164 	}
165 
166 }