1
|
package eu.dnetlib.openaire.dsm.domain;
|
2
|
|
3
|
import java.util.Set;
|
4
|
import javax.validation.constraints.Email;
|
5
|
import javax.validation.constraints.NotBlank;
|
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.Length;
|
11
|
|
12
|
/**
|
13
|
* Created by claudio on 12/09/16.
|
14
|
*/
|
15
|
@JsonAutoDetect
|
16
|
@ApiModel(value = "Datasource updatable fields model", description = "provides information about the datasource field that can be updated")
|
17
|
public class DatasourceDetailsUpdate {
|
18
|
|
19
|
@NotBlank
|
20
|
@ApiModelProperty(position = 0)
|
21
|
private String id;
|
22
|
|
23
|
@NotBlank
|
24
|
@Length(max = 300)
|
25
|
@ApiModelProperty(position = 2)
|
26
|
private String officialname;
|
27
|
|
28
|
@NotBlank
|
29
|
@Length(max = 300)
|
30
|
@ApiModelProperty(position = 3)
|
31
|
private String englishname;
|
32
|
|
33
|
@ApiModelProperty(position = 4)
|
34
|
private String websiteurl;
|
35
|
|
36
|
@ApiModelProperty(position = 5)
|
37
|
private String logourl;
|
38
|
|
39
|
@Email
|
40
|
@ApiModelProperty(position = 6)
|
41
|
private String contactemail;
|
42
|
|
43
|
@ApiModelProperty(position = 7)
|
44
|
private Double latitude;
|
45
|
|
46
|
@ApiModelProperty(position = 8)
|
47
|
private Double longitude;
|
48
|
|
49
|
@ApiModelProperty(position = 9)
|
50
|
private String timezone;
|
51
|
|
52
|
@NotBlank
|
53
|
@Length(max = 100)
|
54
|
@ApiModelProperty(position = 13)
|
55
|
private String typology;
|
56
|
|
57
|
@ApiModelProperty(position = 15)
|
58
|
private String platform;
|
59
|
|
60
|
@ApiModelProperty(position = 17)
|
61
|
private String description;
|
62
|
|
63
|
@Email
|
64
|
@ApiModelProperty(position = 21)
|
65
|
private String registeredby;
|
66
|
|
67
|
@ApiModelProperty(position = 25)
|
68
|
private Boolean managed;
|
69
|
|
70
|
@ApiModelProperty(position = 27)
|
71
|
private Set<IdentitiesDetails> identities;
|
72
|
|
73
|
public String getId() {
|
74
|
return id;
|
75
|
}
|
76
|
|
77
|
public String getOfficialname() {
|
78
|
return officialname;
|
79
|
}
|
80
|
|
81
|
public String getEnglishname() {
|
82
|
return englishname;
|
83
|
}
|
84
|
|
85
|
public String getWebsiteurl() {
|
86
|
return websiteurl;
|
87
|
}
|
88
|
|
89
|
public String getLogourl() {
|
90
|
return logourl;
|
91
|
}
|
92
|
|
93
|
public String getContactemail() {
|
94
|
return contactemail;
|
95
|
}
|
96
|
|
97
|
public Double getLatitude() {
|
98
|
return latitude;
|
99
|
}
|
100
|
|
101
|
public Double getLongitude() {
|
102
|
return longitude;
|
103
|
}
|
104
|
|
105
|
public String getTimezone() {
|
106
|
return timezone;
|
107
|
}
|
108
|
|
109
|
public String getTypology() {
|
110
|
return typology;
|
111
|
}
|
112
|
|
113
|
public String getPlatform() {
|
114
|
return platform;
|
115
|
}
|
116
|
|
117
|
public String getDescription() {
|
118
|
return description;
|
119
|
}
|
120
|
|
121
|
public String getRegisteredby() {
|
122
|
return registeredby;
|
123
|
}
|
124
|
|
125
|
public Boolean getManaged() {
|
126
|
return managed;
|
127
|
}
|
128
|
|
129
|
public Set<IdentitiesDetails> getIdentities() {
|
130
|
return identities;
|
131
|
}
|
132
|
|
133
|
public DatasourceDetailsUpdate setId(final String id) {
|
134
|
this.id = id;
|
135
|
return this;
|
136
|
}
|
137
|
|
138
|
public DatasourceDetailsUpdate setOfficialname(final String officialname) {
|
139
|
this.officialname = officialname;
|
140
|
return this;
|
141
|
}
|
142
|
|
143
|
public DatasourceDetailsUpdate setEnglishname(final String englishname) {
|
144
|
this.englishname = englishname;
|
145
|
return this;
|
146
|
}
|
147
|
|
148
|
public DatasourceDetailsUpdate setWebsiteurl(final String websiteurl) {
|
149
|
this.websiteurl = websiteurl;
|
150
|
return this;
|
151
|
}
|
152
|
|
153
|
public DatasourceDetailsUpdate setLogourl(final String logourl) {
|
154
|
this.logourl = logourl;
|
155
|
return this;
|
156
|
}
|
157
|
|
158
|
public DatasourceDetailsUpdate setContactemail(final String contactemail) {
|
159
|
this.contactemail = contactemail;
|
160
|
return this;
|
161
|
}
|
162
|
|
163
|
public DatasourceDetailsUpdate setLatitude(final Double latitude) {
|
164
|
this.latitude = latitude;
|
165
|
return this;
|
166
|
}
|
167
|
|
168
|
public DatasourceDetailsUpdate setLongitude(final Double longitude) {
|
169
|
this.longitude = longitude;
|
170
|
return this;
|
171
|
}
|
172
|
|
173
|
public DatasourceDetailsUpdate setTimezone(final String timezone) {
|
174
|
this.timezone = timezone;
|
175
|
return this;
|
176
|
}
|
177
|
|
178
|
public DatasourceDetailsUpdate setTypology(final String typology) {
|
179
|
this.typology = typology;
|
180
|
return this;
|
181
|
}
|
182
|
|
183
|
public DatasourceDetailsUpdate setPlatform(final String platform) {
|
184
|
this.platform = platform;
|
185
|
return this;
|
186
|
}
|
187
|
|
188
|
public DatasourceDetailsUpdate setDescription(final String description) {
|
189
|
this.description = description;
|
190
|
return this;
|
191
|
}
|
192
|
|
193
|
public DatasourceDetailsUpdate setRegisteredby(final String registeredby) {
|
194
|
this.registeredby = registeredby;
|
195
|
return this;
|
196
|
}
|
197
|
|
198
|
public DatasourceDetailsUpdate setManaged(final Boolean managed) {
|
199
|
this.managed = managed;
|
200
|
return this;
|
201
|
}
|
202
|
|
203
|
public DatasourceDetailsUpdate setIdentities(final Set<IdentitiesDetails> identities) {
|
204
|
this.identities = identities;
|
205
|
return this;
|
206
|
}
|
207
|
|
208
|
}
|
209
|
|