Class GCubeMongoStorageBackend
java.lang.Object
org.gcube.common.storagehub.model.storages.StorageBackend
org.gcube.data.access.storagehub.storage.backend.impl.GCubeMongoStorageBackend
public class GCubeMongoStorageBackend
extends org.gcube.common.storagehub.model.storages.StorageBackend
-
Constructor Summary
ConstructorsConstructorDescriptionGCubeMongoStorageBackend(org.gcube.common.storagehub.model.items.nodes.PayloadBackend payloadConf) -
Method Summary
Modifier and TypeMethodDescriptionvoiddownload(org.gcube.common.storagehub.model.items.nodes.Content content) protected org.gcube.contentmanager.storageclient.wrapper.StorageClientgetStorageClient(String login) org.gcube.common.storagehub.model.storages.MetaInfoonCopy(org.gcube.common.storagehub.model.items.nodes.Content content, String newParentPath, String newName) org.gcube.common.storagehub.model.storages.MetaInfoorg.gcube.common.storagehub.model.storages.MetaInfoorg.gcube.common.storagehub.model.storages.MetaInfoupload(InputStream stream, String relPath, String name, String user) org.gcube.common.storagehub.model.storages.MetaInfoupload(InputStream stream, String relativePath, String name, String storageId, Long size, String user) Methods inherited from class org.gcube.common.storagehub.model.storages.StorageBackend
equals, getPayloadConfiguration, hashCode, setPayloadConfiguration
-
Constructor Details
-
GCubeMongoStorageBackend
public GCubeMongoStorageBackend(org.gcube.common.storagehub.model.items.nodes.PayloadBackend payloadConf)
-
-
Method Details
-
download
public InputStream download(org.gcube.common.storagehub.model.items.nodes.Content content) throws org.gcube.common.storagehub.model.exceptions.StorageIdNotFoundException - Specified by:
downloadin classorg.gcube.common.storagehub.model.storages.StorageBackend- Throws:
org.gcube.common.storagehub.model.exceptions.StorageIdNotFoundException
-
download
public InputStream download(String id) throws org.gcube.common.storagehub.model.exceptions.StorageIdNotFoundException - Specified by:
downloadin classorg.gcube.common.storagehub.model.storages.StorageBackend- Throws:
org.gcube.common.storagehub.model.exceptions.StorageIdNotFoundException
-
getStorageClient
protected org.gcube.contentmanager.storageclient.wrapper.StorageClient getStorageClient(String login) -
onCopy
-
onMove
public org.gcube.common.storagehub.model.storages.MetaInfo onMove(org.gcube.common.storagehub.model.items.nodes.Content content, String newParentPath) - Specified by:
onMovein classorg.gcube.common.storagehub.model.storages.StorageBackend
-
upload
public org.gcube.common.storagehub.model.storages.MetaInfo upload(InputStream stream, String relPath, String name, String user) - Specified by:
uploadin classorg.gcube.common.storagehub.model.storages.StorageBackend
-
upload
public org.gcube.common.storagehub.model.storages.MetaInfo upload(InputStream stream, String relPath, String name, Long size, String user) - Specified by:
uploadin classorg.gcube.common.storagehub.model.storages.StorageBackend
-
upload
-
delete
- Specified by:
deletein classorg.gcube.common.storagehub.model.storages.StorageBackend
-
getTotalSizeStored
- Specified by:
getTotalSizeStoredin classorg.gcube.common.storagehub.model.storages.StorageBackend
-
getTotalItemsCount
- Specified by:
getTotalItemsCountin classorg.gcube.common.storagehub.model.storages.StorageBackend
-
getFileMetadata
-