public class LdapGroupSearch extends Object
Constructor and Description |
---|
LdapGroupSearch(LdapConfiguration configuration)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Collection<ExternalGroupVO> |
findGroups(String searchString)
Searches for entries within the directory
|
ExternalGroupVO |
getGroup(String groupDN)
Retrieves a group by its DN if the group exists
|
boolean |
hasGroup(String groupDN)
Checks, if the given group exists.
|
public LdapGroupSearch(LdapConfiguration configuration) throws LdapAttributeMappingException
configuration
- The configuration to be used.LdapAttributeMappingException
- Exception.public Collection<ExternalGroupVO> findGroups(String searchString)
searchString
- Search string.public ExternalGroupVO getGroup(String groupDN) throws org.springframework.dao.DataAccessException, LdapAttributeMappingException
groupDN
- the DN of the group to retrieveorg.springframework.dao.DataAccessException
- in case of an error while communicating with the repositoryLdapAttributeMappingException
- in case the retrieved entry cannot be mapped to the VOpublic boolean hasGroup(String groupDN) throws org.springframework.dao.DataAccessException
groupDN
- The groups dn.org.springframework.dao.DataAccessException
- Exception.Copyright © 2019 Communote team. All rights reserved.