DataSourceTextField descriptionField = createTextField(Field.DESCRIPTION, MSG.common_title_description(), null,
100, false);
fields.add(descriptionField);
DataSourceField resourceGroupsField = new DataSourceField(Field.RESOURCE_GROUPS, FieldType.ANY,
MSG.common_title_resourceGroups());
fields.add(resourceGroupsField);
DataSourceField permissionsField = new DataSourceField(Field.PERMISSIONS, FieldType.ANY,
MSG.common_title_permissions());
fields.add(permissionsField);
DataSourceField subjectsField = new DataSourceField(Field.SUBJECTS, FieldType.ANY,
MSG.datasource_roles_field_subjects());
fields.add(subjectsField);
DataSourceField ldapGroupsField = new DataSourceField(Field.LDAP_GROUPS, FieldType.ANY,
MSG.datasource_roles_field_ldapGroups());
fields.add(ldapGroupsField);
DataSourceField bundleGroupsField = new DataSourceField(Field.BUNDLE_GROUPS, FieldType.ANY,
MSG.common_title_bundleGroups());
fields.add(bundleGroupsField);
return fields;
}