Examples of LdapServerListEntryDTO


Examples of com.sonatype.security.ldap.api.dto.LdapServerListEntryDTO

          e);
    }
  }

  private LdapServerListEntryDTO toListEntry(Request request, CLdapServerConfiguration ldapServer) {
    LdapServerListEntryDTO listEntry = new LdapServerListEntryDTO();
    listEntry.setId(ldapServer.getId());
    listEntry.setName(ldapServer.getName());
    listEntry.setUrl(this.createChildReference(request, ldapServer.getId()).toString());

    try {
      listEntry.setLdapUrl(new LdapURL(ldapServer.getConnectionInfo().getProtocol(), ldapServer
          .getConnectionInfo().getHost(), ldapServer.getConnectionInfo().getPort(), ldapServer
          .getConnectionInfo().getSearchBase()).toString());
    }
    catch (MalformedURLException e) {
      this.getLogger().warn("Ldap Server has invalid URL", e);
      listEntry.setLdapUrl("FIX: Invalid LDAP URL");
    }

    return listEntry;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.