2018-06-27 12:29:21 +02:00
|
|
|
package eu.eudat.logic.services.helpers;
|
2018-03-19 13:40:04 +01:00
|
|
|
|
2018-06-27 12:29:21 +02:00
|
|
|
import eu.eudat.models.data.files.ContentFile;
|
2018-03-19 13:40:04 +01:00
|
|
|
import org.springframework.core.io.Resource;
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by ikalyvas on 3/15/2018.
|
|
|
|
*/
|
|
|
|
public interface FileStorageService {
|
|
|
|
List<ContentFile> writeToTempFileSystem(MultipartFile[] multipartFiles) throws IOException;
|
|
|
|
|
|
|
|
ContentFile copyFromTempFileSystem(ContentFile file) throws IOException;
|
|
|
|
|
|
|
|
Resource readFromFilesystem(String filename, String type, String location) throws IOException;
|
|
|
|
}
|