git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/Common/storagehub-model@174253 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
6b4790e3b5
commit
0dce7ac737
|
@ -0,0 +1,13 @@
|
|||
package org.gcube.common.storagehub.model.storages;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class MetaInfo {
|
||||
|
||||
long size;
|
||||
|
||||
String storageId;
|
||||
|
||||
String remotePath;
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
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);
|
||||
|
||||
}
|
Loading…
Reference in New Issue