Package com.chutneytesting.admin.infra
Class FileSystemBackupRepository
- java.lang.Object
-
- com.chutneytesting.admin.infra.FileSystemBackupRepository
-
- All Implemented Interfaces:
BackupRepository
@Component public class FileSystemBackupRepository extends Object implements BackupRepository
-
-
Constructor Summary
Constructors Constructor Description FileSystemBackupRepository(String backupsRootPath, List<Backupable> backupables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(String backupId)List<String>getBackupables()voidgetBackupData(String backupId, OutputStream outputStream)List<Backup>list()Backupread(String backupId)Stringsave(Backup backup)
-
-
-
Constructor Detail
-
FileSystemBackupRepository
public FileSystemBackupRepository(@Value("${chutney.configuration-folder:~/.chutney/conf}") String backupsRootPath, List<Backupable> backupables)
-
-
Method Detail
-
getBackupData
public void getBackupData(String backupId, OutputStream outputStream) throws IOException
- Specified by:
getBackupDatain interfaceBackupRepository- Throws:
IOException
-
getBackupables
public List<String> getBackupables()
- Specified by:
getBackupablesin interfaceBackupRepository
-
save
public String save(Backup backup)
- Specified by:
savein interfaceBackupRepository
-
read
public Backup read(String backupId)
- Specified by:
readin interfaceBackupRepository
-
delete
public void delete(String backupId)
- Specified by:
deletein interfaceBackupRepository
-
list
public List<Backup> list()
- Specified by:
listin interfaceBackupRepository
-
-