org.gcube.portlets.user.homelibrary.jcr.repository.external
Class GCUBEStorage

java.lang.Object
  extended by org.gcube.portlets.user.homelibrary.jcr.repository.external.GCUBEStorage

public class GCUBEStorage
extends Object


Constructor Summary
GCUBEStorage()
           
 
Method Summary
static void createHardLink(String srcPath, String destPath)
           
static String getPublicLink(String remotePath)
           
static InputStream getRemoteFile(String remotePath)
           
static long getRemoteFileSize(String remotePath)
           
static void moveRemoteFile(String oldPath, String newPath)
           
static void moveRemoteFolder(String oldPath, String newPath)
           
static String putStream(InputStream is, String remotePath)
           
static void removeRemoteFile(String remotePath)
           
static void removeRemoteFolder(String remotePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GCUBEStorage

public GCUBEStorage()
Method Detail

putStream

public static String putStream(InputStream is,
                               String remotePath)
                        throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
Throws:
org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException

getRemoteFileSize

public static long getRemoteFileSize(String remotePath)
                              throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
Throws:
org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException

removeRemoteFile

public static void removeRemoteFile(String remotePath)
                             throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
Throws:
org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException

removeRemoteFolder

public static void removeRemoteFolder(String remotePath)
                               throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException
Throws:
org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException

getRemoteFile

public static InputStream getRemoteFile(String remotePath)

getPublicLink

public static String getPublicLink(String remotePath)

moveRemoteFolder

public static void moveRemoteFolder(String oldPath,
                                    String newPath)

moveRemoteFile

public static void moveRemoteFile(String oldPath,
                                  String newPath)

createHardLink

public static void createHardLink(String srcPath,
                                  String destPath)


Copyright © 2013. All Rights Reserved.