PartitionEventType[] typesFilter = getArrayFilter(request, FILTER_EVENT_TYPE, PartitionEventType.class);
if (statusesFilter == null || statusesFilter.length == 0 || typesFilter == null || typesFilter.length == 0) {
return null; // user didn't select any ex. status or event type - return null to indicate no data should
// be displayed
}
PartitionEventCriteria criteria = new PartitionEventCriteria();
// printRequestCriteria(request);
criteria.addFilterId(getFilter(request, FIELD_ID.propertyName(), Integer.class));
criteria.addFilterEventDetail(getFilter(request, FIELD_EVENT_DETAIL.propertyName(), String.class));
criteria.addFilterExecutionStatus(statusesFilter);
criteria.addFilterEventType(typesFilter);
//@todo: Remove me when finished debugging search expression
Log.debug(" *** PartitionEventCriteria Search String: " + getFilter(request, "search", String.class));
criteria.setSearchExpression(getFilter(request, "search", String.class));
return criteria;
}