org.jasig.portlet.contacts.adapters.impl.ldap
Class LdapSearchAdapter

java.lang.Object
  extended by org.jasig.portlet.contacts.adapters.impl.AbstractContactAdapter
      extended by org.jasig.portlet.contacts.adapters.impl.AbstractSearchAdapter
          extended by org.jasig.portlet.contacts.adapters.impl.ldap.LdapSearchAdapter
All Implemented Interfaces:
ContactAdapter, SearchAdapter

public class LdapSearchAdapter
extends AbstractSearchAdapter

Author:
Chris White

Field Summary
 
Fields inherited from class org.jasig.portlet.contacts.adapters.impl.AbstractSearchAdapter
filters, searchFilterAttribute
 
Constructor Summary
LdapSearchAdapter(org.springframework.ldap.core.LdapTemplate ldapTemplate)
           
 
Method Summary
protected  String constructSearch(String searchValue, String searchFilter)
           
 Contact getByURN(String urn)
           
protected  SearchControls getSearchControls()
          Construct a new search controls object for our search
protected  List<Attributes> getSearchResults(String search)
           
protected  String[] requiredAttributes()
           
 ContactSet search(String searchText)
           
 ContactSet search(String searchText, String filter)
           
 void setContactMapper(ContactMapper mapper)
           
 void setCountLimit(int countLimit)
           
 void setModelObjectFactory(ModelObjectFactory factory)
           
 void setSearchAttribute(String searchAttribute)
           
 void setTimeLimit(int timeLimit)
           
 
Methods inherited from class org.jasig.portlet.contacts.adapters.impl.AbstractSearchAdapter
getFilterAttribute, getFilters, setFilterAttribute, setFilters
 
Methods inherited from class org.jasig.portlet.contacts.adapters.impl.AbstractContactAdapter
getContext, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jasig.portlet.contacts.adapters.ContactAdapter
getContext, setContext
 

Constructor Detail

LdapSearchAdapter

public LdapSearchAdapter(org.springframework.ldap.core.LdapTemplate ldapTemplate)
Method Detail

setTimeLimit

public void setTimeLimit(int timeLimit)

setCountLimit

public void setCountLimit(int countLimit)

setSearchAttribute

public void setSearchAttribute(String searchAttribute)

getByURN

public Contact getByURN(String urn)

search

public ContactSet search(String searchText)

search

public ContactSet search(String searchText,
                         String filter)

constructSearch

protected String constructSearch(String searchValue,
                                 String searchFilter)

getSearchResults

protected List<Attributes> getSearchResults(String search)

getSearchControls

protected SearchControls getSearchControls()
Construct a new search controls object for our search


requiredAttributes

protected String[] requiredAttributes()
Specified by:
requiredAttributes in class AbstractContactAdapter

setModelObjectFactory

@Autowired
public void setModelObjectFactory(ModelObjectFactory factory)

setContactMapper

public void setContactMapper(ContactMapper mapper)


Copyright © 2012 Jasig. All Rights Reserved.