1 |
48332
|
claudio.at
|
package eu.dnetlib.openaire.exporter.datasource.clients;
|
2 |
44743
|
claudio.at
|
|
3 |
49994
|
claudio.at
|
import java.util.List;
|
4 |
44743
|
claudio.at
|
|
5 |
49994
|
claudio.at
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
6 |
|
|
import eu.dnetlib.openaire.exporter.model.datasource.DatasourceInfo;
|
7 |
|
|
import eu.dnetlib.openaire.exporter.model.datasource.db.ApiDbEntry;
|
8 |
|
|
import eu.dnetlib.openaire.exporter.vocabularies.Country;
|
9 |
|
|
import io.swagger.annotations.ApiModel;
|
10 |
|
|
import io.swagger.annotations.ApiModelProperty;
|
11 |
44743
|
claudio.at
|
|
12 |
|
|
/**
|
13 |
|
|
* Created by claudio on 30/11/2016.
|
14 |
|
|
*/
|
15 |
49994
|
claudio.at
|
@JsonAutoDetect
|
16 |
|
|
@ApiModel(value = "DatasourceManager response model", description = "provides information about the DatasourceManager responses")
|
17 |
|
|
public class Response {
|
18 |
44743
|
claudio.at
|
|
19 |
49994
|
claudio.at
|
@ApiModelProperty(position = 1)
|
20 |
|
|
private Header header;
|
21 |
44743
|
claudio.at
|
|
22 |
49994
|
claudio.at
|
@ApiModelProperty(position = 2)
|
23 |
|
|
private List<DatasourceInfo> datasourceInfo;
|
24 |
44743
|
claudio.at
|
|
25 |
49994
|
claudio.at
|
@ApiModelProperty(position = 3)
|
26 |
|
|
private List<ApiDbEntry> apiResponse;
|
27 |
|
|
|
28 |
|
|
@ApiModelProperty(position = 4)
|
29 |
|
|
private List<Country> countries;
|
30 |
|
|
|
31 |
|
|
@ApiModelProperty(position = 5)
|
32 |
|
|
private List<String> datasourceIds;
|
33 |
|
|
|
34 |
|
|
public Header getHeader() {
|
35 |
|
|
return this.header;
|
36 |
44743
|
claudio.at
|
}
|
37 |
|
|
|
38 |
49994
|
claudio.at
|
public Response setHeader(final Header header) {
|
39 |
|
|
this.header = header;
|
40 |
|
|
return this;
|
41 |
44743
|
claudio.at
|
}
|
42 |
|
|
|
43 |
49994
|
claudio.at
|
public List<DatasourceInfo> getDatasourceInfo() {
|
44 |
|
|
return datasourceInfo;
|
45 |
|
|
}
|
46 |
|
|
|
47 |
|
|
public Response setDatasourceInfo(final List<DatasourceInfo> datasourceInfo) {
|
48 |
|
|
this.datasourceInfo = datasourceInfo;
|
49 |
44743
|
claudio.at
|
return this;
|
50 |
|
|
}
|
51 |
|
|
|
52 |
49994
|
claudio.at
|
public List<ApiDbEntry> getApiResponse() {
|
53 |
|
|
return this.apiResponse;
|
54 |
|
|
}
|
55 |
|
|
|
56 |
|
|
public Response setApiResponse(final List<ApiDbEntry> apiResponse) {
|
57 |
|
|
this.apiResponse = apiResponse;
|
58 |
44743
|
claudio.at
|
return this;
|
59 |
|
|
}
|
60 |
49994
|
claudio.at
|
|
61 |
|
|
public List<Country> getCountries() {
|
62 |
|
|
return this.countries;
|
63 |
|
|
}
|
64 |
|
|
|
65 |
|
|
public Response setCountries(final List<Country> countries) {
|
66 |
|
|
this.countries = countries;
|
67 |
|
|
return this;
|
68 |
|
|
}
|
69 |
|
|
|
70 |
|
|
public List<String> getDatasourceIds() {
|
71 |
|
|
return datasourceIds;
|
72 |
|
|
}
|
73 |
|
|
|
74 |
|
|
public Response setDatasourceIds(final List<String> datasourceIds) {
|
75 |
|
|
this.datasourceIds = datasourceIds;
|
76 |
|
|
return this;
|
77 |
|
|
}
|
78 |
44743
|
claudio.at
|
}
|