Skip to content
Snippets Groups Projects
Commit 1e6d9441 authored by Martin Weise's avatar Martin Weise
Browse files

defaulting to default network again

parent 27cfee49
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ package at.tuwien.service;
import at.tuwien.clients.FdaContainerManagingClient;
import at.tuwien.dto.database.DatabaseCreateDto;
import at.tuwien.model.Database;
import at.tuwien.repository.DatabaseRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......@@ -13,13 +14,16 @@ public class DatabaseService {
private FdaContainerManagingClient client;
private final DatabaseRepository databaseRepository;
@Autowired
public DatabaseService(FdaContainerManagingClient client) {
public DatabaseService(FdaContainerManagingClient client, DatabaseRepository databaseRepository) {
this.client = client;
this.databaseRepository = databaseRepository;
}
public boolean createDatabase(DatabaseCreateDto dto) {
return client.createDatabaseContainer(dto);
}
public List<Database> findAllCreatedDatabases() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment