Package org.graylog2.streams.filters
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 TypeMethodDescriptionvoidvalidate(StreamDestinationFilterRuleDTO destinationFilterRuleDTO) This method checks if the specified criteria for creating a new destination filter are met.
-
Method Details
-
validate
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
-