List<Filter> filters = new ArrayList<Filter>() {{
for (Object propertyId : logContainer.getContainerPropertyIds()) {
add(new SimpleStringFilter(propertyId, filterExpression, true, false));
}
}};
logContainer.addContainerFilter(new Or(filters.toArray(new Filter[filters.size()])));
}
if (isHistorySuperuser && isBaseUserOnly) {
UserData user = (UserData) application.getUser();
logContainer.addContainerFilter(new Or(
new SimpleStringFilter("log.author", user.getRealName(), false, true),
new SimpleStringFilter("log.substitutedBy", user.getRealName(), false, true)));
}
getHistorySelection().setOnlyBaseUser(isBaseUserOnly);
getHistorySelection().setFilterExpression(filterExpression);