1
|
package eu.dnetlib.enabling.datasources.common;
|
2
|
|
3
|
import javax.xml.bind.annotation.XmlRootElement;
|
4
|
|
5
|
@XmlRootElement
|
6
|
public class SearchApisEntry implements Comparable<SearchApisEntry> {
|
7
|
|
8
|
private String id;
|
9
|
private String compliance;
|
10
|
private String protocol;
|
11
|
private boolean active;
|
12
|
private String repoId = "unknown";
|
13
|
private String repoName = "unknown";
|
14
|
private String alternativeName = "unknown";
|
15
|
private String repoOrganization = "unknown";
|
16
|
private String repoCountry = "-";
|
17
|
private String repoPrefix = "";
|
18
|
private String aggrDate = "";
|
19
|
private int aggrTotal = 0;
|
20
|
|
21
|
public SearchApisEntry() {}
|
22
|
|
23
|
public SearchApisEntry(final String id, final String compliance, final String protocol, final boolean active, final String repoId,
|
24
|
final String repoName, final String repoCountry,
|
25
|
final String repoPrefix, final String aggrDate, final int aggrTotal) {
|
26
|
this.id = id;
|
27
|
this.compliance = compliance;
|
28
|
this.protocol = protocol;
|
29
|
this.active = active;
|
30
|
this.repoId = repoId;
|
31
|
this.repoName = repoName;
|
32
|
this.repoCountry = repoCountry;
|
33
|
this.repoPrefix = repoPrefix;
|
34
|
this.aggrDate = aggrDate;
|
35
|
this.aggrTotal = aggrTotal;
|
36
|
}
|
37
|
|
38
|
public String getId() {
|
39
|
return id;
|
40
|
}
|
41
|
|
42
|
public void setId(final String id) {
|
43
|
this.id = id;
|
44
|
}
|
45
|
|
46
|
public String getCompliance() {
|
47
|
return compliance;
|
48
|
}
|
49
|
|
50
|
public void setCompliance(final String compliance) {
|
51
|
this.compliance = compliance;
|
52
|
}
|
53
|
|
54
|
public boolean isActive() {
|
55
|
return active;
|
56
|
}
|
57
|
|
58
|
public void setActive(final boolean active) {
|
59
|
this.active = active;
|
60
|
}
|
61
|
|
62
|
public String getRepoId() {
|
63
|
return repoId;
|
64
|
}
|
65
|
|
66
|
public void setRepoId(final String repoId) {
|
67
|
this.repoId = repoId;
|
68
|
}
|
69
|
|
70
|
public String getRepoName() {
|
71
|
return repoName;
|
72
|
}
|
73
|
|
74
|
public void setRepoName(final String repoName) {
|
75
|
this.repoName = repoName;
|
76
|
}
|
77
|
|
78
|
public String getRepoCountry() {
|
79
|
return repoCountry;
|
80
|
}
|
81
|
|
82
|
public void setRepoCountry(final String repoCountry) {
|
83
|
this.repoCountry = repoCountry;
|
84
|
}
|
85
|
|
86
|
public String getRepoPrefix() {
|
87
|
return repoPrefix;
|
88
|
}
|
89
|
|
90
|
public void setRepoPrefix(final String repoPrefix) {
|
91
|
this.repoPrefix = repoPrefix;
|
92
|
}
|
93
|
|
94
|
@Override
|
95
|
public int compareTo(final SearchApisEntry e) {
|
96
|
return compliance.compareTo(e.getCompliance());
|
97
|
}
|
98
|
|
99
|
public String getAggrDate() {
|
100
|
return aggrDate;
|
101
|
}
|
102
|
|
103
|
public void setAggrDate(final String aggrDate) {
|
104
|
this.aggrDate = aggrDate;
|
105
|
}
|
106
|
|
107
|
public int getAggrTotal() {
|
108
|
return aggrTotal;
|
109
|
}
|
110
|
|
111
|
public void setAggrTotal(final int aggrTotal) {
|
112
|
this.aggrTotal = aggrTotal;
|
113
|
}
|
114
|
|
115
|
public String getProtocol() {
|
116
|
return protocol;
|
117
|
}
|
118
|
|
119
|
public void setProtocol(final String protocol) {
|
120
|
this.protocol = protocol;
|
121
|
}
|
122
|
|
123
|
public String getAlternativeName() {
|
124
|
return alternativeName;
|
125
|
}
|
126
|
|
127
|
public void setAlternativeName(String alternativeName) {
|
128
|
this.alternativeName = alternativeName;
|
129
|
}
|
130
|
|
131
|
public String getRepoOrganization() {
|
132
|
return repoOrganization;
|
133
|
}
|
134
|
|
135
|
public void setRepoOrganization(String repoOrganization) {
|
136
|
this.repoOrganization = repoOrganization;
|
137
|
}
|
138
|
|
139
|
}
|