use of org.netxms.client.log.ColumnFilter in project netxms by netxms.
the class ZoneConditionEditor method createFilter.
/* (non-Javadoc)
* @see org.netxms.ui.eclipse.logviewer.widgets.ConditionEditor#createFilter()
*/
@Override
public ColumnFilter createFilter() {
int op = getSelectedOperation();
ColumnFilter filter = new ColumnFilter(ColumnFilterType.EQUALS, zoneUin);
filter.setNegated(op == 1);
return filter;
}
use of org.netxms.client.log.ColumnFilter in project netxms by netxms.
the class AlarmStateConditionEditor method createFilter.
/* (non-Javadoc)
* @see org.netxms.ui.eclipse.logviewer.widgets.ConditionEditor#createFilter()
*/
@Override
public ColumnFilter createFilter() {
ColumnFilter filter = new ColumnFilter(ColumnFilterType.EQUALS, state.getSelectionIndex());
filter.setNegated(getSelectedOperation() == 1);
return filter;
}
use of org.netxms.client.log.ColumnFilter in project netxms by netxms.
the class FilterBuilder method createFilter.
/**
* @return
*/
public LogFilter createFilter() {
LogFilter filter = new LogFilter();
for (Entry<String, ColumnFilterEditor> e : columns.entrySet()) {
ColumnFilter cf = e.getValue().buildFilterTree();
if (cf != null) {
filter.setColumnFilter(e.getKey(), cf);
}
}
filter.setOrderingColumns(new ArrayList<OrderingColumn>(orderingColumns));
return filter;
}
use of org.netxms.client.log.ColumnFilter in project netxms by netxms.
the class ObjectConditionEditor method createFilter.
/* (non-Javadoc)
* @see org.netxms.ui.eclipse.logviewer.widgets.ConditionEditor#createFilter()
*/
@Override
public ColumnFilter createFilter() {
int op = getSelectedOperation();
ColumnFilter filter = new ColumnFilter(((op == 2) || (op == 3)) ? ColumnFilterType.CHILDOF : ColumnFilterType.EQUALS, objectId);
filter.setNegated((op == 1) || (op == 3));
return filter;
}
use of org.netxms.client.log.ColumnFilter in project netxms by netxms.
the class TextConditionEditor method createFilter.
/* (non-Javadoc)
* @see org.netxms.ui.eclipse.logviewer.widgets.ConditionEditor#createFilter()
*/
@Override
public ColumnFilter createFilter() {
ColumnFilter filter = new ColumnFilter(value.getText());
filter.setNegated(getSelectedOperation() == 1);
return filter;
}
Aggregations