Package com.day.cq.reporting
Interface Filter
-
public interface FilterThis interface represents a filter used for reports.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconfigure(FilterSettings settings)Configures the filter.FilterSettingscreateSettings()Creates aFilterSettingsobject that is suitable for configuring the filter.java.lang.StringgetId()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 Detail
-
getId
java.lang.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
void configure(FilterSettings settings)
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
boolean isMatching(CellValue cellData)
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
-
-