public List getModifiableMonitors(Table paramTable, UserWebImpl usr) throws Exception { // this = (this = TableManager.getInstance()).getTable("ad_monitor"); Table mo_table = TableManager.getInstance().getTable("ad_monitor"); QueryRequestImpl query; query = QueryEngine.getInstance().createRequest(usr.getSession()); query.setMainTable(mo_table.getId()); query.addSelection(mo_table.getColumn("id").getId()); query.addSelection(mo_table.getColumn("name").getId()); query.addSelection(mo_table.getColumn("monitor_type").getId()); query.addSelection(mo_table.getColumn("check_type").getId()); query.addSelection(mo_table.getColumn("isactive").getId()); query.addOrderBy(new int[] {mo_table.getColumn("name").getId()}, true); Expression localExpression = (localExpression = (localExpression = (localExpression = new Expression( new ColumnLink("ad_monitor.monitor_type"), "=obj", null)) .combine( new Expression( new ColumnLink("ad_monitor.monitor_type"), "=list", null), 2, null)) .combine(usr.getSecurityFilter(mo_table.getName(), 3), 1, null)) .combine( new Expression( new ColumnLink("ad_monitor.ad_table_id"), "=" + paramTable.getId(), null), 1, null); query.addParam(localExpression); logger.debug("getModifiableMonitors sql is:" + query.toSQL()); return QueryEngine.getInstance().doQueryList(query.toSQL()); }