Class FileResourceMapper
- java.lang.Object
-
- org.apache.sling.fsprovider.internal.mapper.FileResourceMapper
-
- All Implemented Interfaces:
org.apache.sling.fsprovider.internal.FsResourceMapper
public final class FileResourceMapper extends Object implements org.apache.sling.fsprovider.internal.FsResourceMapper
-
-
Constructor Summary
Constructors Constructor Description FileResourceMapper(String providerRoot, File providerFile, org.apache.sling.fsprovider.internal.ContentFileExtensions contentFileExtensions, ContentFileCache contentFileCache, org.apache.sling.fsprovider.internal.FileStatCache fileStatCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<org.apache.sling.api.resource.Resource>
getChildren(org.apache.sling.api.resource.ResourceResolver resolver, org.apache.sling.api.resource.Resource parent)
Get children of resource.org.apache.sling.api.resource.Resource
getResource(org.apache.sling.api.resource.ResourceResolver resolver, String resourcePath)
Get single resource.
-
-
-
Constructor Detail
-
FileResourceMapper
public FileResourceMapper(String providerRoot, File providerFile, org.apache.sling.fsprovider.internal.ContentFileExtensions contentFileExtensions, ContentFileCache contentFileCache, org.apache.sling.fsprovider.internal.FileStatCache fileStatCache)
-
-
Method Detail
-
getResource
public org.apache.sling.api.resource.Resource getResource(org.apache.sling.api.resource.ResourceResolver resolver, String resourcePath)
Description copied from interface:org.apache.sling.fsprovider.internal.FsResourceMapper
Get single resource.- Specified by:
getResource
in interfaceorg.apache.sling.fsprovider.internal.FsResourceMapper
- Parameters:
resolver
- Resource resolverresourcePath
- Resource path- Returns:
- Resource or null if not exists
-
getChildren
public Iterator<org.apache.sling.api.resource.Resource> getChildren(org.apache.sling.api.resource.ResourceResolver resolver, org.apache.sling.api.resource.Resource parent)
Description copied from interface:org.apache.sling.fsprovider.internal.FsResourceMapper
Get children of resource.- Specified by:
getChildren
in interfaceorg.apache.sling.fsprovider.internal.FsResourceMapper
- Parameters:
resolver
- Resource resolver.parent
- Parent resource.- Returns:
- Child resources or null if no children exist
-
-