Code example for SearchControls

Methods: setSearchScope

0
    private static final boolean RETURN_OBJECT = true;
 
    //~ Instance fields ================================================================================================ 
 
    /** Default search controls */ 
    private SearchControls searchControls = new SearchControls();
 
    //~ Constructors =================================================================================================== 
 
    public SpringSecurityLdapTemplate(ContextSource contextSource) {
        Assert.notNull(contextSource, "ContextSource cannot be null");
        setContextSource(contextSource);
 
        searchControls.setSearchScope(SearchControls.SUBTREE_SCOPE);
    } 
 
    //~ Methods ======================================================================================================== 
 
    /** 
     * Performs an LDAP compare operation of the value of an attribute for a particular directory entry.