2018-11-20 15:46:18 +01:00
|
|
|
package org.gcube.common.storagehub.model.storages;
|
|
|
|
|
|
|
|
import java.io.InputStream;
|
|
|
|
|
|
|
|
public interface StorageBackend {
|
|
|
|
|
|
|
|
String getName();
|
|
|
|
|
|
|
|
String copy(String idToCopy, String path);
|
|
|
|
|
|
|
|
String move(String idToMove);
|
|
|
|
|
|
|
|
MetaInfo upload(InputStream stream, String itemPath);
|
|
|
|
|
|
|
|
InputStream getContent(String id);
|
|
|
|
|
2019-07-17 17:55:12 +02:00
|
|
|
@Deprecated
|
|
|
|
String getTotalSizeStored();
|
|
|
|
@Deprecated
|
|
|
|
String getTotalItemsCount();
|
|
|
|
|
2018-11-20 18:09:50 +01:00
|
|
|
void delete(String id);
|
|
|
|
|
2018-11-20 15:46:18 +01:00
|
|
|
}
|