public void getDomainSpecifDataForTasks( final int startRange, String filterValue, final List<TaskSummary> myTasksFromDataSet, boolean lastPageExactCount) { FilterSettings variablesTableSettings = view.getVariablesTableSettings(filterValue); variablesTableSettings.setTablePageSize(-1); variablesTableSettings.setServerTemplateId(selectedServerTemplate); dataSetQueryHelperDomainSpecific.setDataSetHandler(variablesTableSettings); dataSetQueryHelperDomainSpecific.setCurrentTableSettings(variablesTableSettings); dataSetQueryHelperDomainSpecific.setLastOrderedColumn(COLUMN_TASK_ID); dataSetQueryHelperDomainSpecific.setLastSortOrder(SortOrder.ASCENDING); List<Comparable> tasksIds = new ArrayList<Comparable>(); for (TaskSummary task : myTasksFromDataSet) { tasksIds.add(task.getTaskId()); } DataSetFilter filter = new DataSetFilter(); ColumnFilter filter1 = equalsTo(COLUMN_TASK_VARIABLE_TASK_ID, tasksIds); filter.addFilterColumn(filter1); variablesTableSettings.getDataSetLookup().addOperation(filter); dataSetQueryHelperDomainSpecific.lookupDataSet( 0, createDataSetDomainSpecificCallback( startRange, myTasksFromDataSet, variablesTableSettings.getDataSet(), lastPageExactCount)); }
public void filterGrid(FilterSettings tableSettings) { dataSetQueryHelper.setCurrentTableSettings(tableSettings); refreshGrid(); }