Interface JcrPathValidator
-
- All Superinterfaces:
Validator
@ProviderType public interface JcrPathValidator extends Validator
Validator interface for validating file paths for files and folders belowjcr_root
. Called afterGenericJcrDataValidator
and afterDocumentViewXmlValidator
. In contrast toNodePathValidator
only called once per file and folder (even if those are covering multiple node paths).
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default @Nullable Collection<ValidationMessage>
validateJcrPath(@NotNull Path filePath)
Deprecated.UsevalidateJcrPath(NodeContext, boolean, boolean)
instead.default @Nullable Collection<ValidationMessage>
validateJcrPath(@NotNull NodeContext nodeContext, boolean isFolder)
Deprecated.UsevalidateJcrPath(NodeContext, boolean, boolean)
instead.default @Nullable Collection<ValidationMessage>
validateJcrPath(@NotNull NodeContext nodeContext, boolean isFolder, boolean isDocViewXml)
Called for each file/folder below jcr_root.
-
-
-
Method Detail
-
validateJcrPath
@Deprecated @Nullable default @Nullable Collection<ValidationMessage> validateJcrPath(@NotNull @NotNull Path filePath)
Deprecated.UsevalidateJcrPath(NodeContext, boolean, boolean)
instead.Called for each file/folder below jcr_root.- Parameters:
filePath
- the relative file/folder path to the jcr_root directory- Returns:
- validation messages or
null
-
validateJcrPath
@Deprecated @Nullable default @Nullable Collection<ValidationMessage> validateJcrPath(@NotNull @NotNull NodeContext nodeContext, boolean isFolder)
Deprecated.UsevalidateJcrPath(NodeContext, boolean, boolean)
instead.Called for each file/folder below jcr_root.- Parameters:
nodeContext
- the meta information about the node given through this file/folderisFolder
-true
in case it is a folder, otherwisefalse
- Returns:
- validation messages or
null
-
validateJcrPath
@Nullable default @Nullable Collection<ValidationMessage> validateJcrPath(@NotNull @NotNull NodeContext nodeContext, boolean isFolder, boolean isDocViewXml)
Called for each file/folder below jcr_root.- Parameters:
nodeContext
- the meta information about the node given through this file/folderisFolder
-true
in case it is a folder, otherwisefalse
isDocViewXml
-true
in caseisFolder
isfalse
and the file is a Document View XML file, otherwisefalse
- Returns:
- validation messages or
null
-
-