Package com.day.cq.reporting
Interface Filter
public interface Filter
This interface represents a filter used for reports.
-
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(FilterSettings settings) Configures the filter.Creates aFilterSettingsobject that is suitable for configuring the filter.getId()Gets the filter's ID.booleanisActive()Checks if the filter is active.booleanisMatching(CellValue cellData) Checks if the specified data row matches the filter (= should be included in the result set due to current filter settings).
-
Method Details
-
getId
String getId()Gets the filter's ID.- Returns:
- The filter ID
-
createSettings
FilterSettings createSettings()Creates aFilterSettingsobject that is suitable for configuring the filter.- Returns:
- The
FilterSettingsobject
-
configure
Configures the filter.- Parameters:
settings- the filter's settings
-
isActive
boolean isActive()Checks if the filter is active.- Returns:
trueif the filter is active
-
isMatching
Checks if the specified data row matches the filter (= should be included in the result set due to current filter settings).
Note that this method may only be called if
this.isActive() == true.- Parameters:
cellData- The data to check- Returns:
- True if the data row matches the filter
-