Package com.pullreports.model
Interface LabelValuesProvider
- All Known Implementing Classes:
PlaceholderDefaultQueryLabelValuesProvider,QueryLabelValuesProvider,TableQueryLabelValuesProvider
public interface LabelValuesProvider
A LabelValuesProvider is responsible for creating
LabelValue Lists for a
Column. The List is used to populate an HTML <select> of column values
within the Pull Reports Ad Hoc Creator Filter web form.-
Method Summary
Modifier and TypeMethodDescriptioncreateLabelValues(DataSource dataSource, jakarta.servlet.http.HttpServletRequest request) Returns a List ofLabelValuebeans to use as values for the parentColumnwithin the Pull Reports Ad Hoc Creator Filter web form.
-
Method Details
-
createLabelValues
List<LabelValue> createLabelValues(DataSource dataSource, jakarta.servlet.http.HttpServletRequest request) Returns a List ofLabelValuebeans to use as values for the parentColumnwithin the Pull Reports Ad Hoc Creator Filter web form. The Ad Hoc Creator uses the labels and values within an HTML <select> element associated with the Filtervaluefield.The Ad Hoc Creator will surround consecutive LabelValue beans which have equal
groupproperties with an HTML <optgroup> element labeled with thegroup.- Parameters:
dataSource- TheDataSourceused to fill the parentReport. Use the dataSource to dynamically materialize a list ofLabelValuebeans from a JDBC query. Any opened JDBC connection must be closed by the implementing method.request- TheHttpServletRequestsent to the GET Label Value List API. to retrieve the LabelValue list. Use the request parameter to contextualize the returned list to the current user.- Returns:
- A List of
LabelValuebeans representing the values of the parentColumn.
-