Interface JcrPathValidator
- All Superinterfaces:
Validator
Validator interface for validating file paths for files and folders below
jcr_root.
Called after GenericJcrDataValidator and after DocumentViewXmlValidator.
In contrast to NodePathValidator only called once per file and folder (even if those are covering multiple node paths).-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable Collection<ValidationMessage>validateJcrPath(@NotNull Path filePath) Deprecated.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 Details
-
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-truein 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-truein case it is a folder, otherwisefalseisDocViewXml-truein caseisFolderisfalseand the file is a Document View XML file, otherwisefalse- Returns:
- validation messages or
null
-
validateJcrPath(NodeContext, boolean, boolean)instead.