ReportDefinitionReportType reportDefinitionReportType,
ReportDefinitionDateRangeType dateRangeType, String dateStart,
String dateEnd, Properties properties) {
// Create the Selector with all the fields defined in the Mapping
Selector selector = new Selector();
List<String> reportFields = this.csvReportEntitiesMapping
.retrievePropertiesToSelect(reportDefinitionReportType);
// Add the inclusions from the properties file
List<String> reportFieldsToInclude = this.getReportInclusions(
reportDefinitionReportType, properties);
for (String reportField : reportFields) {
if (reportFieldsToInclude.contains(reportField)) {
selector.getFields().add(reportField);
}
}
this.adjustDateRange(reportDefinitionReportType, dateRangeType,
dateStart, dateEnd, selector);