List<K> getActive(Map<String,String> controls) { List<K> classes = new ArrayList<>(); for(int i=0; i<Class_Order.length; i++) { String PostFilter_Name = Class_Order[i]; for(int j=0; j<Class_Controls[i].length; j++) { String ControlName = Class_Controls[i][j]; String value = (String)controls.get(ControlName); if (logger.isDebugEnabled()){ logger.debug(ControlName+ "("+PostFilter_Name+") => "+value); } if (value == null) continue; value = value.toLowerCase(); if(! (value.equals("off") || value.equals("false"))) { classes.add(getModule(PostFilter_Name)); //we've now run this post process module, no need to check the rest of the controls for it. break; } } } return classes; }
List<K> getActive(Map<String,String> controls) { List<K> classes = new ArrayList<>(); for(int i=0; i<Class_Order.length; i++) { String PostFilter_Name = Class_Order[i]; for(int j=0; j<Class_Controls[i].length; j++) { String ControlName = Class_Controls[i][j]; String value = (String)controls.get(ControlName); if (logger.isDebugEnabled()){ logger.debug(ControlName+ "("+PostFilter_Name+") => "+value); } if (value == null) continue; value = value.toLowerCase(); if(! (value.equals("off") || value.equals("false"))) { classes.add(getModule(PostFilter_Name)); //we've now run this post process module, no need to check the rest of the controls for it. break; } } } return classes; }
((LocalManager)manager).processModuleManager.getModule(q.getControl("previousprocess")).process(manager, q);
((LocalManager)manager).processModuleManager.getModule(q.getControl("previousprocess")).process(manager, q);