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.ResultTypeNested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final QueryPropertyprotected static final QueryPropertyprotected final PlatformIdentityServiceprotected booleanprotected static final QueryPropertyprotected Stringprotected Stringprotected Collection<String>protected Collection<String>protected Collection<String>protected Stringprotected static final QueryPropertyprotected Stringprotected Collection<String>Fields inherited from class com.flowable.idm.engine.ldap.AbstractLdapQuery
filtersMap, ldapConfiguration, loggerFields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutorFields 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
ConstructorsConstructorDescriptionLdapUserQuery(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 provideduserIdanduserDefinitionKey.active()createAfter(Date createdAfter) createdBefore(Date createdBefore) protected AttributesMapper<PlatformUser>protected Stringprotected DistinguishedNameProviderprotected Stringprotected SortPropertiesgetSort()protected Collection<String>getSortAttributes(String sortProperty) protected StringgetSortProperty(String columnName) protected PlatformUserQuerygetThis()protected AttributesMapper<PlatformUser>protected LdapUserProperties.Mappingsprotected LdapUserPropertiesQuery 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 PlatformUsermapWithDbInfos(Attributes attributes) protected FiltermemberOfFilter(Collection<String> groupDns) memberOfGroup(String groupId) memberOfGroupKey(String groupKey) Only selectPlatformUsers that belong to the group with the given key.memberOfGroupKeys(Collection<String> groupKeys) Only selectPlatformUsers that belong to the groups with the given keys.memberOfGroups(List<String> groupIds) protected FilterQuery 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 PlatformUserQueryuserFullNameLike(String filterKey, String fullNameLike) userFullNameLikeIgnoreCase(String fullNameLikeIgnoreCase) protected FilteruserIdsFilter(Collection<String> userIds) userIdsNotIn(List<String> ids) userIdsOrMemberOfGroupKeys(Collection<String> userIds, Collection<String> groupKeys) Only selectPlatformUsers 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 PlatformUserQuerywith(String filterKey, Collection<String> attributeNames, String value, BiFunction<String, String, Filter> filterCreator) protected PlatformUserQuerywithInfo(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, withFilterMethods inherited from class org.flowable.common.engine.impl.query.AbstractQuery
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResultMethods 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:
prepareQueryFilterin classAbstractLdapQuery<PlatformUserQuery,PlatformUser>
-
memberOfFilter
-
userIdsFilter
-
includeIdentityInfo
Description copied from interface:PlatformUserQueryQuery the user including the extra identity info. Implementations are allowed to include the identity info even without explicitly invoking this.- Specified by:
includeIdentityInfoin interfacePlatformUserQuery
-
userDisplayName
- Specified by:
userDisplayNamein interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
userDisplayNameLike
- Specified by:
userDisplayNameLikein interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
userDisplayNameLikeIgnoreCase
- Specified by:
userDisplayNameLikeIgnoreCasein interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
accessibleByUser
Description copied from interface:PlatformUserQueryQuery all users that are accessible by the user with the provideduserId.- Specified by:
accessibleByUserin 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:PlatformUserQueryQuery all users that are accessible by the user with the provideduserIdanduserDefinitionKey.- Specified by:
accessibleByUserWithUserDefinitionKeyin 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:
activein interfacePlatformUserQuery
-
state
- Specified by:
statein interfacePlatformUserQuery
-
subState
- Specified by:
subStatein interfacePlatformUserQuery
-
userIdsNotIn
- Specified by:
userIdsNotInin interfacePlatformUserQuery
-
userDefinitionKey
- Specified by:
userDefinitionKeyin interfacePlatformUserQuery
-
type
Description copied from interface:PlatformUserQueryQuery for users of the given type- Specified by:
typein interfacePlatformUserQuery- See Also:
-
subType
- Specified by:
subTypein interfacePlatformUserQuery
-
presence
Description copied from interface:PlatformUserQueryQuery for users with the given presence status.- Specified by:
presencein interfacePlatformUserQuery- See Also:
-
infoEquals
Description copied from interface:PlatformUserQueryChecks for a user with the given info name and value.- Specified by:
infoEqualsin interfacePlatformUserQuery- Parameters:
name- the name of the infovalue- the value that the info should have
-
infoEqualsIgnoreCase
Description copied from interface:PlatformUserQueryChecks for a user with the given info name and value ignoring the case of the value.- Specified by:
infoEqualsIgnoreCasein interfacePlatformUserQuery- Parameters:
name- the name of the infovalue- the value that the info should have
-
infoValueLike
Description copied from interface:PlatformUserQueryChecks for a user with the given info name and value like.- Specified by:
infoValueLikein 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:PlatformUserQueryChecks for a user with the given info name and value like ignoring the case of the value.- Specified by:
infoValueLikeIgnoreCasein 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:
createdBeforein interfacePlatformUserQuery
-
createAfter
- Specified by:
createAfterin interfacePlatformUserQuery
-
tenantId
- Specified by:
tenantIdin interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
withoutTenantId
Description copied from interface:PlatformUserQueryQuery only users belonging to no tenant.- Specified by:
withoutTenantIdin interfacePlatformUserQuery
-
memberOfGroupKey
Description copied from interface:PlatformUserQueryOnly selectPlatformUsers that belong to the group with the given key.- Specified by:
memberOfGroupKeyin interfacePlatformUserQuery
-
memberOfGroupKeys
Description copied from interface:PlatformUserQueryOnly selectPlatformUsers that belong to the groups with the given keys.- Specified by:
memberOfGroupKeysin interfacePlatformUserQuery
-
userId
- Specified by:
userIdin interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
userIds
- Specified by:
userIdsin interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
userIdIgnoreCase
- Specified by:
userIdIgnoreCasein interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
userFirstName
- Specified by:
userFirstNamein interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
userFirstNameLike
- Specified by:
userFirstNameLikein interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
userFirstNameLikeIgnoreCase
- Specified by:
userFirstNameLikeIgnoreCasein interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
userLastName
- Specified by:
userLastNamein interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
userLastNameLike
- Specified by:
userLastNameLikein interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
userLastNameLikeIgnoreCase
- Specified by:
userLastNameLikeIgnoreCasein interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
userFullNameLike
- Specified by:
userFullNameLikein interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
userFullNameLikeIgnoreCase
- Specified by:
userFullNameLikeIgnoreCasein interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
userFullNameLike
-
userEmail
- Specified by:
userEmailin interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
userEmailLike
- Specified by:
userEmailLikein interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
memberOfGroup
- Specified by:
memberOfGroupin interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
memberOfGroups
- Specified by:
memberOfGroupsin interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
userIdsOrMemberOfGroupKeys
public PlatformUserQuery userIdsOrMemberOfGroupKeys(Collection<String> userIds, Collection<String> groupKeys) Description copied from interface:PlatformUserQueryOnly selectPlatformUsers with the given user ids or that belong to the groups with the given keys.- Specified by:
userIdsOrMemberOfGroupKeysin interfacePlatformUserQuery
-
orderByUserId
- Specified by:
orderByUserIdin interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
orderByUserFirstName
- Specified by:
orderByUserFirstNamein interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
orderByUserLastName
- Specified by:
orderByUserLastNamein interfaceUserBaseQuery<PlatformUserQuery,PlatformUser>
-
orderByUserEmail
- Specified by:
orderByUserEmailin 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:
getQueryBasein classAbstractLdapQuery<PlatformUserQuery,PlatformUser>
-
getAttributesMapper
- Specified by:
getAttributesMapperin classAbstractLdapQuery<PlatformUserQuery,PlatformUser>
-
getDistinguishedName
- Specified by:
getDistinguishedNamein classAbstractLdapQuery<PlatformUserQuery,PlatformUser>
-
getSort
- Specified by:
getSortin classAbstractLdapQuery<PlatformUserQuery,PlatformUser>
-
getSortProperty
- Specified by:
getSortPropertyin classAbstractLdapQuery<PlatformUserQuery,PlatformUser>
-
getSortAttributes
- Specified by:
getSortAttributesin classAbstractLdapQuery<PlatformUserQuery,PlatformUser>
-
getThis
- Specified by:
getThisin classAbstractLdapQuery<PlatformUserQuery,PlatformUser>
-