Interface DestinationFilterCreationValidator


public interface DestinationFilterCreationValidator
An interface for validating whether the creation of a new destination filter should be allowed; otherwise, it throws an IllegalStateException
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validate(StreamDestinationFilterRuleDTO destinationFilterRuleDTO)
    This method checks if the specified criteria for creating a new destination filter are met.
  • Method Details

    • validate

      void validate(StreamDestinationFilterRuleDTO destinationFilterRuleDTO) throws IllegalStateException
      This method checks if the specified criteria for creating a new destination filter are met. If the creation is not allowed, an appropriate exception is thrown.
      Parameters:
      destinationFilterRuleDTO - dto that should be verified
      Throws:
      IllegalStateException - if the creating filter is not permitted