Пример #1
0
  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));
  }
Пример #2
0
  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);
  }
Пример #3
0
 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);
 }
Пример #4
0
 private void register() {
   groupFieldBinding.registerParallels(bindings.toArray(new FieldBindingInterface<?>[0]));
 }
Пример #5
0
 /**
  * DOC bessaies Comment method "bind".
  *
  * @param modelData
  */
 public void bind(ModelData modelData) {
   groupFieldBinding.bind(modelData);
 }