Interface UpdateWarehouseInputValidator

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface UpdateWarehouseInputValidator
    A validator for the input of UpdateWarehouseHandler, may be used to provide custom warehouse validation.

    Default implementation of this validator:

    • validates if a provided warehouse name is a valid identifier
    • validates if a provided warehouse name is different than the currently configured one
    • validates if the application can access the new warehouse
    • Method Detail

      • validate

        ConnectorResponse validate​(Identifier warehouse)
        Validates the provided warehouse.
        Parameters:
        warehouse - new warehouse name provided to the handler
        Returns:
        a response with the code OK if the validation was successful, otherwise a response with an error code and an error message