2018-06-27 12:29:21 +02:00
|
|
|
package eu.eudat.logic.services.operations;
|
2018-03-05 17:18:45 +01:00
|
|
|
|
2018-07-11 15:47:36 +02:00
|
|
|
import eu.eudat.elastic.repository.DatasetRepository;
|
2018-06-27 12:29:21 +02:00
|
|
|
import eu.eudat.logic.builders.BuilderFactory;
|
|
|
|
import eu.eudat.logic.proxy.fetching.RemoteFetcher;
|
|
|
|
import eu.eudat.logic.services.helpers.FileStorageService;
|
2018-03-05 17:18:45 +01:00
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.context.ApplicationContext;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by ikalyvas on 3/1/2018.
|
|
|
|
*/
|
|
|
|
@Service("operationsContext")
|
|
|
|
public class OperationsContextImpl implements OperationsContext {
|
|
|
|
|
|
|
|
private DatabaseRepository databaseRepository;
|
|
|
|
private ApplicationContext applicationContext;
|
|
|
|
private RemoteFetcher remoteFetcher;
|
|
|
|
private BuilderFactory builderFactory;
|
2018-03-19 13:40:04 +01:00
|
|
|
private FileStorageService fileStorageService;
|
2018-07-11 15:47:36 +02:00
|
|
|
private DatasetRepository datasetRepository;
|
2018-03-05 17:18:45 +01:00
|
|
|
|
|
|
|
@Autowired
|
2018-03-19 13:40:04 +01:00
|
|
|
public OperationsContextImpl(DatabaseRepository databaseRepository, ApplicationContext applicationContext, RemoteFetcher remoteFetcher
|
2018-07-11 15:47:36 +02:00
|
|
|
, BuilderFactory builderFactory, FileStorageService fileStorageService,DatasetRepository datasetRepository) {
|
2018-03-05 17:18:45 +01:00
|
|
|
this.databaseRepository = databaseRepository;
|
|
|
|
this.applicationContext = applicationContext;
|
|
|
|
this.remoteFetcher = remoteFetcher;
|
|
|
|
this.builderFactory = builderFactory;
|
2018-03-19 13:40:04 +01:00
|
|
|
this.fileStorageService = fileStorageService;
|
2018-07-11 15:47:36 +02:00
|
|
|
this.datasetRepository = datasetRepository;
|
2018-03-05 17:18:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public DatabaseRepository getDatabaseRepository() {
|
|
|
|
return databaseRepository;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public ApplicationContext getApplicationContext() {
|
|
|
|
return applicationContext;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public RemoteFetcher getRemoteFetcher() {
|
|
|
|
return remoteFetcher;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public BuilderFactory getBuilderFactory() {
|
|
|
|
return builderFactory;
|
|
|
|
}
|
|
|
|
|
2018-03-19 13:40:04 +01:00
|
|
|
@Override
|
|
|
|
public FileStorageService getFileStorageService() {
|
|
|
|
return fileStorageService;
|
|
|
|
}
|
2018-07-11 15:47:36 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public DatasetRepository getDatasetRepository() {
|
|
|
|
return datasetRepository;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setDatasetRepository(DatasetRepository datasetRepository) {
|
|
|
|
this.datasetRepository = datasetRepository;
|
|
|
|
}
|
2018-03-05 17:18:45 +01:00
|
|
|
}
|