Package eu.dnetlib.openaire.dsm
Class DsmCore
java.lang.Object
eu.dnetlib.openaire.dsm.DsmCore
@Component
@ConditionalOnProperty(value="openaire.exporter.enable.dsm",
havingValue="true")
public class DsmCore
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddApi(ApiDetails api) aggregationhistoryV1(String dsId) Deprecated.aggregationhistoryV2(String dsId) countFirstCollect(String fromDate, String typeFilter) countRegisteredAfter(String fromDate, String typeFilter) voidvoidvoidbooleanfindBaseURLs(RequestFilter requestFilter, int page, int size) getFirstCollectedAfter(String fromDate, String typeFilter) booleanvoidvoidsearchDsDetails(RequestSort requestSortBy, RequestSortOrder order, RequestFilter requestFilter, int page, int size) searchRecentRegistered(int size) searchRecentRegisteredV2(int size) searchRegistered(RequestSort requestSortBy, RequestSortOrder order, RequestFilter requestFilter, int page, int size) searchSnippet(RequestSort requestSortBy, RequestSortOrder order, RequestFilter requestFilter, int page, int size) voidsetManaged(String dsId, boolean managed) longtransformationDateBefore(String api, long timestamp) voidupdateApiBaseurl(String dsId, String apiId, String baseUrl) voidupdateApiCompatibility(String dsId, String apiId, String compliance, boolean override) voidupdateApiOaiSet(String dsId, String apiId, String oaiSet) void
-
Constructor Details
-
DsmCore
public DsmCore()
-
-
Method Details
-
listCountries
- Throws:
DsmApiException
-
searchDsDetails
public DatasourceDetailResponse searchDsDetails(RequestSort requestSortBy, RequestSortOrder order, RequestFilter requestFilter, int page, int size) throws DsmApiException - Throws:
DsmApiException
-
searchSnippet
public DatasourceSnippetResponse searchSnippet(RequestSort requestSortBy, RequestSortOrder order, RequestFilter requestFilter, int page, int size) throws DsmApiException - Throws:
DsmApiException
-
searchRegistered
public DatasourceSnippetResponse searchRegistered(RequestSort requestSortBy, RequestSortOrder order, RequestFilter requestFilter, int page, int size) throws DsmApiException - Throws:
DsmApiException
-
findBaseURLs
public List<String> findBaseURLs(RequestFilter requestFilter, int page, int size) throws DsmApiException - Throws:
DsmApiException
-
getApis
- Throws:
DsmApiException
-
setManaged
- Throws:
DsmApiException
-
isManaged
- Throws:
DsmApiException
-
exist
- Throws:
DsmApiException
-
save
- Throws:
DsmApiException
-
save
- Throws:
DsmApiException
-
updateDatasource
- Throws:
DsmApiException
-
deleteDs
- Throws:
DsmApiException
-
updateApiOaiSet
- Throws:
DsmApiException
-
updateApiBaseurl
- Throws:
DsmApiException
-
updateApiCompatibility
public void updateApiCompatibility(String dsId, String apiId, String compliance, boolean override) throws DsmApiException - Throws:
DsmApiException
-
addApi
- Throws:
DsmApiException
-
deleteApi
- Throws:
DsmApiException
-
dropCaches
public void dropCaches() -
searchRecentRegistered
- Throws:
Throwable
-
countRegisteredAfter
- Throws:
Throwable
-
aggregationhistoryV1
@Deprecated public AggregationHistoryResponseV1 aggregationhistoryV1(String dsId) throws DsmApiException Deprecated.- Throws:
DsmApiException
-
aggregationhistoryV2
- Throws:
DsmApiException
-
searchRecentRegisteredV2
- Throws:
Throwable
-
countFirstCollect
- Throws:
Throwable
-
getFirstCollectedAfter
public List<SimpleDatasourceInfo> getFirstCollectedAfter(String fromDate, String typeFilter) throws Throwable - Throws:
Throwable
-
transformationDateBefore
-