org.jasig.portlet.contacts.adapters.impl.ldap
Class LdapSearchAdapter
java.lang.Object
org.jasig.portlet.contacts.adapters.impl.AbstractContactAdapter
org.jasig.portlet.contacts.adapters.impl.AbstractSearchAdapter
org.jasig.portlet.contacts.adapters.impl.ldap.LdapSearchAdapter
- All Implemented Interfaces:
- ContactAdapter, SearchAdapter
public class LdapSearchAdapter
- extends AbstractSearchAdapter
- Author:
- Chris White
|
Constructor Summary |
LdapSearchAdapter(org.springframework.ldap.core.LdapTemplate ldapTemplate)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LdapSearchAdapter
public LdapSearchAdapter(org.springframework.ldap.core.LdapTemplate ldapTemplate)
setTimeLimit
public void setTimeLimit(int timeLimit)
setCountLimit
public void setCountLimit(int countLimit)
setSearchAttribute
public void setSearchAttribute(String searchAttribute)
setFilterAttribute
public void setFilterAttribute(String filterAttribute)
- Specified by:
setFilterAttribute in interface SearchAdapter- Overrides:
setFilterAttribute in class AbstractSearchAdapter
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<Contact> 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)
setAttributesMapper
public void setAttributesMapper(org.springframework.ldap.core.AttributesMapper contactMapper)
Copyright © 2013 Jasig. All Rights Reserved.