public class LDAPUserGroupCallbackImpl extends AbstractUserGroupInfo implements org.kie.api.task.UserGroupCallback
Following is a list of all supported properties:
Modifier and Type | Field and Description |
---|---|
static String |
BIND_PWD |
static String |
BIND_USER |
protected static String |
DEFAULT_ROLE_ATTR_ID |
protected static String |
DEFAULT_USER_ATTR_ID |
static String |
IS_USER_ID_DN |
static String |
LDAP_NAME_ESCAPE |
protected LdapSearcher |
ldapSearcher |
static String |
ROLE_ATTR_ID |
static String |
ROLE_CTX |
static String |
ROLE_FILTER |
static String |
SEARCH_SCOPE |
static String |
USER_ATTR_ID |
static String |
USER_CTX |
static String |
USER_FILTER |
static String |
USER_ROLES_CTX |
static String |
USER_ROLES_FILTER |
Constructor and Description |
---|
LDAPUserGroupCallbackImpl(boolean activate)
Constructor needs to have at least one (unused) parameter in order to prevent CDI from automatic deployment.
|
LDAPUserGroupCallbackImpl(Properties config) |
Modifier and Type | Method and Description |
---|---|
protected String |
escapeIllegalChars(String entityId) |
boolean |
existsGroup(String groupId) |
boolean |
existsUser(String userId) |
String |
getConfigProperty(String key) |
String |
getConfigProperty(String key,
String defaultValue) |
List<String> |
getGroupsForUser(String userId) |
protected String |
unescapeIllegalChars(String entityId) |
readProperties
public static final String USER_CTX
public static final String ROLE_CTX
public static final String USER_ROLES_CTX
public static final String USER_FILTER
public static final String ROLE_FILTER
public static final String USER_ROLES_FILTER
public static final String USER_ATTR_ID
public static final String ROLE_ATTR_ID
public static final String IS_USER_ID_DN
public static final String SEARCH_SCOPE
public static final String LDAP_NAME_ESCAPE
public static final String BIND_USER
public static final String BIND_PWD
protected static final String DEFAULT_ROLE_ATTR_ID
protected static final String DEFAULT_USER_ATTR_ID
protected LdapSearcher ldapSearcher
public LDAPUserGroupCallbackImpl(boolean activate)
activate
- ignoredpublic LDAPUserGroupCallbackImpl(Properties config)
config
- LDAP configuration propertiespublic boolean existsUser(String userId)
existsUser
in interface org.kie.api.task.UserGroupCallback
public boolean existsGroup(String groupId)
existsGroup
in interface org.kie.api.task.UserGroupCallback
public List<String> getGroupsForUser(String userId)
getGroupsForUser
in interface org.kie.api.task.UserGroupCallback
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.