public interface DatasourceManagerService extends DriverService
Modifier and Type | Method and Description |
---|---|
boolean |
addDatasource(eu.dnetlib.domain.data.Repository repository)
Register a datasource.
|
boolean |
addInterface(String dsId,
eu.dnetlib.domain.data.RepositoryInterface iface)
Add an interface to a datasource.
|
boolean |
deleteAccessParamOrExtraField(String dsId,
String ifaceId,
String field)
delete a generic extra field or an access param of an interface.
|
boolean |
deleteDatasource(String dsId)
Delete a datasource.
|
boolean |
deleteInterface(String dsId,
String ifaceId)
Delete the interface of a datasource.
|
Date |
findNextScheduledExecution(String dsId,
String ifaceId)
Calculate the next execution date of a related metaworkflow
|
eu.dnetlib.domain.data.Repository |
getDatasource(String dsId)
Returns a datasource.
|
List<eu.dnetlib.domain.data.Repository> |
listAllDatasources()
Returns all the datasources.
|
List<eu.dnetlib.domain.data.Repository> |
listDatasourcesUsingFilter(String compliance,
String contentDescription,
String iisProcessingWorkflow,
String collectedFrom)
Returns the datasources with some properties.
|
boolean |
setIisProcessingWorkflow(String dsId,
String ifaceId,
String wf)
update the "iis_processing_workflow" property of an interface.
|
boolean |
updateAccessParam(String dsId,
String ifaceId,
String field,
String value,
boolean preserveOriginal)
Update an access param of an interface.
|
boolean |
updateActivationStatus(String dsId,
String ifaceId,
boolean active)
update the activation status of an interface (true = there is a related
wf).
|
boolean |
updateBaseUrl(String dsId,
String ifaceId,
String baseUrl)
update the baseUrl of an interface.
|
boolean |
updateContentDescription(String dsId,
String ifaceId,
String desc)
update the "contentDescription" property of an interface.
|
boolean |
updateExtraField(String dsId,
String ifaceId,
String field,
String value,
boolean preserveOriginal)
Set a generic extra field of an interface.
|
boolean |
updateLevelOfCompliance(String dsId,
String ifaceId,
String level)
updates the level of compliance of a datasource.
|
boolean |
updateSQL(String dsId,
String sql,
boolean delete)
Perform a generic SQL update on a datasource.
|
identify, notify
boolean addDatasource(eu.dnetlib.domain.data.Repository repository) throws DatasourceManagerServiceException
ds
- the new datasourceDatasourceManagerServiceException
boolean deleteDatasource(String dsId) throws DatasourceManagerServiceException
dsId
- the OpenAireDataSourceId (example: opendoar____::2101)DatasourceManagerServiceException
eu.dnetlib.domain.data.Repository getDatasource(String dsId) throws DatasourceManagerServiceException
dsId
- the OpenAireDataSourceId (example: opendoar____::2101)DatasourceManagerServiceException
List<eu.dnetlib.domain.data.Repository> listAllDatasources() throws DatasourceManagerServiceException
DatasourceManagerServiceException
List<eu.dnetlib.domain.data.Repository> listDatasourcesUsingFilter(String compliance, String contentDescription, String iisProcessingWorkflow, String collectedFrom) throws DatasourceManagerServiceException
compliance
- the level of compliance (or NULL to skip the test)fileManagementMode
- the fileManagementMode property (or NULL to skip the test)contentDescription
- the contentDescription property (or NULL to skip the test)iisProcessingWorkflow
- the iisProcessingWorkflow property (or NULL to skip the test)DatasourceManagerServiceException
boolean updateLevelOfCompliance(String dsId, String ifaceId, String level) throws DatasourceManagerServiceException
dsId
- the OpenAireDataSourceId (example: opendoar____::2101)ifaceId
- the interface idlevel
- the new level of complianceDatasourceManagerServiceException
boolean updateBaseUrl(String dsId, String ifaceId, String baseUrl) throws DatasourceManagerServiceException
dsId
- the OpenAireDataSourceId (example: opendoar____::2101)ifaceId
- the interface idbaseUrl
- the new valueDatasourceManagerServiceException
boolean updateActivationStatus(String dsId, String ifaceId, boolean active) throws DatasourceManagerServiceException
dsId
- the OpenAireDataSourceId (example: opendoar____::2101)ifaceId
- the interface idactive
- true if there is a related wfDatasourceManagerServiceException
boolean updateContentDescription(String dsId, String ifaceId, String desc) throws DatasourceManagerServiceException
dsId
- the OpenAireDataSourceId (example: opendoar____::2101)ifaceId
- the interface iddesc
- the new valueDatasourceManagerServiceException
boolean setIisProcessingWorkflow(String dsId, String ifaceId, String wf) throws DatasourceManagerServiceException
dsId
- the OpenAireDataSourceId (example: opendoar____::2101)ifaceId
- the interface idwf
- the new valueDatasourceManagerServiceException
boolean updateExtraField(String dsId, String ifaceId, String field, String value, boolean preserveOriginal) throws DatasourceManagerServiceException
dsId
- the OpenAireDataSourceId (example: opendoar____::2101)ifaceId
- the interface idfield
- the field namevalue
- the new value (or null for removing it)preserveOriginal
- preserve the original value in the DB (the value is stored in
the "edited" column)DatasourceManagerServiceException
boolean updateAccessParam(String dsId, String ifaceId, String field, String value, boolean preserveOriginal) throws DatasourceManagerServiceException
dsId
- the OpenAireDataSourceId (example: opendoar____::2101)ifaceId
- the interface idfield
- the field namevalue
- the new value (or null for removing it)preserveOriginal
- preserve the original value in the DB (the value is stored in
the "edited" column)DatasourceManagerServiceException
boolean deleteAccessParamOrExtraField(String dsId, String ifaceId, String field) throws DatasourceManagerServiceException
dsId
- the OpenAireDataSourceId (example: opendoar____::2101)ifaceId
- the interface idfield
- the field nameDatasourceManagerServiceException
boolean addInterface(String dsId, eu.dnetlib.domain.data.RepositoryInterface iface) throws DatasourceManagerServiceException
dsId
- the OpenAireDataSourceId (example: opendoar____::2101)iface
- the interface descriptionDatasourceManagerServiceException
boolean deleteInterface(String dsId, String ifaceId) throws DatasourceManagerServiceException
dsId
- the OpenAireDataSourceId (example: opendoar____::2101)ifcId
- the id of the interfaceDatasourceManagerServiceException
boolean updateSQL(String dsId, String sql, boolean delete) throws DatasourceManagerServiceException
dsId
- the OpenAireDataSourceId (example: opendoar____::2101)sql
- the sql query to insert/update/delete the datasourcedelete
- true if the profile must be deletedDatasourceManagerServiceException
Date findNextScheduledExecution(String dsId, String ifaceId) throws DatasourceManagerServiceException
dsId
- the OpenAireDataSourceId (example: opendoar____::2101)ifcId
- the id of the interfaceDatasourceManagerServiceException
Copyright © 2020. All rights reserved.