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