}).toImmutableSet();
}
@Override
public void updateView(long actor, ColumnView viewInfo, Set<ColumnInfo> columns) {
final ColumnsView columnsView = checkPresence(columnViewRepository.findOne(viewInfo.id));
if (columnsView.isDefault()) {
throw new AccessDenied("Can't update default view");
}
columnsView.getColumns().clear();
columnsView.getColumns().addAll(transformViewToModel(columns));
columnsView.setPrimary(viewInfo.isPrimary);
columnsView.setName(viewInfo.name);
columnViewRepository.save(columnsView);
}