25 lines
430 B
Java
25 lines
430 B
Java
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);
|
|
|
|
@Deprecated
|
|
String getTotalSizeStored();
|
|
@Deprecated
|
|
String getTotalItemsCount();
|
|
|
|
void delete(String id);
|
|
|
|
}
|