Class ContentFileResourceMapper
java.lang.Object
org.apache.sling.fsprovider.internal.mapper.ContentFileResourceMapper
- All Implemented Interfaces:
org.apache.sling.fsprovider.internal.FsResourceMapper
public final class ContentFileResourceMapper
extends Object
implements org.apache.sling.fsprovider.internal.FsResourceMapper
-
Constructor Summary
ConstructorDescriptionContentFileResourceMapper
(String providerRoot, File providerFile, org.apache.sling.fsprovider.internal.ContentFileExtensions contentFileExtensions, ContentFileCache contentFileCache, org.apache.sling.fsprovider.internal.FileStatCache fileStatCache) -
Method Summary
Modifier and TypeMethodDescriptiongetChildren
(ResourceResolver resolver, Resource parent) Get children of resource.getResource
(ResourceResolver resolver, String resourcePath) Get single resource.
-
Constructor Details
-
ContentFileResourceMapper
public ContentFileResourceMapper(String providerRoot, File providerFile, org.apache.sling.fsprovider.internal.ContentFileExtensions contentFileExtensions, ContentFileCache contentFileCache, org.apache.sling.fsprovider.internal.FileStatCache fileStatCache)
-
-
Method Details
-
getResource
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
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
-