Ejemplo n.º 1
0
 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});
   }
 }
Ejemplo n.º 2
0
 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});
     }
   }
 }
Ejemplo n.º 3
0
 private void saveActionPerformed() {
   ruletypesfilter = getRuletypesFilter();
   violationtypesfilter = getViolationtypesFilter();
   pathsfilter = getPathFilter();
   ts.setFilterValues(
       ruletypesfilter, violationtypesfilter, pathsfilter, hideFilteredValues.isSelected());
   bv.setViolations();
   dispose();
 }
Ejemplo n.º 4
0
 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);
 }
Ejemplo n.º 7
0
 private void loadViolationtypes() {
   ArrayList<String> violationtypes = ts.loadViolationtypes();
   for (String violationtype : violationtypes) {
     violationtypeModelFilter.addRow(new Object[] {false, violationtype});
   }
 }
Ejemplo n.º 8
0
 private void loadRuletypes() {
   ArrayList<String> ruletypes = ts.loadRuletypes();
   for (String ruletype : ruletypes) {
     ruletypeModelFilter.addRow(new Object[] {false, ruletype});
   }
 }