@Component public class LdapClient extends Object
| Constructor and Description |
|---|
LdapClient(org.springframework.core.env.Environment env,
org.springframework.ldap.core.LdapTemplate ldapTemplate) |
@Autowired
public LdapClient(org.springframework.core.env.Environment env,
org.springframework.ldap.core.LdapTemplate ldapTemplate)
public List<AccessIdRepresentationModel> searchUsersAndGroups(String name) throws pro.taskana.common.api.exceptions.InvalidArgumentException
name - lookup string for names or groupspro.taskana.common.api.exceptions.InvalidArgumentException - if input is shorter than minSearchForLengthpublic List<AccessIdRepresentationModel> searchUsersByNameOrAccessId(String name) throws pro.taskana.common.api.exceptions.InvalidArgumentException
public List<AccessIdRepresentationModel> getUsersByAccessId(String accessId)
public List<AccessIdRepresentationModel> searchGroupsByName(String name) throws pro.taskana.common.api.exceptions.InvalidArgumentException
public AccessIdRepresentationModel searchAccessIdByDn(String dn)
public List<AccessIdRepresentationModel> searchGroupsAccessIdIsMemberOf(String accessId) throws pro.taskana.common.api.exceptions.InvalidArgumentException
public String getUserSearchBase()
public String getUserSearchFilterName()
public String getUserSearchFilterValue()
public String getUserFirstnameAttribute()
public String getUserLastnameAttribute()
public String getUserIdAttribute()
public String getGroupSearchBase()
public String getBaseDn()
public String getGroupSearchFilterName()
public String getGroupSearchFilterValue()
public String getGroupNameAttribute()
public int calcMinSearchForLength(int defaultValue)
public int getMinSearchForLength()
public int calcMaxNumberOfReturnedAccessIds(int defaultValue)
public int getMaxNumberOfReturnedAccessIds()
public String getGroupsOfUser()
public boolean isUser(String accessId)
Copyright © 2020. All rights reserved.