1
|
package eu.dnetlib.domain.data;
|
2
|
|
3
|
import com.google.gwt.user.client.rpc.IsSerializable;
|
4
|
|
5
|
import java.io.Serializable;
|
6
|
import java.util.HashMap;
|
7
|
import java.util.Map;
|
8
|
|
9
|
public class RepositoryInterface implements Serializable, IsSerializable {
|
10
|
|
11
|
private static final long serialVersionUID = 8013272950607614479L;
|
12
|
|
13
|
// FOR VALIDATOR
|
14
|
private String desiredCompatibilityLevel;
|
15
|
private String complianceName;
|
16
|
private String upgradeToV3;
|
17
|
private boolean deleteApi;
|
18
|
private String accessSet;
|
19
|
private String accessFormat;
|
20
|
private String metadataIdentifierPath;
|
21
|
private String lastCollectionDate;
|
22
|
private String nextScheduledExecution;
|
23
|
|
24
|
private String status;
|
25
|
private String collectedFrom;
|
26
|
|
27
|
// FOR DATASOURCE MANAGER SERVICE
|
28
|
private String id;
|
29
|
private String typology;
|
30
|
private String compliance;
|
31
|
private String contentDescription;
|
32
|
private String accessProtocol;
|
33
|
private String baseUrl;
|
34
|
private boolean active = false;
|
35
|
private boolean removable = true;
|
36
|
private Map<String, String> accessParams = new HashMap<String, String>();
|
37
|
private Map<String, String> extraFields = new HashMap<String, String>();
|
38
|
|
39
|
public String getId() {
|
40
|
return id;
|
41
|
}
|
42
|
|
43
|
public void setId(String id) {
|
44
|
this.id = id;
|
45
|
}
|
46
|
|
47
|
public String getTypology() {
|
48
|
return typology;
|
49
|
}
|
50
|
|
51
|
public void setTypology(String typology) {
|
52
|
this.typology = typology;
|
53
|
}
|
54
|
|
55
|
public String getCompliance() {
|
56
|
return compliance;
|
57
|
}
|
58
|
|
59
|
public void setCompliance(String compliance) {
|
60
|
this.compliance = compliance;
|
61
|
}
|
62
|
|
63
|
public String getContentDescription() {
|
64
|
return contentDescription;
|
65
|
}
|
66
|
|
67
|
public void setContentDescription(String contentDescription) {
|
68
|
this.contentDescription = contentDescription;
|
69
|
}
|
70
|
|
71
|
public String getAccessProtocol() {
|
72
|
return accessProtocol;
|
73
|
}
|
74
|
|
75
|
public void setAccessProtocol(String accessProtocol) {
|
76
|
this.accessProtocol = accessProtocol;
|
77
|
}
|
78
|
|
79
|
public String getBaseUrl() {
|
80
|
return baseUrl;
|
81
|
}
|
82
|
|
83
|
public void setBaseUrl(String baseUrl) {
|
84
|
this.baseUrl = baseUrl;
|
85
|
}
|
86
|
|
87
|
public boolean isActive() {
|
88
|
return active;
|
89
|
}
|
90
|
|
91
|
public void setActive(boolean active) {
|
92
|
this.active = active;
|
93
|
}
|
94
|
|
95
|
public boolean isRemovable() {
|
96
|
return removable;
|
97
|
}
|
98
|
|
99
|
public void setRemovable(boolean removable) {
|
100
|
this.removable = removable;
|
101
|
}
|
102
|
|
103
|
public Map<String, String> getAccessParams() {
|
104
|
return accessParams;
|
105
|
}
|
106
|
|
107
|
public void setAccessParams(Map<String, String> accessParams) {
|
108
|
this.accessParams = accessParams;
|
109
|
}
|
110
|
|
111
|
public Map<String, String> getExtraFields() {
|
112
|
return extraFields;
|
113
|
}
|
114
|
|
115
|
public void setExtraFields(Map<String, String> extraFields) {
|
116
|
this.extraFields = extraFields;
|
117
|
}
|
118
|
|
119
|
public String getAccessSet() {
|
120
|
this.accessSet = accessParams.get("set");
|
121
|
return accessSet;
|
122
|
}
|
123
|
|
124
|
public void setAccessSet(String accessSet) {
|
125
|
this.accessSet = accessSet;
|
126
|
this.accessParams.put("set", accessSet);
|
127
|
}
|
128
|
|
129
|
public void removeAccessSet() {
|
130
|
accessParams.remove("set");
|
131
|
}
|
132
|
|
133
|
public String getAccessFormat() {
|
134
|
this.accessFormat = accessParams.get("format");
|
135
|
return accessFormat;
|
136
|
}
|
137
|
|
138
|
public void setAccessFormat(String accessFormat) {
|
139
|
this.accessFormat = accessFormat;
|
140
|
this.accessParams.put("format", accessFormat);
|
141
|
}
|
142
|
|
143
|
public String getLastCollectionDate() {
|
144
|
this.lastCollectionDate = extraFields.get("last_collection_date");
|
145
|
return lastCollectionDate;
|
146
|
}
|
147
|
|
148
|
public void setLastCollectionDate(String lastCollectionDate) {
|
149
|
this.lastCollectionDate = lastCollectionDate;
|
150
|
this.extraFields.put("last_collection_date", lastCollectionDate);
|
151
|
}
|
152
|
|
153
|
public String getStatus() {
|
154
|
this.status = extraFields.get("status");
|
155
|
return status;
|
156
|
}
|
157
|
|
158
|
public void setStatus(String status) {
|
159
|
this.status = status;
|
160
|
this.extraFields.put("status", status);
|
161
|
}
|
162
|
|
163
|
public String getNextScheduledExecution() {
|
164
|
return nextScheduledExecution;
|
165
|
}
|
166
|
|
167
|
public void setNextScheduledExecution(String nextScheduledExecution) {
|
168
|
this.nextScheduledExecution = nextScheduledExecution;
|
169
|
}
|
170
|
|
171
|
public String getMetadataIdentifierPath() {
|
172
|
this.metadataIdentifierPath = extraFields.get("metadata_identifier_path");
|
173
|
return metadataIdentifierPath;
|
174
|
}
|
175
|
|
176
|
public void setMetadataIdentifierPath(String metadataIdentifierPath) {
|
177
|
this.metadataIdentifierPath = metadataIdentifierPath;
|
178
|
this.extraFields.put("metadata_identifier_path", metadataIdentifierPath);
|
179
|
}
|
180
|
|
181
|
public String getUpgradeToV3() {
|
182
|
return upgradeToV3;
|
183
|
}
|
184
|
|
185
|
public void setUpgradeToV3(String upgradeToV3) {
|
186
|
this.upgradeToV3 = upgradeToV3;
|
187
|
}
|
188
|
|
189
|
public boolean isDeleteApi() {
|
190
|
return deleteApi;
|
191
|
}
|
192
|
|
193
|
public void setDeleteApi(boolean deleteApi) {
|
194
|
this.deleteApi = deleteApi;
|
195
|
}
|
196
|
|
197
|
public String getDesiredCompatibilityLevel() {
|
198
|
return desiredCompatibilityLevel;
|
199
|
}
|
200
|
|
201
|
public void setDesiredCompatibilityLevel(String desiredCompatibilityLevel) {
|
202
|
this.desiredCompatibilityLevel = desiredCompatibilityLevel;
|
203
|
}
|
204
|
|
205
|
public String getComplianceName() {
|
206
|
return complianceName;
|
207
|
}
|
208
|
|
209
|
public void setComplianceName(String complianceName) {
|
210
|
this.complianceName = complianceName;
|
211
|
}
|
212
|
|
213
|
public String getCollectedFrom() {
|
214
|
return collectedFrom;
|
215
|
}
|
216
|
|
217
|
public void setCollectedFrom(String collectedFrom) {
|
218
|
this.collectedFrom = collectedFrom;
|
219
|
}
|
220
|
}
|