Project

General

Profile

1
package eu.dnetlib.openaire.exporter.model.datasource;
2

    
3
import java.sql.Date;
4
import java.util.Set;
5
import javax.persistence.Transient;
6

    
7
import com.fasterxml.jackson.annotation.JsonAutoDetect;
8
import io.swagger.annotations.ApiModel;
9
import io.swagger.annotations.ApiModelProperty;
10
import org.hibernate.validator.constraints.Email;
11
import org.hibernate.validator.constraints.Length;
12
import org.hibernate.validator.constraints.NotBlank;
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

    
106
	@ApiModelProperty(position = 23)
107
	private Boolean managed;
108

    
109
	@ApiModelProperty(position = 24)
110
	private Set<OrganizationDetails> organizations;
111

    
112
	@ApiModelProperty(position = 25)
113
	private Set<IdentitiesDetails> identities;
114

    
115
	public String getId() {
116
		return id;
117
	}
118

    
119
	public String getOpenaireId() {
120
		return openaireId;
121
	}
122

    
123
	public String getOfficialname() {
124
		return officialname;
125
	}
126

    
127
	public String getEnglishname() {
128
		return englishname;
129
	}
130

    
131
	public String getWebsiteurl() {
132
		return websiteurl;
133
	}
134

    
135
	public String getLogourl() {
136
		return logourl;
137
	}
138

    
139
	public String getContactemail() {
140
		return contactemail;
141
	}
142

    
143
	public Double getLatitude() {
144
		return latitude;
145
	}
146

    
147
	public Double getLongitude() {
148
		return longitude;
149
	}
150

    
151
	public String getTimezone() {
152
		return timezone;
153
	}
154

    
155
	public String getLanguages() {
156
		return languages;
157
	}
158

    
159
	public String getNamespaceprefix() {
160
		return namespaceprefix;
161
	}
162

    
163
	public Date getDateofvalidation() {
164
		return dateofvalidation;
165
	}
166

    
167
	public String getTypology() {
168
		return typology;
169
	}
170

    
171
	public Date getDateofcollection() {
172
		return dateofcollection;
173
	}
174

    
175
	public String getPlatform() {
176
		return platform;
177
	}
178

    
179
	public String getActivationId() {
180
		return activationId;
181
	}
182

    
183
	public String getDescription() {
184
		return description;
185
	}
186

    
187
	public String getIssn() {
188
		return issn;
189
	}
190

    
191
	public String getEissn() {
192
		return eissn;
193
	}
194

    
195
	public String getLissn() {
196
		return lissn;
197
	}
198

    
199
	public String getRegisteredby() {
200
		return registeredby;
201
	}
202

    
203
	public String getSubjects() {
204
		return subjects;
205
	}
206

    
207
	public String getAggregator() {
208
		return aggregator;
209
	}
210

    
211
	public Boolean getManaged() {
212
		return managed;
213
	}
214

    
215
	public Set<OrganizationDetails> getOrganizations() {
216
		return organizations;
217
	}
218

    
219
	public Set<IdentitiesDetails> getIdentities() {
220
		return identities;
221
	}
222

    
223
	public DatasourceDetails setId(final String id) {
224
		this.id = id;
225
		return this;
226
	}
227

    
228
	public DatasourceDetails setOpenaireId(final String openaireId) {
229
		this.openaireId = openaireId;
230
		return this;
231
	}
232

    
233
	public DatasourceDetails setOfficialname(final String officialname) {
234
		this.officialname = officialname;
235
		return this;
236
	}
237

    
238
	public DatasourceDetails setEnglishname(final String englishname) {
239
		this.englishname = englishname;
240
		return this;
241
	}
242

    
243
	public DatasourceDetails setWebsiteurl(final String websiteurl) {
244
		this.websiteurl = websiteurl;
245
		return this;
246
	}
247

    
248
	public DatasourceDetails setLogourl(final String logourl) {
249
		this.logourl = logourl;
250
		return this;
251
	}
252

    
253
	public DatasourceDetails setContactemail(final String contactemail) {
254
		this.contactemail = contactemail;
255
		return this;
256
	}
257

    
258
	public DatasourceDetails setLatitude(final Double latitude) {
259
		this.latitude = latitude;
260
		return this;
261
	}
262

    
263
	public DatasourceDetails setLongitude(final Double longitude) {
264
		this.longitude = longitude;
265
		return this;
266
	}
267

    
268
	public DatasourceDetails setTimezone(final String timezone) {
269
		this.timezone = timezone;
270
		return this;
271
	}
272

    
273
	public DatasourceDetails setLanguages(final String languages) {
274
		this.languages = languages;
275
		return this;
276
	}
277

    
278
	public DatasourceDetails setNamespaceprefix(final String namespaceprefix) {
279
		this.namespaceprefix = namespaceprefix;
280
		return this;
281
	}
282

    
283
	public DatasourceDetails setDateofvalidation(final Date dateofvalidation) {
284
		this.dateofvalidation = dateofvalidation;
285
		return this;
286
	}
287

    
288
	public DatasourceDetails setTypology(final String typology) {
289
		this.typology = typology;
290
		return this;
291
	}
292

    
293
	public DatasourceDetails setDateofcollection(final Date dateofcollection) {
294
		this.dateofcollection = dateofcollection;
295
		return this;
296
	}
297

    
298
	public DatasourceDetails setPlatform(final String platform) {
299
		this.platform = platform;
300
		return this;
301
	}
302

    
303
	public DatasourceDetails setActivationId(final String activationId) {
304
		this.activationId = activationId;
305
		return this;
306
	}
307

    
308
	public DatasourceDetails setDescription(final String description) {
309
		this.description = description;
310
		return this;
311
	}
312

    
313
	public DatasourceDetails setIssn(final String issn) {
314
		this.issn = issn;
315
		return this;
316
	}
317

    
318
	public DatasourceDetails setEissn(final String eissn) {
319
		this.eissn = eissn;
320
		return this;
321
	}
322

    
323
	public DatasourceDetails setLissn(final String lissn) {
324
		this.lissn = lissn;
325
		return this;
326
	}
327

    
328
	public DatasourceDetails setRegisteredby(final String registeredby) {
329
		this.registeredby = registeredby;
330
		return this;
331
	}
332

    
333
	public DatasourceDetails setSubjects(final String subjects) {
334
		this.subjects = subjects;
335
		return this;
336
	}
337

    
338
	public DatasourceDetails setAggregator(final String aggregator) {
339
		this.aggregator = aggregator;
340
		return this;
341
	}
342

    
343
	public DatasourceDetails setManaged(final Boolean managed) {
344
		this.managed = managed;
345
		return this;
346
	}
347

    
348
	public DatasourceDetails setOrganizations(final Set<OrganizationDetails> organizations) {
349
		this.organizations = organizations;
350
		return this;
351
	}
352

    
353
	public DatasourceDetails setIdentities(final Set<IdentitiesDetails> identities) {
354
		this.identities = identities;
355
		return this;
356
	}
357

    
358
}
359

    
(6-6/17)