Project

General

Profile

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 io.swagger.annotations.ApiModel;
8

    
9
/**
10
 * Datasource
11
 */
12
@Entity
13
@Table(name = "dsm_datasources")
14
//@JsonAutoDetect
15
@ApiModel(value = "Datasource model", description = "provides datasource details")
16
public class Datasource {
17

    
18
	@Id
19
	private String id = null;
20
	private String officialname = null;
21
	private String englishname = null;
22
	private String websiteurl = null;
23
	private String logourl = null;
24
	private String contactemail = null;
25
	private Double latitude;
26
	private Double longitude;
27
	private String timezone = null;
28

    
29
	@Column(name = "namespaceprefix", columnDefinition = "bpchar(12)")
30
	private String namespaceprefix;
31

    
32
	private String languages;
33

    
34
	private String od_contenttypes;
35
	private String collectedfrom = null;
36
	private Date dateofvalidation = null;
37
	private String typology = null;
38
	private String provenanceaction;
39
	private Date dateofcollection;
40
	private String platform;
41
	private String activationId;
42
	private String description = null;
43

    
44
	private Date releasestartdate;
45
	private Date releaseenddate;
46
	private String missionstatementurl;
47
	private Boolean dataprovider;
48
	private Boolean serviceprovider;
49

    
50
	private String databaseaccesstype;
51
	private String datauploadtype;
52
	private String databaseaccessrestriction;
53
	private String datauploadrestriction;
54

    
55
	private Boolean versioning;
56
	private String citationguidelineurl;
57
	private String qualitymanagementkind;
58
	private String pidsystems;
59

    
60
	private String certificates;
61
	private String aggregator;
62

    
63
	private String issn = null;
64
	private String eissn = null;
65
	private String lissn = null;
66

    
67
	private String registeredby = null;
68

    
69
	private String subjects;
70

    
71
	private Boolean managed;
72

    
73
	/*
74
	@JsonIgnore
75
	@OneToMany(mappedBy = "datasource", cascade = CascadeType.ALL, fetch = FetchType.EAGER)
76
	private Set<Api> api = null;
77
	*/
78

    
79
	@ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.EAGER)
80
	@JoinTable(
81
			name = "dsm_datasource_organization",
82
			joinColumns = @JoinColumn(name="datasource"),
83
			inverseJoinColumns = @JoinColumn(name="organization"))
84
	private Set<Organization> organizations;
85

    
86
	@ManyToMany(
87
			cascade = { CascadeType.PERSIST, CascadeType.MERGE },
88
	        fetch = FetchType.EAGER )
89
	@JoinTable(
90
			name = "dsm_datasourcepids",
91
			joinColumns = @JoinColumn(name = "datasource"),
92
			inverseJoinColumns = @JoinColumn(name="pid"))
93
	private Set<Identity> identities;
94

    
95
	public Datasource() {}
96

    
97
	public String getId() {
98
		return id;
99
	}
100

    
101
	public String getOfficialname() {
102
		return officialname;
103
	}
104

    
105
	public String getEnglishname() {
106
		return englishname;
107
	}
108

    
109
	public String getWebsiteurl() {
110
		return websiteurl;
111
	}
112

    
113
	public String getLogourl() {
114
		return logourl;
115
	}
116

    
117
	public String getContactemail() {
118
		return contactemail;
119
	}
120

    
121
	public Double getLatitude() {
122
		return latitude;
123
	}
124

    
125
	public Double getLongitude() {
126
		return longitude;
127
	}
128

    
129
	public String getTimezone() {
130
		return timezone;
131
	}
132

    
133
	public String getNamespaceprefix() {
134
		return namespaceprefix;
135
	}
136

    
137
	public String getLanguages() {
138
		return languages;
139
	}
140

    
141
	public String getOd_contenttypes() {
142
		return od_contenttypes;
143
	}
144

    
145
	public String getCollectedfrom() {
146
		return collectedfrom;
147
	}
148

    
149
	public Date getDateofvalidation() {
150
		return dateofvalidation;
151
	}
152

    
153
	public String getTypology() {
154
		return typology;
155
	}
156

    
157
	public String getProvenanceaction() {
158
		return provenanceaction;
159
	}
160

    
161
	public Date getDateofcollection() {
162
		return dateofcollection;
163
	}
164

    
165
	public String getPlatform() {
166
		return platform;
167
	}
168

    
169
	public String getActivationId() {
170
		return activationId;
171
	}
172

    
173
	public String getDescription() {
174
		return description;
175
	}
176

    
177
	public Date getReleasestartdate() {
178
		return releasestartdate;
179
	}
180

    
181
	public Date getReleaseenddate() {
182
		return releaseenddate;
183
	}
184

    
185
	public String getMissionstatementurl() {
186
		return missionstatementurl;
187
	}
188

    
189
	public Boolean isDataprovider() {
190
		return dataprovider;
191
	}
192

    
193
	public Boolean isServiceprovider() {
194
		return serviceprovider;
195
	}
196

    
197
	public String getDatabaseaccesstype() {
198
		return databaseaccesstype;
199
	}
200

    
201
	public String getDatauploadtype() {
202
		return datauploadtype;
203
	}
204

    
205
	public String getDatabaseaccessrestriction() {
206
		return databaseaccessrestriction;
207
	}
208

    
209
	public String getDatauploadrestriction() {
210
		return datauploadrestriction;
211
	}
212

    
213
	public Boolean isVersioning() {
214
		return versioning;
215
	}
216

    
217
	public String getCitationguidelineurl() {
218
		return citationguidelineurl;
219
	}
220

    
221
	public String getQualitymanagementkind() {
222
		return qualitymanagementkind;
223
	}
224

    
225
	public String getPidsystems() {
226
		return pidsystems;
227
	}
228

    
229
	public String getCertificates() {
230
		return certificates;
231
	}
232

    
233
	public String getAggregator() {
234
		return aggregator;
235
	}
236

    
237
	public String getIssn() {
238
		return issn;
239
	}
240

    
241
	public String getEissn() {
242
		return eissn;
243
	}
244

    
245
	public String getLissn() {
246
		return lissn;
247
	}
248

    
249
	public String getRegisteredby() {
250
		return registeredby;
251
	}
252

    
253
	public String getSubjects() {
254
		return subjects;
255
	}
256

    
257
	public Boolean isManaged() {
258
		return managed;
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 setOrganizations(final Set<Organization> organizations) {
475
		this.organizations = organizations;
476
		return this;
477
	}
478

    
479
	public Datasource setIdentities(final Set<Identity> identities) {
480
		this.identities = identities;
481
		return this;
482
	}
483

    
484
}
485

    
(7-7/12)