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 ofLabelValue
beans to use as values for the parentColumn
within 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 ofLabelValue
beans to use as values for the parentColumn
within 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 Filtervalue
field.The Ad Hoc Creator will surround consecutive LabelValue beans which have equal
group
properties with an HTML <optgroup> element labeled with thegroup
.- Parameters:
dataSource
- TheDataSource
used to fill the parentReport
. Use the dataSource to dynamically materialize a list ofLabelValue
beans from a JDBC query. Any opened JDBC connection must be closed by the implementing method.request
- TheHttpServletRequest
sent 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
LabelValue
beans representing the values of the parentColumn
.
-