@Singleton public class GCubeStorageBackend extends Object implements org.gcube.common.storagehub.model.storages.StorageBackend
| Constructor and Description |
|---|
GCubeStorageBackend() |
| Modifier and Type | Method and Description |
|---|---|
String |
copy(String idToCopy,
String path) |
void |
delete(String id) |
InputStream |
getContent(String id) |
String |
getName() |
String |
getTotalItemsCount() |
String |
getTotalSizeStored() |
String |
move(String idToMove) |
org.gcube.common.storagehub.model.storages.MetaInfo |
upload(InputStream stream,
String itemPath) |
public InputStream getContent(String id)
getContent in interface org.gcube.common.storagehub.model.storages.StorageBackendpublic String getName()
getName in interface org.gcube.common.storagehub.model.storages.StorageBackendpublic String copy(String idToCopy, String path)
copy in interface org.gcube.common.storagehub.model.storages.StorageBackendpublic String move(String idToMove)
move in interface org.gcube.common.storagehub.model.storages.StorageBackendpublic org.gcube.common.storagehub.model.storages.MetaInfo upload(InputStream stream, String itemPath)
upload in interface org.gcube.common.storagehub.model.storages.StorageBackendpublic void delete(String id)
delete in interface org.gcube.common.storagehub.model.storages.StorageBackendpublic String getTotalSizeStored()
getTotalSizeStored in interface org.gcube.common.storagehub.model.storages.StorageBackendpublic String getTotalItemsCount()
getTotalItemsCount in interface org.gcube.common.storagehub.model.storages.StorageBackendCopyright © 2021. All Rights Reserved.