Tidied formatting of toString output for FilterBasedLdapUserSearch

This commit is contained in:
Luke Taylor 2008-03-22 21:40:54 +00:00
parent 162933155e
commit 30a6abbe50
1 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ public class FilterBasedLdapUserSearch implements LdapUserSearch {
*/ */
public DirContextOperations searchForUser(String username) { public DirContextOperations searchForUser(String username) {
if (logger.isDebugEnabled()) { if (logger.isDebugEnabled()) {
logger.debug("Searching for user '" + username + "', with user search " + this.toString()); logger.debug("Searching for user '" + username + "', with user search " + this);
} }
SpringSecurityLdapTemplate template = new SpringSecurityLdapTemplate(contextSource); SpringSecurityLdapTemplate template = new SpringSecurityLdapTemplate(contextSource);
@ -162,7 +162,7 @@ public class FilterBasedLdapUserSearch implements LdapUserSearch {
sb.append("searchBase: '").append(searchBase).append("'"); sb.append("searchBase: '").append(searchBase).append("'");
sb.append(", scope: ") sb.append(", scope: ")
.append(searchControls.getSearchScope() == SearchControls.SUBTREE_SCOPE ? "subtree" : "single-level, "); .append(searchControls.getSearchScope() == SearchControls.SUBTREE_SCOPE ? "subtree" : "single-level, ");
sb.append("searchTimeLimit: ").append(searchControls.getTimeLimit()); sb.append(", searchTimeLimit: ").append(searchControls.getTimeLimit());
sb.append(", derefLinkFlag: ").append(searchControls.getDerefLinkFlag()).append(" ]"); sb.append(", derefLinkFlag: ").append(searchControls.getDerefLinkFlag()).append(" ]");
return sb.toString(); return sb.toString();