if ( getUser().isAuthorized(field) &&
wfd.get(field.getIndex()).isQuickSearch() &&
field.isEnabled() &&
field.isSearchable()) {
DcWebField wf = new DcWebField(field);
if (field.getIndex() == DcObject._SYS_AVAILABLE)
wf.setValue(Boolean.TRUE);
if (wf.isLongTextfield())
wf.setType(DcWebField._TEXTFIELD);
if (wf.isMultiRelate())
wf.setType(DcWebField._DROPDOWN);
filterFields.add(wf);
}
}
wo.setFilterFields(filterFields);