Revision 62078
Added by Michele Artini about 2 years ago
modules/dnet-datasource-manager-common/branches/eosc_services/src/main/java/eu/dnetlib/enabling/datasources/common/Datasource.java | ||
---|---|---|
33 | 33 |
protected Double latitude; |
34 | 34 |
protected Double longitude; |
35 | 35 |
protected String timezone; |
36 |
protected String status; |
|
36 | 37 |
|
37 | 38 |
@Column(name = "namespaceprefix", columnDefinition = "bpchar(12)", nullable = false, updatable = false) |
38 | 39 |
protected String namespaceprefix; |
... | ... | |
434 | 435 |
return this; |
435 | 436 |
} |
436 | 437 |
|
437 |
public Datasource setRegistrationdate(final Date registrationdate) { |
|
438 |
public Datasource<ORG, ID, PIDSYSTEM> setRegistrationdate(final Date registrationdate) {
|
|
438 | 439 |
this.registrationdate = registrationdate; |
439 | 440 |
return this; |
440 | 441 |
} |
... | ... | |
481 | 482 |
return this; |
482 | 483 |
} |
483 | 484 |
|
485 |
public String getStatus() { |
|
486 |
return status; |
|
487 |
} |
|
488 |
|
|
489 |
public Datasource<ORG, ID, PIDSYSTEM> setStatus(final String status) { |
|
490 |
this.status = status; |
|
491 |
return this; |
|
492 |
} |
|
493 |
|
|
484 | 494 |
} |
modules/dnet-openaire-datasource-manager/branches/eosc_services/src/main/java/eu/dnetlib/enabling/datasources/DatasourceFunctions.java | ||
---|---|---|
94 | 94 |
ds.setConsentTermsOfUse(castObject(map.get("consenttermsofuse"), Boolean.class)); |
95 | 95 |
ds.setConsentTermsOfUseDate(castObject(map.get("consenttermsofusedate"), Date.class)); |
96 | 96 |
ds.setFullTextDownload(castObject(map.get("fulltextdownload"), Boolean.class)); |
97 |
ds.setStatus(castObject(map.get("status"), String.class)); |
|
97 | 98 |
|
98 | 99 |
return ds; |
99 | 100 |
} |
... | ... | |
219 | 220 |
map.put("registeredby", ds.getRegisteredby()); |
220 | 221 |
map.put("subjects", ds.getSubjects()); |
221 | 222 |
map.put("managed", ds.getManaged()); |
223 |
map.put("status", ds.getStatus()); |
|
222 | 224 |
|
223 | 225 |
return map; |
224 | 226 |
} |
modules/dnet-openaire-datasource-manager/branches/eosc_services/src/main/resources/eu/dnetlib/enabling/datasources/queries/getDatasource.sql | ||
---|---|---|
36 | 36 |
ds.consenttermsofuse AS "consenttermsofuse", |
37 | 37 |
ds.consenttermsofusedate AS "consenttermsofusedate", |
38 | 38 |
ds.fulltextdownload AS "fulltextdownload", |
39 |
ds.eosc_datasource_type AS "eosc_datasource_type" |
|
39 |
ds.eosc_datasource_type AS "eosc_datasource_type", |
|
40 |
ds.status AS "status" |
|
40 | 41 |
FROM |
41 | 42 |
dsm_services ds |
42 | 43 |
WHERE |
modules/dnet-openaire-datasource-manager/branches/eosc_services/src/main/resources/eu/dnetlib/enabling/datasources/queries/getDatasourceByPrefix.sql | ||
---|---|---|
36 | 36 |
ds.consenttermsofuse AS "consenttermsofuse", |
37 | 37 |
ds.consenttermsofusedate AS "consenttermsofusedate", |
38 | 38 |
ds.fulltextdownload AS "fulltextdownload", |
39 |
ds.eosc_datasource_type AS "eosc_datasource_type" |
|
39 |
ds.eosc_datasource_type AS "eosc_datasource_type", |
|
40 |
ds.status AS "status" |
|
40 | 41 |
FROM |
41 | 42 |
dsm_services ds |
42 | 43 |
WHERE |
Also available in: Unified diff
add status field