Interface JcrPathValidator

All Superinterfaces:
Validator

@ProviderType public interface JcrPathValidator extends 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 Details

    • validateJcrPath

      @Deprecated @Nullable default @Nullable Collection<ValidationMessage> validateJcrPath(@NotNull @NotNull Path filePath)
      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)
      Called for each file/folder below jcr_root.
      Parameters:
      nodeContext - the meta information about the node given through this file/folder
      isFolder - true in case it is a folder, otherwise false
      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/folder
      isFolder - true in case it is a folder, otherwise false
      isDocViewXml - true in case isFolder is false and the file is a Document View XML file, otherwise false
      Returns:
      validation messages or null