Revision 62070
Added by Michele Artini about 2 years ago
LocalOpenaireDatasourceManagerImpl.java | ||
---|---|---|
35 | 35 |
import eu.dnetlib.enabling.datasources.common.DsmRuntimeException; |
36 | 36 |
import eu.dnetlib.enabling.datasources.common.Identity; |
37 | 37 |
import eu.dnetlib.enabling.datasources.common.Organization; |
38 |
import eu.dnetlib.enabling.datasources.common.PidSystem; |
|
38 | 39 |
import eu.dnetlib.enabling.datasources.common.SearchApisEntry; |
39 | 40 |
import eu.dnetlib.enabling.datasources.common.SimpleDatasource; |
40 | 41 |
|
... | ... | |
120 | 121 |
|
121 | 122 |
@Override |
122 | 123 |
@Transactional |
123 |
public void saveDs(final Datasource<Organization<?>, Identity> ds) throws DsmException { |
|
124 |
public void saveDs(final Datasource<Organization<?>, Identity, PidSystem> ds) throws DsmException {
|
|
124 | 125 |
|
125 | 126 |
if (StringUtils.isBlank(ds.getAggregator())) { |
126 | 127 |
ds.setAggregator("OPENAIRE"); |
... | ... | |
149 | 150 |
} |
150 | 151 |
|
151 | 152 |
@Override |
152 |
public Datasource<Organization<?>, Identity> getDs(final String dsId) throws DsmException { |
|
153 |
public Datasource<Organization<?>, Identity, PidSystem> getDs(final String dsId) throws DsmException {
|
|
153 | 154 |
return datasourceManagerClients.getDatasourceById(dsId); |
154 | 155 |
} |
155 | 156 |
|
156 | 157 |
@Override |
157 |
public Datasource<Organization<?>, Identity> getDsByNsPrefix(final String prefix) throws DsmException { |
|
158 |
public Datasource<Organization<?>, Identity, PidSystem> getDsByNsPrefix(final String prefix) throws DsmException {
|
|
158 | 159 |
return datasourceManagerClients.getDatasourceByPrefix(prefix); |
159 | 160 |
} |
160 | 161 |
|
Also available in: Unified diff
pidsystems