1
|
package eu.dnetlib.openaire.exporter.model.datasource;
|
2
|
|
3
|
import java.sql.Date;
|
4
|
import java.util.Set;
|
5
|
|
6
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
7
|
import io.swagger.annotations.ApiModel;
|
8
|
import io.swagger.annotations.ApiModelProperty;
|
9
|
|
10
|
@JsonAutoDetect
|
11
|
@ApiModel(value = "Api model", description = "provides information about the datasource API")
|
12
|
public class ApiDetails extends ApiIgnoredProperties {
|
13
|
|
14
|
@ApiModelProperty(position = 0)
|
15
|
private String id = null;
|
16
|
|
17
|
@ApiModelProperty(position = 1)
|
18
|
private String protocol = null;
|
19
|
|
20
|
@ApiModelProperty(position = 2)
|
21
|
private String datasource = null;
|
22
|
|
23
|
@ApiModelProperty(position = 3)
|
24
|
private String contentdescription = null;
|
25
|
|
26
|
@ApiModelProperty(position = 4)
|
27
|
private String typology = null;
|
28
|
|
29
|
@ApiModelProperty(position = 5)
|
30
|
private String compatibility;
|
31
|
|
32
|
@ApiModelProperty(position = 7)
|
33
|
private String compatibilityOverride;
|
34
|
|
35
|
@ApiModelProperty(position = 8)
|
36
|
private Integer lastCollectionTotal;
|
37
|
|
38
|
@ApiModelProperty(position = 9)
|
39
|
private Date lastCollectionDate;
|
40
|
|
41
|
@ApiModelProperty(position = 10)
|
42
|
private Integer lastAggregationTotal;
|
43
|
|
44
|
@ApiModelProperty(position = 11)
|
45
|
private Date lastAggregationDate;
|
46
|
|
47
|
@ApiModelProperty(position = 12)
|
48
|
private Integer lastDownloadTotal;
|
49
|
|
50
|
@ApiModelProperty(position = 13)
|
51
|
private Date lastDownloadDate;
|
52
|
|
53
|
@ApiModelProperty(position = 14)
|
54
|
private String baseurl;
|
55
|
|
56
|
@ApiModelProperty(position = 15)
|
57
|
protected Boolean removable = false;
|
58
|
|
59
|
@ApiModelProperty(position = 16)
|
60
|
private Set<ApiParamDetails> apiParams;
|
61
|
|
62
|
public String getId() {
|
63
|
return id;
|
64
|
}
|
65
|
|
66
|
public String getProtocol() {
|
67
|
return protocol;
|
68
|
}
|
69
|
|
70
|
public String getDatasource() {
|
71
|
return datasource;
|
72
|
}
|
73
|
|
74
|
public String getContentdescription() {
|
75
|
return contentdescription;
|
76
|
}
|
77
|
|
78
|
public String getTypology() {
|
79
|
return typology;
|
80
|
}
|
81
|
|
82
|
public String getCompatibility() {
|
83
|
return compatibility;
|
84
|
}
|
85
|
|
86
|
public Integer getLastCollectionTotal() {
|
87
|
return lastCollectionTotal;
|
88
|
}
|
89
|
|
90
|
public Date getLastCollectionDate() {
|
91
|
return lastCollectionDate;
|
92
|
}
|
93
|
|
94
|
public Integer getLastAggregationTotal() {
|
95
|
return lastAggregationTotal;
|
96
|
}
|
97
|
|
98
|
public Date getLastAggregationDate() {
|
99
|
return lastAggregationDate;
|
100
|
}
|
101
|
|
102
|
public Integer getLastDownloadTotal() {
|
103
|
return lastDownloadTotal;
|
104
|
}
|
105
|
|
106
|
public Date getLastDownloadDate() {
|
107
|
return lastDownloadDate;
|
108
|
}
|
109
|
|
110
|
public String getBaseurl() {
|
111
|
return baseurl;
|
112
|
}
|
113
|
|
114
|
public ApiDetails setId(final String id) {
|
115
|
this.id = id;
|
116
|
return this;
|
117
|
}
|
118
|
|
119
|
public ApiDetails setProtocol(final String protocol) {
|
120
|
this.protocol = protocol;
|
121
|
return this;
|
122
|
}
|
123
|
|
124
|
public ApiDetails setDatasource(final String datasource) {
|
125
|
this.datasource = datasource;
|
126
|
return this;
|
127
|
}
|
128
|
|
129
|
public ApiDetails setContentdescription(final String contentdescription) {
|
130
|
this.contentdescription = contentdescription;
|
131
|
return this;
|
132
|
}
|
133
|
|
134
|
public ApiDetails setTypology(final String typology) {
|
135
|
this.typology = typology;
|
136
|
return this;
|
137
|
}
|
138
|
|
139
|
public ApiDetails setCompatibility(final String compatibility) {
|
140
|
this.compatibility = compatibility;
|
141
|
return this;
|
142
|
}
|
143
|
|
144
|
public ApiDetails setLastCollectionTotal(final Integer lastCollectionTotal) {
|
145
|
this.lastCollectionTotal = lastCollectionTotal;
|
146
|
return this;
|
147
|
}
|
148
|
|
149
|
public ApiDetails setLastCollectionDate(final Date lastCollectionDate) {
|
150
|
this.lastCollectionDate = lastCollectionDate;
|
151
|
return this;
|
152
|
}
|
153
|
|
154
|
public ApiDetails setLastAggregationTotal(final Integer lastAggregationTotal) {
|
155
|
this.lastAggregationTotal = lastAggregationTotal;
|
156
|
return this;
|
157
|
}
|
158
|
|
159
|
public ApiDetails setLastAggregationDate(final Date lastAggregationDate) {
|
160
|
this.lastAggregationDate = lastAggregationDate;
|
161
|
return this;
|
162
|
}
|
163
|
|
164
|
public ApiDetails setLastDownloadTotal(final Integer lastDownloadTotal) {
|
165
|
this.lastDownloadTotal = lastDownloadTotal;
|
166
|
return this;
|
167
|
}
|
168
|
|
169
|
public ApiDetails setLastDownloadDate(final Date lastDownloadDate) {
|
170
|
this.lastDownloadDate = lastDownloadDate;
|
171
|
return this;
|
172
|
}
|
173
|
|
174
|
public ApiDetails setBaseurl(final String baseurl) {
|
175
|
this.baseurl = baseurl;
|
176
|
return this;
|
177
|
}
|
178
|
|
179
|
public Set<ApiParamDetails> getApiParams() {
|
180
|
return apiParams;
|
181
|
}
|
182
|
|
183
|
public void setApiParams(final Set<ApiParamDetails> apiParams) {
|
184
|
this.apiParams = apiParams;
|
185
|
}
|
186
|
|
187
|
public String getCompatibilityOverride() {
|
188
|
return compatibilityOverride;
|
189
|
}
|
190
|
|
191
|
public void setCompatibilityOverride(final String compatibilityOverride) {
|
192
|
this.compatibilityOverride = compatibilityOverride;
|
193
|
}
|
194
|
|
195
|
public Boolean getRemovable() {
|
196
|
return removable;
|
197
|
}
|
198
|
|
199
|
public void setRemovable(final Boolean removable) {
|
200
|
this.removable = removable;
|
201
|
}
|
202
|
}
|