1
|
package eu.dnetlib.datasource.publisher.model.db;
|
2
|
|
3
|
import java.sql.Date;
|
4
|
import java.util.Set;
|
5
|
import javax.persistence.*;
|
6
|
|
7
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
8
|
import io.swagger.annotations.ApiModel;
|
9
|
|
10
|
/**
|
11
|
* Datasource
|
12
|
*/
|
13
|
@Entity
|
14
|
@Table(name = "datasources")
|
15
|
@JsonAutoDetect
|
16
|
@ApiModel(value = "Datasource model", description = "provides datasource details")
|
17
|
public class Datasource {
|
18
|
|
19
|
@Id
|
20
|
private String id = null;
|
21
|
private String officialname = null;
|
22
|
private String englishname = null;
|
23
|
private String websiteurl = null;
|
24
|
private String logourl = null;
|
25
|
private String contactemail = null;
|
26
|
private Double latitude;
|
27
|
private Double longitude;
|
28
|
private String timezone = null;
|
29
|
|
30
|
@Column(name = "namespaceprefix", columnDefinition = "bpchar(12)")
|
31
|
private String namespaceprefix;
|
32
|
|
33
|
private String languages;
|
34
|
|
35
|
private String od_contenttypes;
|
36
|
private String collectedfrom = null;
|
37
|
private Date dateofvalidation = null;
|
38
|
private String typology = null;
|
39
|
private String provenanceaction;
|
40
|
private Date dateofcollection;
|
41
|
private String platform;
|
42
|
private String activationId;
|
43
|
private String description = null;
|
44
|
|
45
|
private Date releasestartdate;
|
46
|
private Date releaseenddate;
|
47
|
private String missionstatementurl;
|
48
|
private Boolean dataprovider;
|
49
|
private Boolean serviceprovider;
|
50
|
|
51
|
private String databaseaccesstype;
|
52
|
private String datauploadtype;
|
53
|
private String databaseaccessrestriction;
|
54
|
private String datauploadrestriction;
|
55
|
|
56
|
private Boolean versioning;
|
57
|
private String citationguidelineurl;
|
58
|
private String qualitymanagementkind;
|
59
|
private String pidsystems;
|
60
|
|
61
|
private String certificates;
|
62
|
private String aggregator;
|
63
|
|
64
|
private String issn = null;
|
65
|
private String eissn = null;
|
66
|
private String lissn = null;
|
67
|
|
68
|
private String registeredby = null;
|
69
|
|
70
|
private String subjects;
|
71
|
|
72
|
private Boolean managed;
|
73
|
|
74
|
@OneToMany(mappedBy="datasource", cascade = CascadeType.ALL, fetch = FetchType.EAGER)
|
75
|
private Set<Api> api = null;
|
76
|
|
77
|
@ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.EAGER)
|
78
|
@JoinTable(
|
79
|
name = "datasource_organization",
|
80
|
joinColumns = @JoinColumn(name="datasource"),
|
81
|
inverseJoinColumns = @JoinColumn(name="organization"))
|
82
|
private Set<Organization> organizations;
|
83
|
|
84
|
@ManyToMany(
|
85
|
cascade = { CascadeType.PERSIST, CascadeType.MERGE },
|
86
|
fetch = FetchType.EAGER )
|
87
|
@JoinTable(
|
88
|
name = "datasourcepids",
|
89
|
joinColumns = @JoinColumn(name = "datasource"),
|
90
|
inverseJoinColumns = @JoinColumn(name="pid"))
|
91
|
private Set<Identity> identities;
|
92
|
|
93
|
public String getId() {
|
94
|
return id;
|
95
|
}
|
96
|
|
97
|
public String getOfficialname() {
|
98
|
return officialname;
|
99
|
}
|
100
|
|
101
|
public String getEnglishname() {
|
102
|
return englishname;
|
103
|
}
|
104
|
|
105
|
public String getWebsiteurl() {
|
106
|
return websiteurl;
|
107
|
}
|
108
|
|
109
|
public String getLogourl() {
|
110
|
return logourl;
|
111
|
}
|
112
|
|
113
|
public String getContactemail() {
|
114
|
return contactemail;
|
115
|
}
|
116
|
|
117
|
public Double getLatitude() {
|
118
|
return latitude;
|
119
|
}
|
120
|
|
121
|
public Double getLongitude() {
|
122
|
return longitude;
|
123
|
}
|
124
|
|
125
|
public String getTimezone() {
|
126
|
return timezone;
|
127
|
}
|
128
|
|
129
|
public String getNamespaceprefix() {
|
130
|
return namespaceprefix;
|
131
|
}
|
132
|
|
133
|
public String getLanguages() {
|
134
|
return languages;
|
135
|
}
|
136
|
|
137
|
public String getOd_contenttypes() {
|
138
|
return od_contenttypes;
|
139
|
}
|
140
|
|
141
|
public String getCollectedfrom() {
|
142
|
return collectedfrom;
|
143
|
}
|
144
|
|
145
|
public Date getDateofvalidation() {
|
146
|
return dateofvalidation;
|
147
|
}
|
148
|
|
149
|
public String getTypology() {
|
150
|
return typology;
|
151
|
}
|
152
|
|
153
|
public String getProvenanceaction() {
|
154
|
return provenanceaction;
|
155
|
}
|
156
|
|
157
|
public Date getDateofcollection() {
|
158
|
return dateofcollection;
|
159
|
}
|
160
|
|
161
|
public String getPlatform() {
|
162
|
return platform;
|
163
|
}
|
164
|
|
165
|
public String getActivationId() {
|
166
|
return activationId;
|
167
|
}
|
168
|
|
169
|
public String getDescription() {
|
170
|
return description;
|
171
|
}
|
172
|
|
173
|
public Date getReleasestartdate() {
|
174
|
return releasestartdate;
|
175
|
}
|
176
|
|
177
|
public Date getReleaseenddate() {
|
178
|
return releaseenddate;
|
179
|
}
|
180
|
|
181
|
public String getMissionstatementurl() {
|
182
|
return missionstatementurl;
|
183
|
}
|
184
|
|
185
|
public Boolean isDataprovider() {
|
186
|
return dataprovider;
|
187
|
}
|
188
|
|
189
|
public Boolean isServiceprovider() {
|
190
|
return serviceprovider;
|
191
|
}
|
192
|
|
193
|
public String getDatabaseaccesstype() {
|
194
|
return databaseaccesstype;
|
195
|
}
|
196
|
|
197
|
public String getDatauploadtype() {
|
198
|
return datauploadtype;
|
199
|
}
|
200
|
|
201
|
public String getDatabaseaccessrestriction() {
|
202
|
return databaseaccessrestriction;
|
203
|
}
|
204
|
|
205
|
public String getDatauploadrestriction() {
|
206
|
return datauploadrestriction;
|
207
|
}
|
208
|
|
209
|
public Boolean isVersioning() {
|
210
|
return versioning;
|
211
|
}
|
212
|
|
213
|
public String getCitationguidelineurl() {
|
214
|
return citationguidelineurl;
|
215
|
}
|
216
|
|
217
|
public String getQualitymanagementkind() {
|
218
|
return qualitymanagementkind;
|
219
|
}
|
220
|
|
221
|
public String getPidsystems() {
|
222
|
return pidsystems;
|
223
|
}
|
224
|
|
225
|
public String getCertificates() {
|
226
|
return certificates;
|
227
|
}
|
228
|
|
229
|
public String getAggregator() {
|
230
|
return aggregator;
|
231
|
}
|
232
|
|
233
|
public String getIssn() {
|
234
|
return issn;
|
235
|
}
|
236
|
|
237
|
public String getEissn() {
|
238
|
return eissn;
|
239
|
}
|
240
|
|
241
|
public String getLissn() {
|
242
|
return lissn;
|
243
|
}
|
244
|
|
245
|
public String getRegisteredby() {
|
246
|
return registeredby;
|
247
|
}
|
248
|
|
249
|
public String getSubjects() {
|
250
|
return subjects;
|
251
|
}
|
252
|
|
253
|
public Boolean isManaged() {
|
254
|
return managed;
|
255
|
}
|
256
|
|
257
|
public Set<Api> getApi() {
|
258
|
return api;
|
259
|
}
|
260
|
|
261
|
public Set<Organization> getOrganizations() {
|
262
|
return organizations;
|
263
|
}
|
264
|
|
265
|
public Set<Identity> getIdentities() {
|
266
|
return identities;
|
267
|
}
|
268
|
|
269
|
public Datasource setId(final String id) {
|
270
|
this.id = id;
|
271
|
return this;
|
272
|
}
|
273
|
|
274
|
public Datasource setOfficialname(final String officialname) {
|
275
|
this.officialname = officialname;
|
276
|
return this;
|
277
|
}
|
278
|
|
279
|
public Datasource setEnglishname(final String englishname) {
|
280
|
this.englishname = englishname;
|
281
|
return this;
|
282
|
}
|
283
|
|
284
|
public Datasource setWebsiteurl(final String websiteurl) {
|
285
|
this.websiteurl = websiteurl;
|
286
|
return this;
|
287
|
}
|
288
|
|
289
|
public Datasource setLogourl(final String logourl) {
|
290
|
this.logourl = logourl;
|
291
|
return this;
|
292
|
}
|
293
|
|
294
|
public Datasource setContactemail(final String contactemail) {
|
295
|
this.contactemail = contactemail;
|
296
|
return this;
|
297
|
}
|
298
|
|
299
|
public Datasource setLatitude(final Double latitude) {
|
300
|
this.latitude = latitude;
|
301
|
return this;
|
302
|
}
|
303
|
|
304
|
public Datasource setLongitude(final Double longitude) {
|
305
|
this.longitude = longitude;
|
306
|
return this;
|
307
|
}
|
308
|
|
309
|
public Datasource setTimezone(final String timezone) {
|
310
|
this.timezone = timezone;
|
311
|
return this;
|
312
|
}
|
313
|
|
314
|
public Datasource setNamespaceprefix(final String namespaceprefix) {
|
315
|
this.namespaceprefix = namespaceprefix;
|
316
|
return this;
|
317
|
}
|
318
|
|
319
|
public Datasource setLanguages(final String languages) {
|
320
|
this.languages = languages;
|
321
|
return this;
|
322
|
}
|
323
|
|
324
|
public Datasource setOd_contenttypes(final String od_contenttypes) {
|
325
|
this.od_contenttypes = od_contenttypes;
|
326
|
return this;
|
327
|
}
|
328
|
|
329
|
public Datasource setCollectedfrom(final String collectedfrom) {
|
330
|
this.collectedfrom = collectedfrom;
|
331
|
return this;
|
332
|
}
|
333
|
|
334
|
public Datasource setDateofvalidation(final Date dateofvalidation) {
|
335
|
this.dateofvalidation = dateofvalidation;
|
336
|
return this;
|
337
|
}
|
338
|
|
339
|
public Datasource setTypology(final String typology) {
|
340
|
this.typology = typology;
|
341
|
return this;
|
342
|
}
|
343
|
|
344
|
public Datasource setProvenanceaction(final String provenanceaction) {
|
345
|
this.provenanceaction = provenanceaction;
|
346
|
return this;
|
347
|
}
|
348
|
|
349
|
public Datasource setDateofcollection(final Date dateofcollection) {
|
350
|
this.dateofcollection = dateofcollection;
|
351
|
return this;
|
352
|
}
|
353
|
|
354
|
public Datasource setPlatform(final String platform) {
|
355
|
this.platform = platform;
|
356
|
return this;
|
357
|
}
|
358
|
|
359
|
public Datasource setActivationId(final String activationId) {
|
360
|
this.activationId = activationId;
|
361
|
return this;
|
362
|
}
|
363
|
|
364
|
public Datasource setDescription(final String description) {
|
365
|
this.description = description;
|
366
|
return this;
|
367
|
}
|
368
|
|
369
|
public Datasource setReleasestartdate(final Date releasestartdate) {
|
370
|
this.releasestartdate = releasestartdate;
|
371
|
return this;
|
372
|
}
|
373
|
|
374
|
public Datasource setReleaseenddate(final Date releaseenddate) {
|
375
|
this.releaseenddate = releaseenddate;
|
376
|
return this;
|
377
|
}
|
378
|
|
379
|
public Datasource setMissionstatementurl(final String missionstatementurl) {
|
380
|
this.missionstatementurl = missionstatementurl;
|
381
|
return this;
|
382
|
}
|
383
|
|
384
|
public Datasource setDataprovider(final Boolean dataprovider) {
|
385
|
this.dataprovider = dataprovider;
|
386
|
return this;
|
387
|
}
|
388
|
|
389
|
public Datasource setServiceprovider(final Boolean serviceprovider) {
|
390
|
this.serviceprovider = serviceprovider;
|
391
|
return this;
|
392
|
}
|
393
|
|
394
|
public Datasource setDatabaseaccesstype(final String databaseaccesstype) {
|
395
|
this.databaseaccesstype = databaseaccesstype;
|
396
|
return this;
|
397
|
}
|
398
|
|
399
|
public Datasource setDatauploadtype(final String datauploadtype) {
|
400
|
this.datauploadtype = datauploadtype;
|
401
|
return this;
|
402
|
}
|
403
|
|
404
|
public Datasource setDatabaseaccessrestriction(final String databaseaccessrestriction) {
|
405
|
this.databaseaccessrestriction = databaseaccessrestriction;
|
406
|
return this;
|
407
|
}
|
408
|
|
409
|
public Datasource setDatauploadrestriction(final String datauploadrestriction) {
|
410
|
this.datauploadrestriction = datauploadrestriction;
|
411
|
return this;
|
412
|
}
|
413
|
|
414
|
public Datasource setVersioning(final Boolean versioning) {
|
415
|
this.versioning = versioning;
|
416
|
return this;
|
417
|
}
|
418
|
|
419
|
public Datasource setCitationguidelineurl(final String citationguidelineurl) {
|
420
|
this.citationguidelineurl = citationguidelineurl;
|
421
|
return this;
|
422
|
}
|
423
|
|
424
|
public Datasource setQualitymanagementkind(final String qualitymanagementkind) {
|
425
|
this.qualitymanagementkind = qualitymanagementkind;
|
426
|
return this;
|
427
|
}
|
428
|
|
429
|
public Datasource setPidsystems(final String pidsystems) {
|
430
|
this.pidsystems = pidsystems;
|
431
|
return this;
|
432
|
}
|
433
|
|
434
|
public Datasource setCertificates(final String certificates) {
|
435
|
this.certificates = certificates;
|
436
|
return this;
|
437
|
}
|
438
|
|
439
|
public Datasource setAggregator(final String aggregator) {
|
440
|
this.aggregator = aggregator;
|
441
|
return this;
|
442
|
}
|
443
|
|
444
|
public Datasource setIssn(final String issn) {
|
445
|
this.issn = issn;
|
446
|
return this;
|
447
|
}
|
448
|
|
449
|
public Datasource setEissn(final String eissn) {
|
450
|
this.eissn = eissn;
|
451
|
return this;
|
452
|
}
|
453
|
|
454
|
public Datasource setLissn(final String lissn) {
|
455
|
this.lissn = lissn;
|
456
|
return this;
|
457
|
}
|
458
|
|
459
|
public Datasource setRegisteredby(final String registeredby) {
|
460
|
this.registeredby = registeredby;
|
461
|
return this;
|
462
|
}
|
463
|
|
464
|
public Datasource setSubjects(final String subjects) {
|
465
|
this.subjects = subjects;
|
466
|
return this;
|
467
|
}
|
468
|
|
469
|
public Datasource setManaged(final Boolean managed) {
|
470
|
this.managed = managed;
|
471
|
return this;
|
472
|
}
|
473
|
|
474
|
public Datasource setApi(final Set<Api> api) {
|
475
|
this.api = api;
|
476
|
return this;
|
477
|
}
|
478
|
|
479
|
public Datasource setOrganizations(final Set<Organization> organizations) {
|
480
|
this.organizations = organizations;
|
481
|
return this;
|
482
|
}
|
483
|
|
484
|
public Datasource setIdentities(final Set<Identity> identities) {
|
485
|
this.identities = identities;
|
486
|
return this;
|
487
|
}
|
488
|
|
489
|
}
|
490
|
|