/** * Handle the dn of a search entry. * * @param conn the search was performed on * @param request used to find the search entry * @param entry search entry to extract the dn from * * @return handled dn */ protected String handleDn(final Connection conn, final SearchRequest request, final SearchEntry entry) { return entry.getDn(); }
/** * Handle the dn of a search entry. * * @param conn the search was performed on * @param request used to find the search entry * @param entry search entry to extract the dn from * * @return handled dn */ protected String handleDn(final Connection conn, final SearchRequest request, final SearchEntry entry) { return entry.getDn(); }
/** * Handle the dn of a search entry. * * @param conn the search was performed on * @param request used to find the search entry * @param entry search entry to extract the dn from * * @return handled dn */ protected String handleDn(final Connection conn, final SearchRequest request, final SearchEntry entry) { return entry.getDn(); }
@Override public String toString() { return String.format( "[dn=%s%s, responseControls=%s, messageId=%s]", getDn(), getAttributes(), Arrays.toString(responseControls), messageId); } }
@Override protected String handleDn(final Connection conn, final SearchRequest request, final SearchEntry entry) { return CaseChange.perform(dnCaseChange, entry.getDn()); }
@Override public String toString() { return String.format( "[dn=%s%s, responseControls=%s, messageId=%s]", getDn(), getAttributes(), Arrays.toString(responseControls), messageId); } }
@Override protected String handleDn(final Connection conn, final SearchRequest request, final SearchEntry entry) { return CaseChange.perform(dnCaseChange, entry.getDn()); }
@Override protected String handleDn(final Connection conn, final SearchRequest request, final SearchEntry entry) { return CaseChange.perform(dnCaseChange, entry.getDn()); }
@Override public String toString() { return String.format( "[dn=%s%s, responseControls=%s, messageId=%s]", getDn(), getAttributes(), Arrays.toString(responseControls), messageId); } }
@Override public HandlerResult<SearchEntry> handle(final Connection conn, final SearchRequest request, final SearchEntry entry) throws LdapException { // Recursively searches a list of attributes and merges those results with // the existing entry. final List<String> searchedDns = new ArrayList<>(); if (entry.getAttribute(searchAttribute) != null) { searchedDns.add(entry.getDn()); readSearchAttribute(conn, entry, searchedDns); } else { recursiveSearch(conn, entry.getDn(), entry, searchedDns); } return new HandlerResult<>(entry); }
@Override public HandlerResult<SearchEntry> handle(final Connection conn, final SearchRequest request, final SearchEntry entry) throws LdapException { // Recursively searches a list of attributes and merges those results with // the existing entry. final List<String> searchedDns = new ArrayList<>(); if (entry.getAttribute(searchAttribute) != null) { searchedDns.add(entry.getDn()); readSearchAttribute(conn, entry, searchedDns); } else { recursiveSearch(conn, entry.getDn(), entry, searchedDns); } return new HandlerResult<>(entry); }
@Override protected void handleAttributes(final Connection conn, final SearchRequest request, final SearchEntry entry) throws LdapException { if (entry.getAttribute(dnAttributeName) == null) { entry.addAttribute(new LdapAttribute(dnAttributeName, entry.getDn())); } else if (addIfExists) { entry.getAttribute(dnAttributeName).addStringValue(entry.getDn()); } }
@Override protected void handleAttributes(final Connection conn, final SearchRequest request, final SearchEntry entry) throws LdapException { if (entry.getAttribute(dnAttributeName) == null) { entry.addAttribute(new LdapAttribute(dnAttributeName, entry.getDn())); } else if (addIfExists) { entry.getAttribute(dnAttributeName).addStringValue(entry.getDn()); } }
@Override protected void handleAttributes(final Connection conn, final SearchRequest request, final SearchEntry entry) throws LdapException { if (entry.getAttribute(dnAttributeName) == null) { entry.addAttribute(new LdapAttribute(dnAttributeName, entry.getDn())); } else if (addIfExists) { entry.getAttribute(dnAttributeName).addStringValue(entry.getDn()); } }
/** * Returns a jndi search result that represents the supplied search entry. * * @param entry search entry * * @return jndi search result */ public SearchResult fromSearchEntry(final SearchEntry entry) { return new SearchResult(entry.getDn(), null, fromLdapAttributes(entry.getAttributes())); }
/** * Returns a jndi search result that represents the supplied search entry. * * @param entry search entry * * @return jndi search result */ public SearchResult fromSearchEntry(final SearchEntry entry) { return new SearchResult(entry.getDn(), null, fromLdapAttributes(entry.getAttributes())); }
/** * Returns a jndi search result that represents the supplied search entry. * * @param entry search entry * * @return jndi search result */ public SearchResult fromSearchEntry(final SearchEntry entry) { return new SearchResult(entry.getDn(), null, fromLdapAttributes(entry.getAttributes())); }