Class ConfigurationValidator

    • Constructor Detail

      • ConfigurationValidator

        public ConfigurationValidator()
    • Method Detail

      • validate

        @Deprecated
        public ValidationResult validate​(@Nonnull
                                         org.jboss.dmr.ModelNode fullConfiguration,
                                         @Nonnull
                                         Configurable configurable)
                                  throws ConfigurationException
        Deprecated.
        use the Jackson-based variant
        Validates that the full configuration contains valid configuration for given configurable.
        Parameters:
        fullConfiguration - the full configuration containing properties for all configurables
        configurable - the configurable to validate the configuration for
        Returns:
        the result of the validation.
        Throws:
        ConfigurationException - if reading the JSON schemas of the configurable failed
      • validate

        public ValidationResult validate​(@Nullable
                                         com.fasterxml.jackson.databind.JsonNode fullConfiguration,
                                         Configurable configurable)
                                  throws ConfigurationException
        Validates that the full configuration contains valid configuration for given configurable.
        Parameters:
        fullConfiguration - the full configuration containing properties for all configurables
        configurable - the configurable to validate the configuration for
        Returns:
        the result of the validation.
        Throws:
        ConfigurationException - if reading the JSON schemas of the configurable failed
      • validate

        @Deprecated
        public ValidationResult validate​(@Nonnull
                                         org.jboss.dmr.ModelNode extensionConfiguration,
                                         @Nonnull
                                         org.jboss.dmr.ModelNode configurationSchema)
                                  throws ConfigurationException
        Deprecated.
        use the Jackson-based variant
        Validates the provided configuration against the provided schema.
        Parameters:
        extensionConfiguration - the actual configuration of some extension (not wrapped in the identifying object as is the case with the full configuration provided to validate(ModelNode, Configurable).
        configurationSchema - the schema to validate the configuration against
        Returns:
        the results of the validation
        Throws:
        ConfigurationException - if an error occurs during the processing of the data or schema as opposed to a simple validation failure which would be captured in the returned object
      • validate

        public ValidationResult validate​(com.fasterxml.jackson.databind.JsonNode extensionConfiguration,
                                         com.fasterxml.jackson.databind.JsonNode configurationSchema)
                                  throws ConfigurationException
        Validates the provided configuration against the provided schema.
        Parameters:
        extensionConfiguration - the actual configuration of some extension (not wrapped in the identifying object as is the case with the full configuration provided to validate(JsonNode, Configurable).
        configurationSchema - the schema to validate the configuration against
        Returns:
        the results of the validation
        Throws:
        ConfigurationException - if an error occurs during the processing of the data or schema as opposed to a simple validation failure which would be captured in the returned object