public class StorageUtils extends Object
| Constructor and Description |
|---|
StorageUtils() |
| Modifier and Type | Method and Description |
|---|---|
void |
exists(String id) |
static org.gcube.contentmanagement.blobstorage.service.IClient |
getClient() |
static String |
getUniqueString() |
String |
getURL(String id) |
TempFile[] |
putOntoStorage(File... source) |
TempFile |
putOntoStorage(File source,
String filename) |
TempFile |
putOntoStorage(InputStream source,
String filename) |
TempFile |
putOntoStorage(String sourcePath,
String filename) |
void |
removeById(String id) |
public static final org.gcube.contentmanagement.blobstorage.service.IClient getClient()
public TempFile putOntoStorage(InputStream source, String filename) throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException, FileNotFoundException
org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionFileNotFoundExceptionpublic TempFile putOntoStorage(File source, String filename) throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException, FileNotFoundException
org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionFileNotFoundExceptionpublic TempFile[] putOntoStorage(File... source) throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException, FileNotFoundException
org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionFileNotFoundExceptionpublic TempFile putOntoStorage(String sourcePath, String filename) throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException, FileNotFoundException
org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionFileNotFoundExceptionpublic void removeById(String id)
public void exists(String id)
public static final String getUniqueString()
Copyright © 2021. All Rights Reserved.