1
|
/**
|
2
|
* Copyright (C) 2015 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.taxeditor.remoting.source;
|
10
|
|
11
|
import java.io.File;
|
12
|
import java.io.FileInputStream;
|
13
|
import java.io.FileOutputStream;
|
14
|
import java.io.IOException;
|
15
|
import java.net.InetSocketAddress;
|
16
|
import java.net.Socket;
|
17
|
import java.util.ArrayList;
|
18
|
import java.util.Collections;
|
19
|
import java.util.Comparator;
|
20
|
import java.util.List;
|
21
|
|
22
|
import org.apache.commons.lang3.StringUtils;
|
23
|
import org.apache.http.HttpEntity;
|
24
|
import org.apache.http.HttpResponse;
|
25
|
import org.apache.http.client.ClientProtocolException;
|
26
|
import org.apache.http.client.ResponseHandler;
|
27
|
import org.apache.http.client.config.RequestConfig;
|
28
|
import org.apache.http.client.methods.HttpGet;
|
29
|
import org.apache.http.impl.client.CloseableHttpClient;
|
30
|
import org.apache.http.impl.client.HttpClientBuilder;
|
31
|
import org.apache.http.util.EntityUtils;
|
32
|
import org.apache.log4j.Logger;
|
33
|
import org.json.JSONArray;
|
34
|
import org.json.JSONException;
|
35
|
import org.json.JSONObject;
|
36
|
|
37
|
import com.fasterxml.jackson.core.type.TypeReference;
|
38
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
39
|
|
40
|
import eu.etaxonomy.cdm.api.application.CdmApplicationRemoteConfiguration;
|
41
|
import eu.etaxonomy.cdm.api.application.CdmApplicationState;
|
42
|
import eu.etaxonomy.cdm.config.CdmSourceException;
|
43
|
import eu.etaxonomy.cdm.config.ConfigFileUtil;
|
44
|
import eu.etaxonomy.cdm.config.ICdmSource;
|
45
|
import eu.etaxonomy.cdm.database.CdmPersistentDataSource;
|
46
|
import eu.etaxonomy.cdm.database.ICdmDataSource;
|
47
|
import eu.etaxonomy.cdm.model.metadata.CdmMetaData;
|
48
|
import eu.etaxonomy.taxeditor.remoting.server.CdmServerException;
|
49
|
import eu.etaxonomy.taxeditor.remoting.server.CdmServerUtils;
|
50
|
|
51
|
/**
|
52
|
* @author cmathew
|
53
|
* @date 20 Jan 2015
|
54
|
*/
|
55
|
public class CdmServerInfo {
|
56
|
|
57
|
public static final Logger logger = Logger.getLogger(CdmServerInfo.class);
|
58
|
|
59
|
private final static String CDMSERVER_PREFIX = "cdmserver/";
|
60
|
private final static String NAME_PRODUCTION = "cybertaxonomy.org";
|
61
|
private final static String SERVER_PRODUCTION = "api.cybertaxonomy.org";
|
62
|
|
63
|
private final static String NAME_DEMO_1 = "demo I";
|
64
|
private final static String SERVER_DEMO_1 = "160.45.63.230";
|
65
|
|
66
|
public final static String SERVER_LOCALHOST = "localhost";
|
67
|
private final static String NAME_LOCALHOST = "localhost";
|
68
|
public final static String NAME_LOCALHOST_MGD = "localhost mgd.";
|
69
|
|
70
|
private final static String NAME_LOCALHOST_DEV = "localhost-dev";
|
71
|
private final static String NAME_INSTANCE_LOCALHOST_DEV = "local-dev";
|
72
|
private final static String SERVER_LOCALHOST_DEV = "localhost";
|
73
|
private final static String BASEPATH_LOCALHOST_DEV = "";
|
74
|
|
75
|
public final static int NULL_PORT = -1;
|
76
|
public final static String NULL_PORT_STRING = "N/A";
|
77
|
|
78
|
private static final String CDM_REMOTE_SERVERS_CONFIG_FILE = "cdm_remote_servers.json";
|
79
|
|
80
|
|
81
|
private final String name;
|
82
|
private final String server;
|
83
|
private int port;
|
84
|
private final List<CdmInstanceInfo> instances;
|
85
|
|
86
|
private String cdmlibServicesVersion = "";
|
87
|
private String cdmlibServicesLastModified = "";
|
88
|
|
89
|
private String prefix = "";
|
90
|
|
91
|
private boolean ignoreCdmLibVersion = false;
|
92
|
|
93
|
|
94
|
public CdmServerInfo(CdmServerInfoConfig parameterObject) {
|
95
|
this.name = parameterObject.getName();
|
96
|
this.server = parameterObject.getServer();
|
97
|
this.port = parameterObject.getPort();
|
98
|
this.prefix = parameterObject.getPrefix();
|
99
|
this.ignoreCdmLibVersion = parameterObject.isIgnoreCdmLibVersion();
|
100
|
this.instances = new ArrayList<>();
|
101
|
}
|
102
|
|
103
|
public CdmInstanceInfo addInstance(String name, ICdmDataSource dataSource) {
|
104
|
CdmInstanceInfo cii = new CdmInstanceInfo(name, dataSource);
|
105
|
instances.add(cii);
|
106
|
return cii;
|
107
|
}
|
108
|
|
109
|
public CdmInstanceInfo addInstance(String name, String basePath) {
|
110
|
CdmInstanceInfo cii = new CdmInstanceInfo(name, basePath);
|
111
|
instances.add(cii);
|
112
|
return cii;
|
113
|
}
|
114
|
|
115
|
public boolean isLocalhost() {
|
116
|
return name.startsWith(SERVER_LOCALHOST);
|
117
|
}
|
118
|
|
119
|
public boolean isLocalhostMgd() {
|
120
|
return NAME_LOCALHOST_MGD.equals(name);
|
121
|
}
|
122
|
|
123
|
public String getCdmlibServicesVersion() {
|
124
|
return cdmlibServicesVersion;
|
125
|
}
|
126
|
|
127
|
public String getCdmlibLastModified() {
|
128
|
return cdmlibServicesLastModified;
|
129
|
}
|
130
|
|
131
|
public void refreshInstances() throws CdmServerException {
|
132
|
instances.clear();
|
133
|
if(isLocalhostMgd()) {
|
134
|
addInstancesFromDataSourcesConfig();
|
135
|
} else {
|
136
|
addInstancesViaHttp();
|
137
|
}
|
138
|
Collections.sort(instances, new Comparator<CdmInstanceInfo>() {
|
139
|
@Override
|
140
|
public int compare(CdmInstanceInfo cii1, CdmInstanceInfo cii2){
|
141
|
return cii1.getName().toString().compareTo(cii2.getName().toString());
|
142
|
}
|
143
|
});
|
144
|
}
|
145
|
|
146
|
public void updateInfo() throws CdmServerException {
|
147
|
|
148
|
String url = guessProtocol() + "://" + server + ":" + String.valueOf(port) + "/" + prefix + "info.jsp";
|
149
|
String responseBody = getResponse(url);
|
150
|
if(responseBody != null) {
|
151
|
try {
|
152
|
JSONObject info = new JSONObject(responseBody);
|
153
|
cdmlibServicesVersion = info.getString("cdmlibServicesVersion");
|
154
|
cdmlibServicesLastModified = info.getString("cdmlibServicesLastModified");
|
155
|
} catch (JSONException e) {
|
156
|
throw new CdmServerException(e);
|
157
|
}
|
158
|
}
|
159
|
}
|
160
|
|
161
|
String guessProtocol() {
|
162
|
return port == 443 ? "https" : "http";
|
163
|
}
|
164
|
|
165
|
public void addInstancesViaHttp() throws CdmServerException {
|
166
|
updateInfo();
|
167
|
String url = guessProtocol() + "://" + server + ":" + String.valueOf(port) + "/" + prefix + "instances.jsp";
|
168
|
String responseBody = getResponse(url);
|
169
|
if(responseBody != null) {
|
170
|
try {
|
171
|
JSONArray array = new JSONArray(responseBody);
|
172
|
for(int i=0;i<array.length();i++) {
|
173
|
JSONObject instance = (JSONObject)array.get(i);
|
174
|
if(instance != null) {
|
175
|
JSONObject conf = (JSONObject)instance.get("configuration");
|
176
|
if(conf != null) {
|
177
|
String instanceName = conf.getString("instanceName");
|
178
|
// we need to remove the first (char) forward slash from
|
179
|
// the base path
|
180
|
String basePath = conf.getString("basePath").substring(1);
|
181
|
addInstance(instanceName, basePath);
|
182
|
logger.info("Added instance with name : " + instanceName + ", basePath : " + basePath);
|
183
|
}
|
184
|
}
|
185
|
}
|
186
|
} catch (JSONException e) {
|
187
|
throw new CdmServerException(e);
|
188
|
}
|
189
|
}
|
190
|
}
|
191
|
|
192
|
private String getResponse(String url) throws CdmServerException {
|
193
|
|
194
|
RequestConfig.Builder requestBuilder = RequestConfig.custom();
|
195
|
requestBuilder.setConnectTimeout(CdmApplicationRemoteConfiguration.HTTP_READ_TIMEOUT_MIN);
|
196
|
requestBuilder.setConnectionRequestTimeout(CdmApplicationRemoteConfiguration.HTTP_READ_TIMEOUT_MIN);
|
197
|
requestBuilder.setSocketTimeout(CdmApplicationRemoteConfiguration.HTTP_READ_TIMEOUT_MIN);
|
198
|
CloseableHttpClient client = HttpClientBuilder.create().setDefaultRequestConfig(requestBuilder.build()).build();
|
199
|
|
200
|
HttpGet httpGet = new HttpGet(url);
|
201
|
|
202
|
logger.info("Executing request " + httpGet.getRequestLine());
|
203
|
|
204
|
// Create a custom response handler
|
205
|
ResponseHandler<String> responseHandler = new ResponseHandler<String>() {
|
206
|
|
207
|
@Override
|
208
|
public String handleResponse(
|
209
|
final HttpResponse response) throws ClientProtocolException, IOException {
|
210
|
int status = response.getStatusLine().getStatusCode();
|
211
|
if (status >= 200 && status < 300) {
|
212
|
HttpEntity entity = response.getEntity();
|
213
|
return entity != null ? EntityUtils.toString(entity) : null;
|
214
|
} else {
|
215
|
throw new ClientProtocolException("Unexpected response status: " + status);
|
216
|
}
|
217
|
}
|
218
|
|
219
|
};
|
220
|
String responseBody = null;
|
221
|
try {
|
222
|
responseBody = client.execute(httpGet, responseHandler);
|
223
|
} catch (ClientProtocolException e) {
|
224
|
throw new CdmServerException(e);
|
225
|
} catch (IOException e) { // java.net.ConnectException: Connection refused, java.net.SocketTimeoutException: Read timed out
|
226
|
throw new CdmServerException(e);
|
227
|
} finally{
|
228
|
try {
|
229
|
client.close();
|
230
|
client = null;
|
231
|
} catch (IOException e) {
|
232
|
// IGNORE //
|
233
|
}
|
234
|
}
|
235
|
return responseBody;
|
236
|
}
|
237
|
|
238
|
public void addInstancesFromDataSourcesConfig() {
|
239
|
for(ICdmDataSource dataSource : CdmPersistentDataSource.getAllDataSources()){
|
240
|
String datasourceNCName = CdmServerUtils.xmlNCNamefrom(dataSource.getName());
|
241
|
logger.info("Adding local instance " + dataSource.getName() + " as " + datasourceNCName);
|
242
|
addInstance(datasourceNCName, dataSource);
|
243
|
}
|
244
|
}
|
245
|
|
246
|
public String toString(String instanceName, int port) {
|
247
|
return server + ":" + String.valueOf(port) + "/" + instanceName;
|
248
|
}
|
249
|
|
250
|
public CdmInstanceInfo getInstanceFromName(String instanceName) {
|
251
|
if(instanceName == null) {
|
252
|
return null;
|
253
|
}
|
254
|
|
255
|
for(CdmInstanceInfo instance : instances) {
|
256
|
if(instance.getName() != null && instance.getName().equals(instanceName)) {
|
257
|
return instance;
|
258
|
}
|
259
|
}
|
260
|
return null;
|
261
|
}
|
262
|
|
263
|
public ICdmRemoteSource getCdmRemoteSource(CdmInstanceInfo instance, int port) {
|
264
|
if(instance != null) {
|
265
|
if (instance.getDataSource()!=null){
|
266
|
return CdmRemoteLocalhostSource.NewInstance(name,
|
267
|
server,
|
268
|
port,
|
269
|
instance.getDataSource(),
|
270
|
instance.name
|
271
|
);
|
272
|
}else{
|
273
|
return CdmRemoteSource.NewInstance(name,
|
274
|
server,
|
275
|
port,
|
276
|
instance.getBasePath()
|
277
|
);
|
278
|
}
|
279
|
}
|
280
|
return null;
|
281
|
}
|
282
|
|
283
|
public boolean pingServer() throws CdmServerException, IOException {
|
284
|
if(isLocalhostMgd()) {
|
285
|
return true;
|
286
|
}
|
287
|
Socket s = new Socket();
|
288
|
s.connect(new InetSocketAddress(server, port), CdmApplicationRemoteConfiguration.HTTP_READ_TIMEOUT_MIN);
|
289
|
s.close();
|
290
|
logger.info("[CDM-Server] Available @ " + server + ":" + port );
|
291
|
updateInfo();
|
292
|
return true;
|
293
|
}
|
294
|
|
295
|
public boolean pingInstance(CdmInstanceInfo instance, int port) throws CdmServerException {
|
296
|
ICdmSource cdmRemoteSource = getCdmRemoteSource(instance, port);
|
297
|
try {
|
298
|
if(cdmRemoteSource != null && cdmRemoteSource.checkConnection()) {
|
299
|
logger.info("[CDM-Server] Running @ " + server + ":" + port + " for instance " + instance);
|
300
|
return true;
|
301
|
}
|
302
|
} catch (CdmSourceException e) {
|
303
|
logger.error(e.getMessage(), e);
|
304
|
throw new CdmServerException(e);
|
305
|
}
|
306
|
|
307
|
return false;
|
308
|
}
|
309
|
|
310
|
public int compareDbSchemaVersion(CdmInstanceInfo instance, int port) throws CdmServerException {
|
311
|
|
312
|
ICdmSource remoteSource = getCdmRemoteSource(instance, port);
|
313
|
String remoteDbSchemaVersion;
|
314
|
try {
|
315
|
remoteDbSchemaVersion = remoteSource.getDbSchemaVersion();
|
316
|
} catch (CdmSourceException e) {
|
317
|
throw new CdmServerException(e);
|
318
|
}
|
319
|
|
320
|
if(remoteDbSchemaVersion != null) {
|
321
|
return CdmMetaData.compareVersion(remoteDbSchemaVersion, CdmMetaData.getDbSchemaVersion(), 3, null);
|
322
|
} else {
|
323
|
throw new CdmServerException("Cannot determine editor db schema version");
|
324
|
}
|
325
|
}
|
326
|
|
327
|
public int compareCdmlibServicesVersion() throws CdmSourceException {
|
328
|
|
329
|
String serverVersion = cdmlibServicesVersion;
|
330
|
String serverCdmlibLastModified = cdmlibServicesLastModified;
|
331
|
if(ignoreCdmLibVersion) {
|
332
|
return 0;
|
333
|
} else {
|
334
|
return compareCdmlibServicesVersion(serverVersion, serverCdmlibLastModified);
|
335
|
}
|
336
|
}
|
337
|
|
338
|
public static int compareCdmlibServicesVersion(String serverVersion, String serverCdmlibLastModified) throws CdmSourceException {
|
339
|
|
340
|
String editorVersion = CdmApplicationState.getCdmlibVersion();
|
341
|
String editorCdmlibLastModified = CdmApplicationState.getCdmlibLastModified();
|
342
|
|
343
|
int result = 0;
|
344
|
if(StringUtils.isBlank(serverVersion) || StringUtils.isBlank(editorVersion)) {
|
345
|
throw new CdmSourceException("cdmlib-services server or editor version is empty");
|
346
|
}
|
347
|
|
348
|
String[] serverVersionSplit = serverVersion.split("\\.");
|
349
|
String[] editorVersionSplit = editorVersion.split("\\.");
|
350
|
|
351
|
if(serverVersionSplit.length < 3 || editorVersionSplit.length < 3 || serverVersionSplit.length > 4 || editorVersionSplit.length > 4) {
|
352
|
throw new CdmSourceException("cdmlib-services server or editor version is invalid");
|
353
|
}
|
354
|
|
355
|
Integer serverVersionPart;
|
356
|
Integer editorVersionPart;
|
357
|
|
358
|
for(int i=0 ; i<3 ; i++) {
|
359
|
serverVersionPart = Integer.valueOf(serverVersionSplit[i]);
|
360
|
editorVersionPart = Integer.valueOf(editorVersionSplit[i]);
|
361
|
|
362
|
int partCompare = serverVersionPart.compareTo(editorVersionPart);
|
363
|
if (partCompare != 0){
|
364
|
return partCompare;
|
365
|
}
|
366
|
}
|
367
|
// at this point major, minor and patch versions are matching
|
368
|
|
369
|
if(StringUtils.isBlank(serverCdmlibLastModified) || StringUtils.isBlank(editorCdmlibLastModified)) {
|
370
|
throw new CdmSourceException("cdmlib-services server or editor version is empty");
|
371
|
}
|
372
|
|
373
|
String cdmServerIgnoreVersion = System.getProperty("cdm.server.version.lm.ignore");
|
374
|
if(StringUtils.isBlank(cdmServerIgnoreVersion) || !cdmServerIgnoreVersion.equals("true")) {
|
375
|
Long serverLastModified = Long.valueOf(serverCdmlibLastModified);
|
376
|
Long editorLastModified = Long.valueOf(editorCdmlibLastModified);
|
377
|
return serverLastModified.compareTo(editorLastModified);
|
378
|
}
|
379
|
|
380
|
return result;
|
381
|
}
|
382
|
|
383
|
public static List<CdmServerInfo> getCdmServers() {
|
384
|
List<CdmServerInfoConfig> configList;
|
385
|
File file = new File(ConfigFileUtil.perUserCdmFolderFallback(), CDM_REMOTE_SERVERS_CONFIG_FILE);
|
386
|
if (file.exists()){
|
387
|
configList = loadFromConfigFile(file);
|
388
|
}else{
|
389
|
configList = loadFromConfigFile(new File(ConfigFileUtil.perUserCdmFolderFallback(), CDM_REMOTE_SERVERS_CONFIG_FILE));
|
390
|
}
|
391
|
List<CdmServerInfo> serverInfoList = new ArrayList<>(configList.size());
|
392
|
for(CdmServerInfoConfig config : configList) {
|
393
|
serverInfoList.add(new CdmServerInfo(config));
|
394
|
}
|
395
|
// The local host managed server must not be in the config file
|
396
|
CdmServerInfoConfig localHostManagedConfig = new CdmServerInfoConfig(NAME_LOCALHOST_MGD, SERVER_LOCALHOST, NULL_PORT, CDMSERVER_PREFIX, false);
|
397
|
serverInfoList.add(new CdmServerInfo(localHostManagedConfig));
|
398
|
return serverInfoList;
|
399
|
}
|
400
|
|
401
|
private static List<CdmServerInfoConfig> loadFromConfigFile(File file) {
|
402
|
|
403
|
List<CdmServerInfoConfig> serverList = null;
|
404
|
|
405
|
ObjectMapper mapper = new ObjectMapper();
|
406
|
|
407
|
if(!file.exists()) {
|
408
|
logger.info("The remote server config file '" + file.getAbsolutePath() +
|
409
|
"' does not yet exist, it will be created based on the defaults.");
|
410
|
try {
|
411
|
serverList = createDefaultServerConfigList();
|
412
|
mapper.writerWithDefaultPrettyPrinter().writeValue(new FileOutputStream(file), serverList);
|
413
|
|
414
|
} catch (IOException e) {
|
415
|
throw new RuntimeException(e);
|
416
|
}
|
417
|
} else {
|
418
|
try {
|
419
|
serverList = mapper.readValue(new FileInputStream(file), new TypeReference<List<CdmServerInfoConfig>>(){});
|
420
|
} catch (IOException e) {
|
421
|
throw new RuntimeException(e);
|
422
|
}
|
423
|
}
|
424
|
|
425
|
return serverList;
|
426
|
}
|
427
|
|
428
|
private static List<CdmServerInfoConfig> createDefaultServerConfigList() {
|
429
|
|
430
|
List<CdmServerInfoConfig> serverInfoList = new ArrayList<>();
|
431
|
serverInfoList.add(new CdmServerInfoConfig(NAME_PRODUCTION, SERVER_PRODUCTION, 80, "", false));
|
432
|
serverInfoList.add(new CdmServerInfoConfig(NAME_DEMO_1, SERVER_DEMO_1, 80, CDMSERVER_PREFIX, false));
|
433
|
serverInfoList.add(new CdmServerInfoConfig(NAME_LOCALHOST, SERVER_LOCALHOST, 8080, CDMSERVER_PREFIX, true));
|
434
|
return serverInfoList;
|
435
|
}
|
436
|
|
437
|
public String getName() {
|
438
|
return name;
|
439
|
}
|
440
|
|
441
|
public String getServer() {
|
442
|
return server;
|
443
|
}
|
444
|
|
445
|
public int getPort() {
|
446
|
return port;
|
447
|
}
|
448
|
|
449
|
public void setPort(int port) {
|
450
|
this.port = port;
|
451
|
}
|
452
|
|
453
|
public List<CdmInstanceInfo> getInstances() throws CdmServerException {
|
454
|
if(instances.isEmpty()) {
|
455
|
refreshInstances();
|
456
|
}
|
457
|
return instances;
|
458
|
}
|
459
|
|
460
|
public static ICdmSource getDevServerRemoteSource() {
|
461
|
String value = System.getProperty("cdm.server.dev.port");
|
462
|
boolean available = false;
|
463
|
CdmInstanceInfo devInstance = null;
|
464
|
if(value != null && !value.isEmpty()) {
|
465
|
int devPort = Integer.valueOf(value);
|
466
|
CdmServerInfo devCii = new CdmServerInfo(new CdmServerInfoConfig(NAME_LOCALHOST_DEV, SERVER_LOCALHOST_DEV, devPort, "", false));
|
467
|
try {
|
468
|
devInstance = devCii.addInstance(NAME_INSTANCE_LOCALHOST_DEV, BASEPATH_LOCALHOST_DEV);
|
469
|
available = devCii.pingInstance(devInstance, devPort);
|
470
|
if(available) {
|
471
|
logger.info("Will connect local development cdm instance: at port " + devPort);
|
472
|
return devCii.getCdmRemoteSource(devInstance, devPort);
|
473
|
}
|
474
|
} catch (CdmServerException e) {
|
475
|
logger.error("Can not connect to local development cdm instance at port " + devPort + ". "
|
476
|
+ "Make sure the cdm instance is running and that the Spring profile \"remoting\" is "
|
477
|
+ "activated (-Dspring.profiles.active=remoting)", e);
|
478
|
//TODO show message dialog only instead of throwing the exception to show the error
|
479
|
// dialog is not necessary in this situation
|
480
|
}
|
481
|
logger.error("local development cdm instance at port " + devPort + " is not accessible");
|
482
|
}
|
483
|
return null;
|
484
|
}
|
485
|
|
486
|
public class CdmInstanceInfo {
|
487
|
|
488
|
private final String name;
|
489
|
|
490
|
/**
|
491
|
* The full path of the instance including the the prefix (if any).
|
492
|
* E.g. for an EDIT instance this would be something like "cdmserver/remoting"
|
493
|
* For a managed local server this would simply be ""
|
494
|
*/
|
495
|
private final String basePath;
|
496
|
|
497
|
private final ICdmDataSource dataSource;
|
498
|
|
499
|
public CdmInstanceInfo(String name, String basePath) {
|
500
|
this.name = name;
|
501
|
this.basePath = basePath;
|
502
|
this.dataSource = null;
|
503
|
}
|
504
|
|
505
|
public CdmInstanceInfo(String name, ICdmDataSource dataSource) {
|
506
|
this.name = name;
|
507
|
this.basePath = "";
|
508
|
this.dataSource = dataSource;
|
509
|
}
|
510
|
|
511
|
public String getName() {
|
512
|
return name;
|
513
|
}
|
514
|
|
515
|
public String getBasePath() {
|
516
|
return basePath;
|
517
|
}
|
518
|
|
519
|
public ICdmDataSource getDataSource() {
|
520
|
return dataSource;
|
521
|
}
|
522
|
}
|
523
|
}
|