/** * Returns a search controls object configured to perform an LDAP compare operation. * * @return search controls */ public static SearchControls getCompareSearchControls() { final SearchControls ctls = new SearchControls(); ctls.setReturningAttributes(new String[0]); ctls.setSearchScope(SearchScope.OBJECT.ordinal()); return ctls; }
/** * Returns a search controls object configured to perform an LDAP compare operation. * * @return search controls */ public static SearchControls getCompareSearchControls() { final SearchControls ctls = new SearchControls(); ctls.setReturningAttributes(new String[0]); ctls.setSearchScope(SearchScope.OBJECT.ordinal()); return ctls; }
/** * Initializes the object after properties are set. */ @PostConstruct public void initialize() { for (final SearchScope scope : SearchScope.values()) { if (scope.ordinal() == this.searchControls.getSearchScope()) { this.searchScope = scope; } } this.attributes = getResultAttributeMapping().keySet().toArray(new String[getResultAttributeMapping().size()]); }
/** * Returns a search controls object configured to perform an LDAP compare operation. * * @return search controls */ public static SearchControls getCompareSearchControls() { final SearchControls ctls = new SearchControls(); ctls.setReturningAttributes(new String[0]); ctls.setSearchScope(SearchScope.OBJECT.ordinal()); return ctls; }