1
|
package eu.dnetlib.openaire.dsm.domain;
|
2
|
|
3
|
import java.sql.Date;
|
4
|
import java.util.Set;
|
5
|
import javax.persistence.Transient;
|
6
|
import javax.validation.constraints.Email;
|
7
|
import javax.validation.constraints.NotBlank;
|
8
|
|
9
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
10
|
import io.swagger.annotations.ApiModel;
|
11
|
import io.swagger.annotations.ApiModelProperty;
|
12
|
import org.hibernate.validator.constraints.Length;
|
13
|
|
14
|
/**
|
15
|
* Created by claudio on 12/09/16.
|
16
|
*/
|
17
|
@JsonAutoDetect
|
18
|
@ApiModel(value = "Datasource model", description = "provides information about the datasource")
|
19
|
public class DatasourceDetails extends DatasourceIgnoredProperties {
|
20
|
|
21
|
@NotBlank
|
22
|
@ApiModelProperty(position = 0)
|
23
|
private String id;
|
24
|
|
25
|
@Transient
|
26
|
@ApiModelProperty(position = 1)
|
27
|
private String openaireId;
|
28
|
|
29
|
@NotBlank
|
30
|
@Length(max = 300)
|
31
|
@ApiModelProperty(position = 2)
|
32
|
private String officialname;
|
33
|
|
34
|
@NotBlank
|
35
|
@Length(max = 300)
|
36
|
@ApiModelProperty(position = 3)
|
37
|
private String englishname;
|
38
|
|
39
|
@ApiModelProperty(position = 4)
|
40
|
private String websiteurl;
|
41
|
|
42
|
@ApiModelProperty(position = 5)
|
43
|
private String logourl;
|
44
|
|
45
|
@Email
|
46
|
@ApiModelProperty(position = 6)
|
47
|
private String contactemail;
|
48
|
|
49
|
@ApiModelProperty(position = 7)
|
50
|
private Double latitude;
|
51
|
|
52
|
@ApiModelProperty(position = 8)
|
53
|
private Double longitude;
|
54
|
|
55
|
@ApiModelProperty(position = 9)
|
56
|
private String timezone;
|
57
|
|
58
|
@NotBlank
|
59
|
@Length(min = 12, max = 12)
|
60
|
@ApiModelProperty(position = 10)
|
61
|
private String namespaceprefix;
|
62
|
|
63
|
@ApiModelProperty(position = 11)
|
64
|
private String languages;
|
65
|
|
66
|
@ApiModelProperty(position = 12)
|
67
|
private Date dateofvalidation;
|
68
|
|
69
|
@NotBlank
|
70
|
@Length(max = 100)
|
71
|
@ApiModelProperty(position = 13)
|
72
|
private String typology;
|
73
|
|
74
|
@ApiModelProperty(position = 14)
|
75
|
private Date dateofcollection;
|
76
|
|
77
|
@ApiModelProperty(position = 15)
|
78
|
private String platform;
|
79
|
|
80
|
@ApiModelProperty(position = 16)
|
81
|
private String activationId;
|
82
|
|
83
|
@ApiModelProperty(position = 17)
|
84
|
private String description;
|
85
|
|
86
|
@ApiModelProperty(position = 18)
|
87
|
private String issn;
|
88
|
|
89
|
@ApiModelProperty(position = 19)
|
90
|
private String eissn;
|
91
|
|
92
|
@ApiModelProperty(position = 20)
|
93
|
private String lissn;
|
94
|
|
95
|
@Email
|
96
|
@ApiModelProperty(position = 21)
|
97
|
private String registeredby;
|
98
|
|
99
|
@ApiModelProperty(position = 22)
|
100
|
private String subjects;
|
101
|
|
102
|
@ApiModelProperty(position = 23)
|
103
|
protected String aggregator = "OPENAIRE";
|
104
|
|
105
|
@ApiModelProperty(position = 24)
|
106
|
protected String collectedfrom;
|
107
|
|
108
|
@ApiModelProperty(position = 25)
|
109
|
private Boolean managed;
|
110
|
|
111
|
@ApiModelProperty(position = 26)
|
112
|
private Set<OrganizationDetails> organizations;
|
113
|
|
114
|
@ApiModelProperty(position = 27)
|
115
|
private Set<IdentitiesDetails> identities;
|
116
|
|
117
|
public String getId() {
|
118
|
return id;
|
119
|
}
|
120
|
|
121
|
public String getOpenaireId() {
|
122
|
return openaireId;
|
123
|
}
|
124
|
|
125
|
public String getOfficialname() {
|
126
|
return officialname;
|
127
|
}
|
128
|
|
129
|
public String getEnglishname() {
|
130
|
return englishname;
|
131
|
}
|
132
|
|
133
|
public String getWebsiteurl() {
|
134
|
return websiteurl;
|
135
|
}
|
136
|
|
137
|
public String getLogourl() {
|
138
|
return logourl;
|
139
|
}
|
140
|
|
141
|
public String getContactemail() {
|
142
|
return contactemail;
|
143
|
}
|
144
|
|
145
|
public Double getLatitude() {
|
146
|
return latitude;
|
147
|
}
|
148
|
|
149
|
public Double getLongitude() {
|
150
|
return longitude;
|
151
|
}
|
152
|
|
153
|
public String getTimezone() {
|
154
|
return timezone;
|
155
|
}
|
156
|
|
157
|
public String getLanguages() {
|
158
|
return languages;
|
159
|
}
|
160
|
|
161
|
public String getNamespaceprefix() {
|
162
|
return namespaceprefix;
|
163
|
}
|
164
|
|
165
|
public Date getDateofvalidation() {
|
166
|
return dateofvalidation;
|
167
|
}
|
168
|
|
169
|
public String getTypology() {
|
170
|
return typology;
|
171
|
}
|
172
|
|
173
|
public Date getDateofcollection() {
|
174
|
return dateofcollection;
|
175
|
}
|
176
|
|
177
|
public String getPlatform() {
|
178
|
return platform;
|
179
|
}
|
180
|
|
181
|
public String getActivationId() {
|
182
|
return activationId;
|
183
|
}
|
184
|
|
185
|
public String getDescription() {
|
186
|
return description;
|
187
|
}
|
188
|
|
189
|
public String getIssn() {
|
190
|
return issn;
|
191
|
}
|
192
|
|
193
|
public String getEissn() {
|
194
|
return eissn;
|
195
|
}
|
196
|
|
197
|
public String getLissn() {
|
198
|
return lissn;
|
199
|
}
|
200
|
|
201
|
public String getRegisteredby() {
|
202
|
return registeredby;
|
203
|
}
|
204
|
|
205
|
public String getSubjects() {
|
206
|
return subjects;
|
207
|
}
|
208
|
|
209
|
public String getAggregator() {
|
210
|
return aggregator;
|
211
|
}
|
212
|
|
213
|
public String getCollectedfrom() {
|
214
|
return collectedfrom;
|
215
|
}
|
216
|
|
217
|
public Boolean getManaged() {
|
218
|
return managed;
|
219
|
}
|
220
|
|
221
|
public Set<OrganizationDetails> getOrganizations() {
|
222
|
return organizations;
|
223
|
}
|
224
|
|
225
|
public Set<IdentitiesDetails> getIdentities() {
|
226
|
return identities;
|
227
|
}
|
228
|
|
229
|
public DatasourceDetails setId(final String id) {
|
230
|
this.id = id;
|
231
|
return this;
|
232
|
}
|
233
|
|
234
|
public DatasourceDetails setOpenaireId(final String openaireId) {
|
235
|
this.openaireId = openaireId;
|
236
|
return this;
|
237
|
}
|
238
|
|
239
|
public DatasourceDetails setOfficialname(final String officialname) {
|
240
|
this.officialname = officialname;
|
241
|
return this;
|
242
|
}
|
243
|
|
244
|
public DatasourceDetails setEnglishname(final String englishname) {
|
245
|
this.englishname = englishname;
|
246
|
return this;
|
247
|
}
|
248
|
|
249
|
public DatasourceDetails setWebsiteurl(final String websiteurl) {
|
250
|
this.websiteurl = websiteurl;
|
251
|
return this;
|
252
|
}
|
253
|
|
254
|
public DatasourceDetails setLogourl(final String logourl) {
|
255
|
this.logourl = logourl;
|
256
|
return this;
|
257
|
}
|
258
|
|
259
|
public DatasourceDetails setContactemail(final String contactemail) {
|
260
|
this.contactemail = contactemail;
|
261
|
return this;
|
262
|
}
|
263
|
|
264
|
public DatasourceDetails setLatitude(final Double latitude) {
|
265
|
this.latitude = latitude;
|
266
|
return this;
|
267
|
}
|
268
|
|
269
|
public DatasourceDetails setLongitude(final Double longitude) {
|
270
|
this.longitude = longitude;
|
271
|
return this;
|
272
|
}
|
273
|
|
274
|
public DatasourceDetails setTimezone(final String timezone) {
|
275
|
this.timezone = timezone;
|
276
|
return this;
|
277
|
}
|
278
|
|
279
|
public DatasourceDetails setLanguages(final String languages) {
|
280
|
this.languages = languages;
|
281
|
return this;
|
282
|
}
|
283
|
|
284
|
public DatasourceDetails setNamespaceprefix(final String namespaceprefix) {
|
285
|
this.namespaceprefix = namespaceprefix;
|
286
|
return this;
|
287
|
}
|
288
|
|
289
|
public DatasourceDetails setDateofvalidation(final Date dateofvalidation) {
|
290
|
this.dateofvalidation = dateofvalidation;
|
291
|
return this;
|
292
|
}
|
293
|
|
294
|
public DatasourceDetails setTypology(final String typology) {
|
295
|
this.typology = typology;
|
296
|
return this;
|
297
|
}
|
298
|
|
299
|
public DatasourceDetails setDateofcollection(final Date dateofcollection) {
|
300
|
this.dateofcollection = dateofcollection;
|
301
|
return this;
|
302
|
}
|
303
|
|
304
|
public DatasourceDetails setPlatform(final String platform) {
|
305
|
this.platform = platform;
|
306
|
return this;
|
307
|
}
|
308
|
|
309
|
public DatasourceDetails setActivationId(final String activationId) {
|
310
|
this.activationId = activationId;
|
311
|
return this;
|
312
|
}
|
313
|
|
314
|
public DatasourceDetails setDescription(final String description) {
|
315
|
this.description = description;
|
316
|
return this;
|
317
|
}
|
318
|
|
319
|
public DatasourceDetails setIssn(final String issn) {
|
320
|
this.issn = issn;
|
321
|
return this;
|
322
|
}
|
323
|
|
324
|
public DatasourceDetails setEissn(final String eissn) {
|
325
|
this.eissn = eissn;
|
326
|
return this;
|
327
|
}
|
328
|
|
329
|
public DatasourceDetails setLissn(final String lissn) {
|
330
|
this.lissn = lissn;
|
331
|
return this;
|
332
|
}
|
333
|
|
334
|
public DatasourceDetails setRegisteredby(final String registeredby) {
|
335
|
this.registeredby = registeredby;
|
336
|
return this;
|
337
|
}
|
338
|
|
339
|
public DatasourceDetails setSubjects(final String subjects) {
|
340
|
this.subjects = subjects;
|
341
|
return this;
|
342
|
}
|
343
|
|
344
|
public DatasourceDetails setAggregator(final String aggregator) {
|
345
|
this.aggregator = aggregator;
|
346
|
return this;
|
347
|
}
|
348
|
|
349
|
public DatasourceDetails setCollectedfrom(final String collectedfrom) {
|
350
|
this.collectedfrom = collectedfrom;
|
351
|
return this;
|
352
|
}
|
353
|
|
354
|
|
355
|
public DatasourceDetails setManaged(final Boolean managed) {
|
356
|
this.managed = managed;
|
357
|
return this;
|
358
|
}
|
359
|
|
360
|
public DatasourceDetails setOrganizations(final Set<OrganizationDetails> organizations) {
|
361
|
this.organizations = organizations;
|
362
|
return this;
|
363
|
}
|
364
|
|
365
|
public DatasourceDetails setIdentities(final Set<IdentitiesDetails> identities) {
|
366
|
this.identities = identities;
|
367
|
return this;
|
368
|
}
|
369
|
|
370
|
}
|
371
|
|