Class FileVaultResourceMapper

java.lang.Object
org.apache.sling.fsprovider.internal.mapper.FileVaultResourceMapper
All Implemented Interfaces:
org.apache.sling.fsprovider.internal.FsResourceMapper

public final class FileVaultResourceMapper extends Object implements org.apache.sling.fsprovider.internal.FsResourceMapper
  • Constructor Details

    • FileVaultResourceMapper

      public FileVaultResourceMapper(File providerFile, File filterXmlFile, ContentFileCache contentFileCache, org.apache.sling.fsprovider.internal.FileStatCache fileStatCache)
  • Method Details

    • getResource

      public Resource getResource(ResourceResolver resolver, String resourcePath)
      Description copied from interface: org.apache.sling.fsprovider.internal.FsResourceMapper
      Get single resource.
      Specified by:
      getResource in interface org.apache.sling.fsprovider.internal.FsResourceMapper
      Parameters:
      resolver - Resource resolver
      resourcePath - Resource path
      Returns:
      Resource or null if not exists
    • getChildren

      public Iterator<Resource> getChildren(ResourceResolver resolver, Resource parent)
      Description copied from interface: org.apache.sling.fsprovider.internal.FsResourceMapper
      Get children of resource.
      Specified by:
      getChildren in interface org.apache.sling.fsprovider.internal.FsResourceMapper
      Parameters:
      resolver - Resource resolver.
      parent - Parent resource.
      Returns:
      Child resources or null if no children exist
    • pathMatches

      public boolean pathMatches(String path)
      Checks if the given path matches the workspace filter.
      Parameters:
      path - Path
      Returns:
      true if path matches