Project

General

Profile

1
package eu.dnetlib.domain.data;
2

    
3

    
4
import java.util.HashMap;
5
import java.util.Map;
6

    
7
public class RepositoryInterface{
8

    
9
    private static final long serialVersionUID = 8013272950607614479L;
10

    
11
    // FOR VALIDATOR
12
    private String desiredCompatibilityLevel;
13
    private String complianceName;
14
    private String upgradeToV3;
15
    private boolean deleteApi;
16
    private String accessSet;
17
    private String accessFormat;
18
    private String metadataIdentifierPath;
19
    private String lastCollectionDate;
20
    private String nextScheduledExecution;
21

    
22
    private String status;
23
    private String collectedFrom;
24

    
25
    // FOR DATASOURCE MANAGER SERVICE
26
    private String id;
27
    private String typology;
28
    private String compliance;
29
    private String contentDescription;
30
    private String accessProtocol;
31
    private String baseUrl;
32
    private boolean active = false;
33
    private boolean removable = true;
34
    private Map<String, String> accessParams = new HashMap<String, String>();
35
    private Map<String, String> extraFields = new HashMap<String, String>();
36

    
37
    public String getId() {
38
        return id;
39
    }
40

    
41
    public void setId(String id) {
42
        this.id = id;
43
    }
44

    
45
    public String getTypology() {
46
        return typology;
47
    }
48

    
49
    public void setTypology(String typology) {
50
        this.typology = typology;
51
    }
52

    
53
    public String getCompliance() {
54
        return compliance;
55
    }
56

    
57
    public void setCompliance(String compliance) {
58
        this.compliance = compliance;
59
    }
60

    
61
    public String getContentDescription() {
62
        return contentDescription;
63
    }
64

    
65
    public void setContentDescription(String contentDescription) {
66
        this.contentDescription = contentDescription;
67
    }
68

    
69
    public String getAccessProtocol() {
70
        return accessProtocol;
71
    }
72

    
73
    public void setAccessProtocol(String accessProtocol) {
74
        this.accessProtocol = accessProtocol;
75
    }
76

    
77
    public String getBaseUrl() {
78
        return baseUrl;
79
    }
80

    
81
    public void setBaseUrl(String baseUrl) {
82
        this.baseUrl = baseUrl;
83
    }
84

    
85
    public boolean isActive() {
86
        return active;
87
    }
88

    
89
    public void setActive(boolean active) {
90
        this.active = active;
91
    }
92

    
93
    public boolean isRemovable() {
94
        return removable;
95
    }
96

    
97
    public void setRemovable(boolean removable) {
98
        this.removable = removable;
99
    }
100

    
101
    public Map<String, String> getAccessParams() {
102
        return accessParams;
103
    }
104

    
105
    public void setAccessParams(Map<String, String> accessParams) {
106
        this.accessParams = accessParams;
107
    }
108

    
109
    public Map<String, String> getExtraFields() {
110
        return extraFields;
111
    }
112

    
113
    public void setExtraFields(Map<String, String> extraFields) {
114
        this.extraFields = extraFields;
115
    }
116

    
117
    public String getAccessSet() {
118
        this.accessSet = accessParams.get("set");
119
        return accessSet;
120
    }
121

    
122
    public void setAccessSet(String accessSet) {
123
        this.accessSet = accessSet;
124
        this.accessParams.put("set", accessSet);
125
    }
126

    
127
    public void removeAccessSet() {
128
        accessParams.remove("set");
129
    }
130

    
131
    public String getAccessFormat() {
132
        this.accessFormat = accessParams.get("format");
133
        return accessFormat;
134
    }
135

    
136
    public void setAccessFormat(String accessFormat) {
137
        this.accessFormat = accessFormat;
138
        this.accessParams.put("format", accessFormat);
139
    }
140

    
141
    public String getLastCollectionDate() {
142
        this.lastCollectionDate = extraFields.get("last_collection_date");
143
        return lastCollectionDate;
144
    }
145

    
146
    public void setLastCollectionDate(String lastCollectionDate) {
147
        this.lastCollectionDate = lastCollectionDate;
148
        this.extraFields.put("last_collection_date", lastCollectionDate);
149
    }
150

    
151
    public String getStatus() {
152
        this.status = extraFields.get("status");
153
        return status;
154
    }
155

    
156
    public void setStatus(String status) {
157
        this.status = status;
158
        this.extraFields.put("status", status);
159
    }
160

    
161
    public String getNextScheduledExecution() {
162
        return nextScheduledExecution;
163
    }
164

    
165
    public void setNextScheduledExecution(String nextScheduledExecution) {
166
        this.nextScheduledExecution = nextScheduledExecution;
167
    }
168

    
169
    public String getMetadataIdentifierPath() {
170
        this.metadataIdentifierPath = extraFields.get("metadata_identifier_path");
171
        return metadataIdentifierPath;
172
    }
173

    
174
    public void setMetadataIdentifierPath(String metadataIdentifierPath) {
175
        this.metadataIdentifierPath = metadataIdentifierPath;
176
        this.extraFields.put("metadata_identifier_path", metadataIdentifierPath);
177
    }
178

    
179
    public String getUpgradeToV3() {
180
        return upgradeToV3;
181
    }
182

    
183
    public void setUpgradeToV3(String upgradeToV3) {
184
        this.upgradeToV3 = upgradeToV3;
185
    }
186

    
187
    public boolean isDeleteApi() {
188
        return deleteApi;
189
    }
190

    
191
    public void setDeleteApi(boolean deleteApi) {
192
        this.deleteApi = deleteApi;
193
    }
194

    
195
    public String getDesiredCompatibilityLevel() {
196
        return desiredCompatibilityLevel;
197
    }
198

    
199
    public void setDesiredCompatibilityLevel(String desiredCompatibilityLevel) {
200
        this.desiredCompatibilityLevel = desiredCompatibilityLevel;
201
    }
202

    
203
    public String getComplianceName() {
204
        return complianceName;
205
    }
206

    
207
    public void setComplianceName(String complianceName) {
208
        this.complianceName = complianceName;
209
    }
210

    
211
    public String getCollectedFrom() {
212
        return collectedFrom;
213
    }
214

    
215
    public void setCollectedFrom(String collectedFrom) {
216
        this.collectedFrom = collectedFrom;
217
    }
218
}
(17-17/23)