private void updateDatabaseLinkVisibility() { String value = groupFieldBinding.updateModelData().get(Config.config_database_driver.name()); boolean b = hasEditRight() && "org.h2.Driver".equals(value); updateConfigVisibility(b, Arrays.asList(Config.config_database_link)); updateConfigVisibility(b, Arrays.asList(Config.config_audit_database_link)); }
private void updateSmtpVisibility() { String value = groupFieldBinding.updateModelData().get(Config.config_smtp_useSmtp.name()); boolean visibility = "true".equals(value); List<Config> configs = Arrays.asList( Config.config_smtp_host, Config.config_smtp_port, Config.config_smtp_requireSSL, Config.config_smtp_userName, Config.config_smtp_password); updateConfigVisibility(visibility, configs); }
private void updateLdapVisibility() { String value = groupFieldBinding.updateModelData().get(Config.config_ldap_useLDAPAutentication.name()); boolean visibility = "true".equals(value); List<Config> configs = Arrays.asList( Config.config_ldap_host, Config.config_ldap_port, Config.config_ldap_root, Config.config_ldap_principalDNPrefix, Config.config_ldap_adminPassword, Config.config_ldap_loginField, Config.config_ldap_emailField, Config.config_ldap_firstName, Config.config_ldap_lastName, Config.config_ldap_svnLoginField); updateConfigVisibility(visibility, configs); }
private void register() { groupFieldBinding.registerParallels(bindings.toArray(new FieldBindingInterface<?>[0])); }
/** * DOC bessaies Comment method "bind". * * @param modelData */ public void bind(ModelData modelData) { groupFieldBinding.bind(modelData); }