public final class FileVaultResourceMapper extends Object implements FsResourceMapper
Constructor and Description |
---|
FileVaultResourceMapper(File providerFile,
File filterXmlFile,
ContentFileCache contentFileCache,
FileStatCache fileStatCache) |
Modifier and Type | Method and 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.
|
boolean |
pathMatches(String path)
Checks if the given path matches the workspace filter.
|
public FileVaultResourceMapper(File providerFile, File filterXmlFile, ContentFileCache contentFileCache, FileStatCache fileStatCache)
public org.apache.sling.api.resource.Resource getResource(org.apache.sling.api.resource.ResourceResolver resolver, String resourcePath)
FsResourceMapper
getResource
in interface FsResourceMapper
resolver
- Resource resolverresourcePath
- Resource pathpublic Iterator<org.apache.sling.api.resource.Resource> getChildren(org.apache.sling.api.resource.ResourceResolver resolver, org.apache.sling.api.resource.Resource parent)
FsResourceMapper
getChildren
in interface FsResourceMapper
resolver
- Resource resolver.parent
- Parent resource.public boolean pathMatches(String path)
path
- PathCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.