org.jasig.portlet.search.ldap
Class LdapSearchServiceImpl

java.lang.Object
  extended by org.jasig.portlet.search.ldap.LdapSearchServiceImpl

public class LdapSearchServiceImpl
extends java.lang.Object


Constructor Summary
LdapSearchServiceImpl()
           
 
Method Summary
 java.util.List<Person> searchDirectory(java.lang.String searchterm, boolean loggedIn)
          Search the configured LDAP directory with the specified search term
 void setGuestAttributes(java.util.List<java.lang.String> guestAttributes)
          Set the list of allowed LDAP attributes to display to guest users.
 void setLdapTemplate(org.springframework.ldap.core.LdapTemplate ldapTemplate)
           
 void setLoggedInAttributes(java.util.List<java.lang.String> loggedInAttributes)
          Set the list of allowed LDAP attributes to display to logged in users.
 void setPersonAttributesMapper(PersonAttributesMapper personAttributesMapper)
           
 void setQueryAttribute(java.lang.String queryAttribute)
          Set the LDAP attribute to run queries against.
 void setReturnedLimit(int returnedLimit)
          Set the limit for the number of Person objects that should be returned from an LDAP search.
 void setSearchBase(java.lang.String searchBase)
          Set the search base for LDAP directory search.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapSearchServiceImpl

public LdapSearchServiceImpl()
Method Detail

searchDirectory

public java.util.List<Person> searchDirectory(java.lang.String searchterm,
                                              boolean loggedIn)
Search the configured LDAP directory with the specified search term

Parameters:
searchterm - user's search term
loggedIn - true for logged in users
Returns:
List of matching Person objects

setQueryAttribute

public void setQueryAttribute(java.lang.String queryAttribute)
Set the LDAP attribute to run queries against. This query is generally set to the full name attribute.

Parameters:
queryAttribute -

setLdapTemplate

public void setLdapTemplate(org.springframework.ldap.core.LdapTemplate ldapTemplate)

setPersonAttributesMapper

public void setPersonAttributesMapper(PersonAttributesMapper personAttributesMapper)

setGuestAttributes

public void setGuestAttributes(java.util.List<java.lang.String> guestAttributes)
Set the list of allowed LDAP attributes to display to guest users. The values in this list should match keys in the PersonAttributeMapper's attribute map.

Parameters:
guestAttributes -

setLoggedInAttributes

public void setLoggedInAttributes(java.util.List<java.lang.String> loggedInAttributes)
Set the list of allowed LDAP attributes to display to logged in users. The values in this list should match keys in the PersonAttributeMapper's attribute map.

Parameters:
loggedInAttributes -

setReturnedLimit

public void setReturnedLimit(int returnedLimit)
Set the limit for the number of Person objects that should be returned from an LDAP search.

Parameters:
returnedLimit -

setSearchBase

public void setSearchBase(java.lang.String searchBase)
Set the search base for LDAP directory search. If this is not required, it may be left as an empty string.

Parameters:
searchBase -


Copyright © 2009 Jasig. All Rights Reserved.