@Override
protected void addAncillaryColumns(ColumnPicker<PermissionsPageRow> columnPicker,
SortableHeaderGroup<PermissionsPageRow> sortableHeaderGroup) {
Column<PermissionsPageRow, String> userNameColumn = new Column<PermissionsPageRow, String>(new TextCell()) {
public String getValue(PermissionsPageRow row) {
return row.getUserName();
}
};
columnPicker.addColumn(userNameColumn,
new SortableHeader<PermissionsPageRow, String>(
sortableHeaderGroup,
constants.UserName1(),
userNameColumn),
true);
Column<PermissionsPageRow, String> isAdminColumn = new Column<PermissionsPageRow, String>(new TextCell()) {
public String getValue(PermissionsPageRow row) {
return row.isAdministrator() ? constants.Yes() : "";
}
};
columnPicker.addColumn(isAdminColumn,
new SortableHeader<PermissionsPageRow, String>(
sortableHeaderGroup,
constants.Administrator(),
isAdminColumn),
true);
Column<PermissionsPageRow, String> hasPackagePermissionsColumn = new Column<PermissionsPageRow, String>(new TextCell()) {
public String getValue(PermissionsPageRow row) {
return row.hasPackagePermissions() ? constants.Yes() : "";
}
};
columnPicker.addColumn(hasPackagePermissionsColumn,
new SortableHeader<PermissionsPageRow, String>(
sortableHeaderGroup,
constants.HasPackagePermissions(),
hasPackagePermissionsColumn),
true);
Column<PermissionsPageRow, String> hasCategoryPermissionsColumn = new Column<PermissionsPageRow, String>(new TextCell()) {
public String getValue(PermissionsPageRow row) {
return row.hasCategoryPermissions() ? constants.Yes() : "";
}
};
columnPicker.addColumn(hasCategoryPermissionsColumn,