Class StorageHubClient


  • public class StorageHubClient
    extends Object
    • Constructor Detail

      • StorageHubClient

        public StorageHubClient()
      • StorageHubClient

        public StorageHubClient​(URI uri)
    • Method Detail

      • impersonate

        public void impersonate​(String user)
      • open

        public OpenResolver open​(String id)
                          throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • emptyTrash

        public void emptyTrash()
                        throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • getTotalVolume

        public long getTotalVolume()
      • getTotalItemCount

        public long getTotalItemCount()
      • restoreThrashItem

        public GenericItemContainer restoreThrashItem​(String trashItemId)
                                               throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • restoreThrashItem

        public GenericItemContainer restoreThrashItem​(String trashItemId,
                                                      String destinationFolderId)
                                               throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • createUserAccount

        public void createUserAccount​(String userId)
                               throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • deleteUserAccount

        public void deleteUserAccount​(String userId)
                               throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • userExists

        public boolean userExists​(String user)
                           throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • uploadFileOnVolatile

        public String uploadFileOnVolatile​(File file)
                                    throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • uploadFileOnVolatile

        public String uploadFileOnVolatile​(InputStream stream,
                                           String fileName)
                                    throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • uploadFileOnVolatile

        public String uploadFileOnVolatile​(InputStream stream,
                                           String fileName,
                                           long size)
                                    throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException