private JPasswordField passwordField;\r
\r
private JPasswordField confirmPasswordField;\r
+ \r
+ private JTextField displayNameField;\r
+ \r
+ private JTextField emailAddressField;\r
\r
private JCheckBox canAdminCheckbox;\r
\r
passwordField = new JPasswordField(anUser.password == null ? "" : anUser.password, 25);\r
confirmPasswordField = new JPasswordField(anUser.password == null ? "" : anUser.password,\r
25);\r
- canAdminCheckbox = new JCheckBox(Translation.get("gb.canAdminDescription"), anUser.canAdmin);\r
+ displayNameField = new JTextField(anUser.displayName == null ? "" : anUser.displayName, 25);\r
+ emailAddressField = new JTextField(anUser.emailAddress == null ? "" : anUser.emailAddress, 25);\r
+ canAdminCheckbox = new JCheckBox(Translation.get("gb.canAdminDescription"), anUser.canAdmin); \r
notFederatedCheckbox = new JCheckBox(\r
Translation.get("gb.excludeFromFederationDescription"),\r
anUser.excludeFromFederation);\r
fieldsPanel.add(newFieldPanel(Translation.get("gb.username"), usernameField));\r
fieldsPanel.add(newFieldPanel(Translation.get("gb.password"), passwordField));\r
fieldsPanel.add(newFieldPanel(Translation.get("gb.confirmPassword"), confirmPasswordField));\r
+ fieldsPanel.add(newFieldPanel(Translation.get("gb.displayName"), displayNameField));\r
+ fieldsPanel.add(newFieldPanel(Translation.get("gb.emailAddress"), emailAddressField));\r
fieldsPanel.add(newFieldPanel(Translation.get("gb.canAdmin"), canAdminCheckbox));\r
fieldsPanel.add(newFieldPanel(Translation.get("gb.excludeFromFederation"),\r
notFederatedCheckbox));\r
// no change in password\r
user.password = password;\r
}\r
+ \r
+ user.displayName = displayNameField.getText().trim();\r
+ user.emailAddress = emailAddressField.getText().trim();\r
\r
user.canAdmin = canAdminCheckbox.isSelected();\r
user.excludeFromFederation = notFederatedCheckbox.isSelected();\r
List<UserModel> list;\r
\r
enum Columns {\r
- Name, AccessLevel, Teams, Repositories;\r
+ Name, Display_Name, AccessLevel, Teams, Repositories;\r
\r
@Override\r
public String toString() {\r
switch (col) {\r
case Name:\r
return Translation.get("gb.name");\r
+ case Display_Name:\r
+ return Translation.get("gb.displayName");\r
case AccessLevel:\r
return Translation.get("gb.accessLevel");\r
case Teams:\r
switch (col) {\r
case Name:\r
return model.username;\r
+ case Display_Name:\r
+ return model.displayName;\r
case AccessLevel:\r
if (model.canAdmin) {\r
return "administrator";\r