public class GCUBEStorage extends Object
| Constructor and Description |
|---|
GCUBEStorage() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copyRemoteFile(String oldPath,
String newPath,
String portalLogin)
copy file
|
static void |
createHardLink(String srcPath,
String destPath,
String portalLogin)
use remotepath to access storage
|
static long |
getDiskUsageByUser(String portalLogin)
Get the disk usage amount of a user
|
static String |
getFolderLastUpdate(String remotePath,
String portalLogin)
Get last update of a folder
|
static int |
getFolderTotalItems(String remotePath,
String portalLogin)
Get total items in a folder
|
static long |
getFolderTotalVolume(String remotePath,
String portalLogin)
Get folder size
|
static String |
getPublicLink(String remotePath,
String portalLogin)
Get public link by remote path
|
static InputStream |
getRemoteFile(String remotePath,
String portalLogin)
Get the inpustream by a remote path
|
static long |
getRemoteFileSize(String remotePath,
String portalLogin) |
static long |
getRemoteFileSize(String remotePath,
String portalLogin,
String serviceName)
Get size of a file by remotepath
|
static org.gcube.contentmanagement.blobstorage.service.IClient |
getStorage(String portalLogin) |
static int |
getTotalItemsByUser(String portalLogin)
Get tot items of a user
|
static void |
moveRemoteFile(String oldPath,
String newPath,
String portalLogin)
move file
|
static void |
moveRemoteFolder(String oldPath,
String newPath,
String portalLogin)
move dir
|
static String |
putStream(InputStream is,
String remotePath,
String portalLogin) |
static String |
putStream(InputStream is,
String new_remotePath,
String portalLogin,
String serviceName)
Save inpustream in storage using a remotepath
|
static String |
putStream(String old_remotePath,
String new_remotePath,
String portalLogin) |
static void |
removeRemoteFile(String remotePath,
String portalLogin)
delete file
|
static void |
removeRemoteFolder(String remotePath,
String portalLogin)
Delete folder
|
static void |
removeRemoteFolder(String remotePath,
String portalLogin,
String serviceName)
delete folder
|
public static org.gcube.contentmanagement.blobstorage.service.IClient getStorage(String portalLogin)
public static String putStream(InputStream is, String remotePath, String portalLogin) throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionpublic static String putStream(String old_remotePath, String new_remotePath, String portalLogin) throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionpublic static long getRemoteFileSize(String remotePath, String portalLogin) throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionpublic static void removeRemoteFile(String remotePath, String portalLogin) throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
remotePath - portalLogin - org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionpublic static void removeRemoteFolder(String remotePath, String portalLogin) throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
remotePath - portalLogin - org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionpublic static long getRemoteFileSize(String remotePath, String portalLogin, String serviceName) throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
remotePath - portalLogin - serviceName - org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionpublic static long getDiskUsageByUser(String portalLogin) throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
portalLogin - org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionpublic static int getTotalItemsByUser(String portalLogin) throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
portalLogin - org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionpublic static long getFolderTotalVolume(String remotePath, String portalLogin) throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
remotePath - portalLogin - org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionpublic static String getFolderLastUpdate(String remotePath, String portalLogin) throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
remotePath - of the folderportalLogin - org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionpublic static int getFolderTotalItems(String remotePath, String portalLogin) throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
remotePath - of the folderportalLogin - org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionpublic static InputStream getRemoteFile(String remotePath, String portalLogin)
remotePath - portalLogin - public static String getPublicLink(String remotePath, String portalLogin)
remotePath - portalLogin - public static void moveRemoteFolder(String oldPath, String newPath, String portalLogin)
oldPath - newPath - portalLogin - public static void moveRemoteFile(String oldPath, String newPath, String portalLogin)
oldPath - newPath - portalLogin - public static void copyRemoteFile(String oldPath, String newPath, String portalLogin)
oldPath - newPath - portalLogin - public static void createHardLink(String srcPath, String destPath, String portalLogin)
srcPath - destPath - portalLogin - public static void removeRemoteFolder(String remotePath, String portalLogin, String serviceName) throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
remotePath - portalLogin - serviceName - org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionpublic static String putStream(InputStream is, String new_remotePath, String portalLogin, String serviceName) throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
is - new_remotePath - portalLogin - serviceName - org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionCopyright © 2015. All Rights Reserved.