public class LDAPLookupService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LDAP_SEARCH_CONTEXT |
static String |
LDAP_SEARCH_FILTER_DN |
static String |
LDAP_SEARCH_FILTER_GROUP |
static String |
LDAP_SEARCH_FILTER_PHRASE |
static String |
LDAP_USER_ATTRIBUTES |
protected javax.enterprise.event.Event<LDAPProfileEvent> |
ldapProfileEvents |
static int |
MAX_RESULT |
static int |
TIME_LIMIT |
| Constructor and Description |
|---|
LDAPLookupService() |
| Modifier and Type | Method and Description |
|---|---|
void |
cacheUser(String aUID,
org.imixs.workflow.ItemCollection user)
This method is used to put a user object into the cache.
|
String[] |
findGroups(String aUID)
Returns a string array containing all group names for a given UID.
|
org.imixs.workflow.ItemCollection |
findUser(String aUID)
Returns the ldap attributes for a given user.
|
org.imixs.workflow.ItemCollection |
findUser(String aUID,
boolean refresh)
Returns the ldap attributes for a given user.
|
String |
getDnSearchFilter() |
String |
getGroupSearchFilter() |
String |
getSearchContext() |
String |
getSearchFilterPhrase() |
boolean |
isEnabled() |
org.imixs.workflow.ItemCollection |
lookupLdapAttributes(String aUID)
Returns all attributes for a given user in an ItemCollection.
|
List<org.imixs.workflow.ItemCollection> |
searchUserList(String searchPhrase)
Returns a list of user entries form the ldap based on a search phrase
|
void |
setDnSearchFilter(String dnSearchFilter) |
void |
setGroupSearchFilter(String groupSearchFilter) |
void |
setSearchContext(String searchContext) |
void |
setSearchFilterPhrase(String searchFilterPhrase) |
public static final int MAX_RESULT
public static final int TIME_LIMIT
public static final String LDAP_SEARCH_CONTEXT
public static final String LDAP_SEARCH_FILTER_DN
public static final String LDAP_SEARCH_FILTER_GROUP
public static final String LDAP_SEARCH_FILTER_PHRASE
public static final String LDAP_USER_ATTRIBUTES
@Inject protected javax.enterprise.event.Event<LDAPProfileEvent> ldapProfileEvents
public String getDnSearchFilter()
public void setDnSearchFilter(String dnSearchFilter)
public String getSearchFilterPhrase()
public void setSearchFilterPhrase(String searchFilterPhrase)
public String getGroupSearchFilter()
public void setGroupSearchFilter(String groupSearchFilter)
public String getSearchContext()
public void setSearchContext(String searchContext)
public boolean isEnabled()
public org.imixs.workflow.ItemCollection findUser(String aUID)
aUID - - user idpublic org.imixs.workflow.ItemCollection findUser(String aUID, boolean refresh)
If the boolean 'refresh' is true the method lookup the user in any case with a search query and updates the cache.
aUID - - user idrefresh - - if true, cache will be refreshed.public void cacheUser(String aUID, org.imixs.workflow.ItemCollection user)
aUID - - useriduser - - user profilepublic List<org.imixs.workflow.ItemCollection> searchUserList(String searchPhrase)
searchPhrase - - search Phrasepublic String[] findGroups(String aUID)
aUID - - user unique idpublic org.imixs.workflow.ItemCollection lookupLdapAttributes(String aUID)
The method makes a direct ldap lookup. No cache is used.
It is recommended to use the method findUser instead of the method lookupLdapAttributes to use the internal caching mechanism.
aUID - - user idCopyright © 2020 Imixs Software Solutions GmbH. All rights reserved.