Interface ItemManagerClient

    • Method Detail

      • getChildren

        List<? extends org.gcube.common.storagehub.model.items.Item> getChildren​(String id,
                                                                                 boolean includeHidden,
                                                                                 String... excludeNodes)
                                                                          throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • getChildren

        List<? extends org.gcube.common.storagehub.model.items.Item> getChildren​(String id,
                                                                                 Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType,
                                                                                 boolean includeHidden,
                                                                                 String... excludeNodes)
                                                                          throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • getChildren

        List<? extends org.gcube.common.storagehub.model.items.Item> getChildren​(String id,
                                                                                 int start,
                                                                                 int limit,
                                                                                 boolean includeHidden,
                                                                                 Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType,
                                                                                 String... excludeNodes)
                                                                          throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • getChildren

        List<? extends org.gcube.common.storagehub.model.items.Item> getChildren​(String id,
                                                                                 int start,
                                                                                 int limit,
                                                                                 boolean includeHidden,
                                                                                 String... excludeNodes)
                                                                          throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • getAnchestors

        List<? extends org.gcube.common.storagehub.model.items.Item> getAnchestors​(String id,
                                                                                   String... excludeNodes)
                                                                            throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • search

        List<? extends org.gcube.common.storagehub.model.items.Item> search​(String id,
                                                                            Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType,
                                                                            boolean includeHidden,
                                                                            boolean excludeTrashed,
                                                                            String nameToMatch,
                                                                            String... excludeNodes)
                                                                     throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • childrenCount

        Integer childrenCount​(String id,
                              boolean includeHidden)
                       throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • childrenCount

        Integer childrenCount​(String id,
                              boolean includeHidden,
                              Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType)
                       throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • get

        org.gcube.common.storagehub.model.items.Item get​(String id,
                                                         String... excludeNodes)
                                                  throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • getByRelativePath

        org.gcube.common.storagehub.model.items.Item getByRelativePath​(String id,
                                                                       String path,
                                                                       String... excludeNodes)
                                                                throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • download

        StreamDescriptor download​(String id,
                                  String... excludeNodes)
                           throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • uploadFile

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

        String uploadFile​(InputStream stream,
                          String parentId,
                          String fileName,
                          String description,
                          long size)
                   throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • uploadFile

        String uploadFile​(File file,
                          String parentId,
                          String fileName,
                          String descriptionh)
                   throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • uploadFile

        String uploadFile​(URI uri,
                          String parentId,
                          String fileName,
                          String description)
                   throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • createFolder

        String createFolder​(String parentId,
                            String name,
                            String description,
                            boolean hidden)
                     throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • createFolder

        String createFolder​(String parentId,
                            String name,
                            String description,
                            boolean hidden,
                            String pluginName,
                            org.gcube.common.storagehub.model.plugins.PluginParameters parameters)
                     throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • createURL

        String createURL​(String parentId,
                         String name,
                         String description,
                         URL url)
                  throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • createFolder

        @Deprecated
        String createFolder​(String parentId,
                            String name,
                            String description)
                     throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Deprecated.
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • getACL

        List<org.gcube.common.storagehub.model.acls.ACL> getACL​(String id)
                                                         throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • changeACL

        String changeACL​(String id,
                         String user,
                         org.gcube.common.storagehub.model.acls.AccessType accessType)
                  throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • removeAdmin

        String removeAdmin​(String id,
                           String user)
                    throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • delete

        @Deprecated
        void delete​(String id)
             throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Deprecated.
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • getPublickLink

        URL getPublickLink​(String id)
                    throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • getPublickLink

        URL getPublickLink​(String id,
                           String version)
                    throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • findChildrenByNamePattern

        List<? extends org.gcube.common.storagehub.model.items.Item> findChildrenByNamePattern​(String id,
                                                                                               String name,
                                                                                               String... excludeNodes)
                                                                                        throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • getRootSharedFolder

        org.gcube.common.storagehub.model.items.Item getRootSharedFolder​(String id)
                                                                  throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • shareFolder

        String shareFolder​(String id,
                           Set<String> users,
                           org.gcube.common.storagehub.model.acls.AccessType accessType)
                    throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • copy

        String copy​(String id,
                    String destinationFolderId,
                    String newFilename)
             throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • uploadArchive

        String uploadArchive​(InputStream stream,
                             String parentId,
                             String extractionFolderName)
                      throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • uploadArchive

        String uploadArchive​(InputStream stream,
                             String parentId,
                             String extractionFolderName,
                             long contentLength)
                      throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • unshareFolder

        String unshareFolder​(String id,
                             Set<String> users)
                      throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • move

        String move​(String id,
                    String destinationFolderId)
             throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • rename

        String rename​(String id,
                      String newName)
               throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • getFileVersions

        List<org.gcube.common.storagehub.model.service.Version> getFileVersions​(String id)
                                                                         throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • downloadSpecificVersion

        StreamDescriptor downloadSpecificVersion​(String id,
                                                 String version)
                                          throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • deleteFileVersion

        void deleteFileVersion​(String id,
                               String versionName)
                        throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • setMetadata

        String setMetadata​(String id,
                           org.gcube.common.storagehub.model.Metadata metadata)
                    throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • setHidden

        String setHidden​(String id,
                         Boolean value)
                  throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • setDescription

        String setDescription​(String id,
                              String description)
                       throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • createGcubeItem

        String createGcubeItem​(String parentId,
                               org.gcube.common.storagehub.model.items.GCubeItem item)
                        throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • resolvePublicLink

        StreamDescriptor resolvePublicLink​(String identifier)
                                    throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • getChildren

        @Deprecated
        List<? extends org.gcube.common.storagehub.model.items.Item> getChildren​(String id,
                                                                                 Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType,
                                                                                 String... excludeNodes)
                                                                          throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Deprecated.
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • getChildren

        @Deprecated
        List<? extends org.gcube.common.storagehub.model.items.Item> getChildren​(String id,
                                                                                 String... excludeNodes)
                                                                          throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Deprecated.
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • childrenCount

        @Deprecated
        Integer childrenCount​(String id,
                              Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType)
                       throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Deprecated.
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • childrenCount

        @Deprecated
        Integer childrenCount​(String id)
                       throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Deprecated.
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • delete

        void delete​(String id,
                    boolean force)
             throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • canWriteInto

        boolean canWriteInto​(String id)
                      throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • setPublic

        String setPublic​(String id,
                         boolean publish)
                  throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • getFolderInfo

        org.gcube.common.storagehub.model.types.FolderInfoType getFolderInfo​(String id)
                                                                      throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException