Class PathUtils

java.lang.Object
org.gcube.data.access.storagehub.fs.PathUtils

public class PathUtils extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static org.slf4j.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)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
     
     
    org.gcube.common.storagehub.client.dsl.ItemContainer<? extends org.gcube.common.storagehub.model.items.Item>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • logger

      public static org.slf4j.Logger logger
  • Constructor Details

    • 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 Details

    • 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)