Package ddf.catalog.security
Interface SourceWarningsFilter
public interface SourceWarningsFilter
This code is experimental. While this interface is functional and tested, it may change or be
removed in a future version of the library.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanFilter(ProcessingDetails details) This method determines whether thisSourceWarningsFiltercan correctlyfiltertheProcessingDetailspassed to itfilter(ProcessingDetails details) If thisSourceWarningsFiltercan filtertheProcessingDetailspassed to it, then this method applies a filter to thewarningsof theProcessingDetails
-
Method Details
-
canFilter
This method determines whether thisSourceWarningsFiltercan correctlyfiltertheProcessingDetailspassed to it- Parameters:
details- theProcessingDetailswhich this method examines as part of its determination of whether thisSourceWarningsFiltercan correctlyfilterthese details and not encounter an error or exception in the process- Returns:
trueif thisSourceWarningsFiltercan correctlyfilterthe details passed in; otherwise,false
-
filter
If thisSourceWarningsFiltercan filtertheProcessingDetailspassed to it, then this method applies a filter to thewarningsof theProcessingDetails- Parameters:
details- theProcessingDetailswhich contain thewarningswhich this method filters- Returns:
- new
ProcessingDetailswhich correspond to the details passed in except that thewarningsof the newProcessingDetailscontain only the warnings of the original details which this method recognizes as useful to the user - Throws:
NullPointerException- ifcanFilter(details)determines that thisSourceWarningsFiltercannot filter the details
-