mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
Merge 0.9.13-incubating changes back to master.
This commit is contained in:
@@ -313,8 +313,8 @@ public class ModeledConnection extends ModeledChildDirectoryObject<ConnectionMod
|
||||
logger.debug("Unable to parse numeric attribute.", e);
|
||||
}
|
||||
|
||||
// Set guacd hostname (no translation necessary)
|
||||
getModel().setProxyHostname(attributes.get(GUACD_HOSTNAME_NAME));
|
||||
// Translate guacd hostname
|
||||
getModel().setProxyHostname(TextField.parse(attributes.get(GUACD_HOSTNAME_NAME)));
|
||||
|
||||
// Translate guacd port
|
||||
try { getModel().setProxyPort(NumericField.parse(attributes.get(GUACD_PORT_NAME))); }
|
||||
|
@@ -526,16 +526,16 @@ public class ModeledUser extends ModeledDirectoryObject<UserModel> implements Us
|
||||
private void setUnrestrictedAttributes(Map<String, String> attributes) {
|
||||
|
||||
// Translate full name attribute
|
||||
getModel().setFullName(attributes.get(User.Attribute.FULL_NAME));
|
||||
getModel().setFullName(TextField.parse(attributes.get(User.Attribute.FULL_NAME)));
|
||||
|
||||
// Translate email address attribute
|
||||
getModel().setEmailAddress(attributes.get(User.Attribute.EMAIL_ADDRESS));
|
||||
getModel().setEmailAddress(TextField.parse(attributes.get(User.Attribute.EMAIL_ADDRESS)));
|
||||
|
||||
// Translate organization attribute
|
||||
getModel().setOrganization(attributes.get(User.Attribute.ORGANIZATION));
|
||||
getModel().setOrganization(TextField.parse(attributes.get(User.Attribute.ORGANIZATION)));
|
||||
|
||||
// Translate role attribute
|
||||
getModel().setOrganizationalRole(attributes.get(User.Attribute.ORGANIZATIONAL_ROLE));
|
||||
getModel().setOrganizationalRole(TextField.parse(attributes.get(User.Attribute.ORGANIZATIONAL_ROLE)));
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user