private void loadRuletypes() { ArrayList<String> enabledRuleTypes = taskServiceImpl.getEnabledFilterRuleTypes(); while (ruletypeModelFilter.getRowCount() > 0) { ruletypeModelFilter.removeRow(0); } ArrayList<String> ruletypes = taskServiceImpl.loadRuletypesForFilter(violationDate); boolean isEnabled; for (String ruletype : ruletypes) { isEnabled = false; if (enabledRuleTypes.contains(ruletype)) { isEnabled = true; } ruletypeModelFilter.addRow(new Object[] {isEnabled, ruletype}); } }
private void loadViolationtypes() { ArrayList<String> enabledViolations = taskServiceImpl.getEnabledFilterViolations(); while (violationtypeModelFilter.getRowCount() > 0) { violationtypeModelFilter.removeRow(0); } ArrayList<String> violationtypes = taskServiceImpl.loadViolationtypesForFilter(violationDate); boolean isEnabled; for (String violationtype : violationtypes) { if (!violationtype.isEmpty()) { isEnabled = false; if (enabledViolations.contains(violationtype)) { isEnabled = true; } violationtypeModelFilter.addRow(new Object[] {isEnabled, violationtype}); } } }
private void saveActionPerformed() { ruletypesfilter = getRuletypesFilter(); violationtypesfilter = getViolationtypesFilter(); pathsfilter = getPathFilter(); ts.setFilterValues( ruletypesfilter, violationtypesfilter, pathsfilter, hideFilteredValues.isSelected()); bv.setViolations(); dispose(); }
private void saveActionPerformed() { ruletypesfilter = getRuletypesFilter(); violationtypesfilter = getViolationtypesFilter(); pathsfilter = getPathFilter(); if (!checkPathsNames()) { return; } PathDTO dto = new PathDTO(ruletypesfilter, violationtypesfilter, pathsfilter); taskServiceImpl.setFilterValues(dto, hideFilteredValues.isSelected(), violationDate); filterViolationsObserver.updateViolationsTable(); dispose(); }
private void LoadRuleTypes() { for (RuleType ruletype : ruletypes) { ruletypeModel.addRow(new Object[] {ruletype.getKey(), ts.getAllSeverities().get(0)}); } }
private void applyViolationTypesActionPerformed() { // TODO: Fix the fetching of the ruletypes en put them in a list to return to the reposetory ts.UpdateRuletype(ruletypeModel, violationtypeModel, language); }
private void loadViolationtypes() { ArrayList<String> violationtypes = ts.loadViolationtypes(); for (String violationtype : violationtypes) { violationtypeModelFilter.addRow(new Object[] {false, violationtype}); } }
private void loadRuletypes() { ArrayList<String> ruletypes = ts.loadRuletypes(); for (String ruletype : ruletypes) { ruletypeModelFilter.addRow(new Object[] {false, ruletype}); } }