Package com.flowable.idm.engine.ldap
Class LdapUserQuery
java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<T,U>
com.flowable.idm.engine.ldap.AbstractLdapQuery<PlatformUserQuery,PlatformUser>
com.flowable.idm.engine.ldap.LdapUserQuery
- All Implemented Interfaces:
PlatformUserQuery
,Serializable
,Query<PlatformUserQuery,
,PlatformUser> Command<Object>
,UserBaseQuery<PlatformUserQuery,
PlatformUser>
public class LdapUserQuery
extends AbstractLdapQuery<PlatformUserQuery,PlatformUser>
implements PlatformUserQuery
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultType
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final QueryProperty
protected static final QueryProperty
protected final PlatformIdentityService
protected boolean
protected static final QueryProperty
protected String
protected String
protected Collection<String>
protected Collection<String>
protected Collection<String>
protected String
protected static final QueryProperty
protected String
protected Collection<String>
Fields inherited from class com.flowable.idm.engine.ldap.AbstractLdapQuery
filtersMap, ldapConfiguration, logger
Fields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutor
Fields inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
databaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC
-
Constructor Summary
ConstructorDescriptionLdapUserQuery
(LdapConfigurationApi ldapConfiguration, PlatformIdentityService identityService) -
Method Summary
Modifier and TypeMethodDescriptionaccessibleByUser
(String userId) Query all users that are accessible by the user with the provideduserId
.accessibleByUserWithUserDefinitionKey
(String userId, String userDefinitionKey) Query all users that are accessible by the user with the provideduserId
anduserDefinitionKey
.active()
createAfter
(Date createdAfter) createdBefore
(Date createdBefore) protected AttributesMapper<PlatformUser>
protected String
protected DistinguishedNameProvider
protected String
protected SortProperties
getSort()
protected Collection<String>
getSortAttributes
(String sortProperty) protected String
getSortProperty
(String columnName) protected PlatformUserQuery
getThis()
protected AttributesMapper<PlatformUser>
protected LdapUserProperties.Mappings
protected LdapUserProperties
Query the user including the extra identity info.infoEquals
(String name, Object value) Checks for a user with the given info name and value.infoEqualsIgnoreCase
(String name, String value) Checks for a user with the given info name and value ignoring the case of the value.infoValueLike
(String name, String valueLike) Checks for a user with the given info name and value like.infoValueLikeIgnoreCase
(String name, String valueLike) Checks for a user with the given info name and value like ignoring the case of the value.protected PlatformUser
mapWithDbInfos
(Attributes attributes) protected Filter
memberOfFilter
(Collection<String> groupDns) memberOfGroup
(String groupId) memberOfGroupKey
(String groupKey) Only selectPlatformUser
s that belong to the group with the given key.memberOfGroupKeys
(Collection<String> groupKeys) Only selectPlatformUser
s that belong to the groups with the given keys.memberOfGroups
(List<String> groupIds) protected Filter
Query for users with the given presence status.Query for users of the given typeuserDefinitionKey
(String userDefinitionKey) userDisplayName
(String displayName) userDisplayNameLike
(String displayNameLike) userDisplayNameLikeIgnoreCase
(String displayNameLikeIgnoreCase) userEmailLike
(String emailLike) userFirstName
(String firstName) userFirstNameLike
(String firstNameLike) userFirstNameLikeIgnoreCase
(String firstNameLikeIgnoreCase) userFullNameLike
(String fullNameLike) protected PlatformUserQuery
userFullNameLike
(String filterKey, String fullNameLike) userFullNameLikeIgnoreCase
(String fullNameLikeIgnoreCase) protected Filter
userIdsFilter
(Collection<String> userIds) userIdsNotIn
(List<String> ids) userIdsOrMemberOfGroupKeys
(Collection<String> userIds, Collection<String> groupKeys) Only selectPlatformUser
s with the given user ids or that belong to the groups with the given keys.userLastName
(String lastName) userLastNameLike
(String lastNameLike) userLastNameLikeIgnoreCase
(String lastNameLikeIgnoreCase) protected PlatformUserQuery
with
(String filterKey, Collection<String> attributeNames, String value, BiFunction<String, String, Filter> filterCreator) protected PlatformUserQuery
withInfo
(String filterKey, String infoName, String value, BiFunction<String, String, Filter> filterCreator) Query only users belonging to no tenant.Methods inherited from class com.flowable.idm.engine.ldap.AbstractLdapQuery
createDirContextProcessorForSort, createFilter, createSearchControlsForQuery, executeCount, executeList, getLdapOperations, withFilter
Methods inherited from class org.flowable.common.engine.impl.query.AbstractQuery
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResult
Methods inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
addOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setParameter
-
Field Details
-
USER_ID
-
FIRST_NAME
-
LAST_NAME
-
EMAIL
-
COLUMN_TO_PROPERTY_MAPPING
-
identityService
-
includeIdentityInfo
protected boolean includeIdentityInfo -
memberOfGroup
-
memberOfGroups
-
memberOfGroupKey
-
memberOfGroupKeys
-
userIdsForOr
-
memberOfGroupKeysForOr
-
userDefinitionKey
-
tenantId
-
-
Constructor Details
-
LdapUserQuery
public LdapUserQuery(LdapConfigurationApi ldapConfiguration, PlatformIdentityService identityService)
-
-
Method Details
-
mapWithDbInfos
- Throws:
NamingException
-
prepareQueryFilter
- Specified by:
prepareQueryFilter
in classAbstractLdapQuery<PlatformUserQuery,
PlatformUser>
-
memberOfFilter
-
userIdsFilter
-
includeIdentityInfo
Description copied from interface:PlatformUserQuery
Query the user including the extra identity info. Implementations are allowed to include the identity info even without explicitly invoking this.- Specified by:
includeIdentityInfo
in interfacePlatformUserQuery
-
userDisplayName
- Specified by:
userDisplayName
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
userDisplayNameLike
- Specified by:
userDisplayNameLike
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
userDisplayNameLikeIgnoreCase
- Specified by:
userDisplayNameLikeIgnoreCase
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
accessibleByUser
Description copied from interface:PlatformUserQuery
Query all users that are accessible by the user with the provideduserId
.- Specified by:
accessibleByUser
in interfacePlatformUserQuery
- Parameters:
userId
- the if of the user for which users should be queried
-
accessibleByUserWithUserDefinitionKey
public PlatformUserQuery accessibleByUserWithUserDefinitionKey(String userId, String userDefinitionKey) Description copied from interface:PlatformUserQuery
Query all users that are accessible by the user with the provideduserId
anduserDefinitionKey
.- Specified by:
accessibleByUserWithUserDefinitionKey
in interfacePlatformUserQuery
- Parameters:
userId
- the id of the user for which users should be querieduserDefinitionKey
- the user definition key for the user for which users should be queried
-
active
- Specified by:
active
in interfacePlatformUserQuery
-
state
- Specified by:
state
in interfacePlatformUserQuery
-
subState
- Specified by:
subState
in interfacePlatformUserQuery
-
userIdsNotIn
- Specified by:
userIdsNotIn
in interfacePlatformUserQuery
-
userDefinitionKey
- Specified by:
userDefinitionKey
in interfacePlatformUserQuery
-
type
Description copied from interface:PlatformUserQuery
Query for users of the given type- Specified by:
type
in interfacePlatformUserQuery
- See Also:
-
subType
- Specified by:
subType
in interfacePlatformUserQuery
-
presence
Description copied from interface:PlatformUserQuery
Query for users with the given presence status.- Specified by:
presence
in interfacePlatformUserQuery
- See Also:
-
infoEquals
Description copied from interface:PlatformUserQuery
Checks for a user with the given info name and value.- Specified by:
infoEquals
in interfacePlatformUserQuery
- Parameters:
name
- the name of the infovalue
- the value that the info should have
-
infoEqualsIgnoreCase
Description copied from interface:PlatformUserQuery
Checks for a user with the given info name and value ignoring the case of the value.- Specified by:
infoEqualsIgnoreCase
in interfacePlatformUserQuery
- Parameters:
name
- the name of the infovalue
- the value that the info should have
-
infoValueLike
Description copied from interface:PlatformUserQuery
Checks for a user with the given info name and value like.- Specified by:
infoValueLike
in interfacePlatformUserQuery
- Parameters:
name
- the name of the infovalueLike
- the value like the info should have ('%' has to be added by the caller itself)
-
infoValueLikeIgnoreCase
Description copied from interface:PlatformUserQuery
Checks for a user with the given info name and value like ignoring the case of the value.- Specified by:
infoValueLikeIgnoreCase
in interfacePlatformUserQuery
- Parameters:
name
- the name of the infovalueLike
- the value like the info should have ('%' has to be added by the caller itself)
-
createdBefore
- Specified by:
createdBefore
in interfacePlatformUserQuery
-
createAfter
- Specified by:
createAfter
in interfacePlatformUserQuery
-
tenantId
- Specified by:
tenantId
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
withoutTenantId
Description copied from interface:PlatformUserQuery
Query only users belonging to no tenant.- Specified by:
withoutTenantId
in interfacePlatformUserQuery
-
memberOfGroupKey
Description copied from interface:PlatformUserQuery
Only selectPlatformUser
s that belong to the group with the given key.- Specified by:
memberOfGroupKey
in interfacePlatformUserQuery
-
memberOfGroupKeys
Description copied from interface:PlatformUserQuery
Only selectPlatformUser
s that belong to the groups with the given keys.- Specified by:
memberOfGroupKeys
in interfacePlatformUserQuery
-
userId
- Specified by:
userId
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
userIds
- Specified by:
userIds
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
userIdIgnoreCase
- Specified by:
userIdIgnoreCase
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
userFirstName
- Specified by:
userFirstName
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
userFirstNameLike
- Specified by:
userFirstNameLike
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
userFirstNameLikeIgnoreCase
- Specified by:
userFirstNameLikeIgnoreCase
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
userLastName
- Specified by:
userLastName
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
userLastNameLike
- Specified by:
userLastNameLike
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
userLastNameLikeIgnoreCase
- Specified by:
userLastNameLikeIgnoreCase
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
userFullNameLike
- Specified by:
userFullNameLike
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
userFullNameLikeIgnoreCase
- Specified by:
userFullNameLikeIgnoreCase
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
userFullNameLike
-
userEmail
- Specified by:
userEmail
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
userEmailLike
- Specified by:
userEmailLike
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
memberOfGroup
- Specified by:
memberOfGroup
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
memberOfGroups
- Specified by:
memberOfGroups
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
userIdsOrMemberOfGroupKeys
public PlatformUserQuery userIdsOrMemberOfGroupKeys(Collection<String> userIds, Collection<String> groupKeys) Description copied from interface:PlatformUserQuery
Only selectPlatformUser
s with the given user ids or that belong to the groups with the given keys.- Specified by:
userIdsOrMemberOfGroupKeys
in interfacePlatformUserQuery
-
orderByUserId
- Specified by:
orderByUserId
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
orderByUserFirstName
- Specified by:
orderByUserFirstName
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
orderByUserLastName
- Specified by:
orderByUserLastName
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
orderByUserEmail
- Specified by:
orderByUserEmail
in interfaceUserBaseQuery<PlatformUserQuery,
PlatformUser>
-
withInfo
protected PlatformUserQuery withInfo(String filterKey, String infoName, String value, BiFunction<String, String, Filter> filterCreator) -
with
protected PlatformUserQuery with(String filterKey, Collection<String> attributeNames, String value, BiFunction<String, String, Filter> filterCreator) -
getUserMappings
-
getUserProperties
-
getDistinguishedNameProvider
-
getUserAttributesMapper
-
getQueryBase
- Specified by:
getQueryBase
in classAbstractLdapQuery<PlatformUserQuery,
PlatformUser>
-
getAttributesMapper
- Specified by:
getAttributesMapper
in classAbstractLdapQuery<PlatformUserQuery,
PlatformUser>
-
getDistinguishedName
- Specified by:
getDistinguishedName
in classAbstractLdapQuery<PlatformUserQuery,
PlatformUser>
-
getSort
- Specified by:
getSort
in classAbstractLdapQuery<PlatformUserQuery,
PlatformUser>
-
getSortProperty
- Specified by:
getSortProperty
in classAbstractLdapQuery<PlatformUserQuery,
PlatformUser>
-
getSortAttributes
- Specified by:
getSortAttributes
in classAbstractLdapQuery<PlatformUserQuery,
PlatformUser>
-
getThis
- Specified by:
getThis
in classAbstractLdapQuery<PlatformUserQuery,
PlatformUser>
-