27 lines
574 B
Java
27 lines
574 B
Java
package org.gcube.common.storagehub.model.storages;
|
|
|
|
import java.io.InputStream;
|
|
|
|
import org.gcube.common.storagehub.model.items.nodes.Content;
|
|
|
|
public interface StorageBackend {
|
|
|
|
String getName();
|
|
|
|
MetaInfo onCopy(Content content, String newParentPath, String newName);
|
|
|
|
MetaInfo onMove(Content content, String newParentPath);
|
|
|
|
void onDelete(Content content);
|
|
|
|
MetaInfo upload(InputStream stream, String relativePath, String name);
|
|
|
|
InputStream download(Content item);
|
|
|
|
@Deprecated
|
|
String getTotalSizeStored();
|
|
@Deprecated
|
|
String getTotalItemsCount();
|
|
|
|
}
|