Class PathUtils


  • public class PathUtils
    extends Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger logger  
    • Constructor Summary

      Constructors 
      Constructor Description
      PathUtils​(org.cache2k.Cache<String,​org.gcube.common.storagehub.client.dsl.ItemContainer<org.gcube.common.storagehub.model.items.Item>> cache, org.gcube.common.storagehub.client.dsl.FolderContainer rootDirectory, org.gcube.common.storagehub.client.dsl.StorageHubClient client)  
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
    • Constructor Detail

      • PathUtils

        public PathUtils​(org.cache2k.Cache<String,​org.gcube.common.storagehub.client.dsl.ItemContainer<org.gcube.common.storagehub.model.items.Item>> cache,
                         org.gcube.common.storagehub.client.dsl.FolderContainer rootDirectory,
                         org.gcube.common.storagehub.client.dsl.StorageHubClient client)
    • Method Detail

      • getLastComponent

        public String getLastComponent​(String path)
      • getParentPath

        public String getParentPath​(String path)
      • getPath

        public org.gcube.common.storagehub.client.dsl.ItemContainer<? extends org.gcube.common.storagehub.model.items.Item> getPath​(String path)
      • getByPath

        public org.gcube.common.storagehub.client.dsl.ItemContainer<? extends org.gcube.common.storagehub.model.items.Item> getByPath​(String path,
                                                                                                                                      org.gcube.common.storagehub.client.dsl.FolderContainer parentContainer)