Package org.flowable.idm.engine.impl
Class UserQueryImpl
java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<UserQuery,User>
org.flowable.idm.engine.impl.UserQueryImpl
- All Implemented Interfaces:
Serializable
,CacheAwareQuery<UserEntity>
,Query<UserQuery,
,User> Command<Object>
,UserBaseQuery<UserQuery,
,User> UserQuery
public class UserQueryImpl
extends AbstractQuery<UserQuery,User>
implements UserQuery, CacheAwareQuery<UserEntity>
- Author:
- Joram Barrez
- 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
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
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, ignoreOrderBy, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC
-
Constructor Summary
ConstructorsConstructorDescriptionUserQueryImpl
(CommandContext commandContext) UserQueryImpl
(CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionlong
executeCount
(CommandContext commandContext) executeList
(CommandContext commandContext) Executes the actual query to retrieve the list of results.getEmail()
getId()
getIds()
memberOfGroup
(String groupId) Only selectUser
s that belong to the given group.memberOfGroups
(List<String> groupIds) Only selectUser
s that belong to the given groups.Order by user email (needs to be followed byQuery.asc()
orQuery.desc()
).Order by user first name (needs to be followed byQuery.asc()
orQuery.desc()
).Order by user id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by user last name (needs to be followed byQuery.asc()
orQuery.desc()
).Only selectUser
s that belong to the given tenant.userDisplayName
(String displayName) Only selectUser
s with the given displayName.userDisplayNameLike
(String displayNameLike) Only selectUser
s where the display name matches the given parameter.userDisplayNameLikeIgnoreCase
(String displayNameLikeIgnoreCase) Only selectUser
s where the display name matches the given parameter (ignoring case).Only thoseUser
s with the given email address.userEmailLike
(String emailLike) Only selectUser
s where the email matches the given parameter.userFirstName
(String firstName) Only selectUser
s with the given firstName.userFirstNameLike
(String firstNameLike) Only selectUser
s where the first name matches the given parameter.userFirstNameLikeIgnoreCase
(String firstNameLikeIgnoreCase) Only selectUser
s where the first name matches the given parameter (ignoring case).userFullNameLike
(String fullNameLike) Only selectUser
s where the full name matches the given parameters.userFullNameLikeIgnoreCase
(String fullNameLikeIgnoreCase) Only selectUser
s where the full name matches the given parameters (ignoring case).Only selectUser
s with the given id/Only selectUser
s with the given id (ignoring case) /Only selectUser
s with the given ids/userLastName
(String lastName) Only selectUser
s with the given lastName.userLastNameLike
(String lastNameLike) Only selectUser
s where the last name matches the given parameter.userLastNameLikeIgnoreCase
(String lastNameLikeIgnoreCase) Only selectUser
s where the last name matches the given parameter (ignoring case).Methods inherited from class org.flowable.common.engine.impl.query.AbstractQuery
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, getSafeList, 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, setIgnoreOrderBy, setMaxResults, setNullHandlingColumn, setParameter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.flowable.common.engine.api.query.CacheAwareQuery
enhanceCachedValue
-
Field Details
-
id
-
ids
-
idIgnoreCase
-
firstName
-
firstNameLike
-
firstNameLikeIgnoreCase
-
lastName
-
lastNameLike
-
lastNameLikeIgnoreCase
-
fullNameLike
-
fullNameLikeIgnoreCase
-
displayName
-
displayNameLike
-
displayNameLikeIgnoreCase
-
email
-
emailLike
-
groupId
-
groupIds
-
tenantId
-
-
Constructor Details
-
UserQueryImpl
public UserQueryImpl() -
UserQueryImpl
-
UserQueryImpl
-
-
Method Details
-
userId
Description copied from interface:UserBaseQuery
Only selectUser
s with the given id/- Specified by:
userId
in interfaceUserBaseQuery<UserQuery,
User>
-
userIds
Description copied from interface:UserBaseQuery
Only selectUser
s with the given ids/- Specified by:
userIds
in interfaceUserBaseQuery<UserQuery,
User>
-
userIdIgnoreCase
Description copied from interface:UserBaseQuery
Only selectUser
s with the given id (ignoring case) /- Specified by:
userIdIgnoreCase
in interfaceUserBaseQuery<UserQuery,
User>
-
userFirstName
Description copied from interface:UserBaseQuery
Only selectUser
s with the given firstName.- Specified by:
userFirstName
in interfaceUserBaseQuery<UserQuery,
User>
-
userFirstNameLike
Description copied from interface:UserBaseQuery
Only selectUser
s where the first name matches the given parameter. The syntax is that of SQL, eg. %name%.- Specified by:
userFirstNameLike
in interfaceUserBaseQuery<UserQuery,
User>
-
userFirstNameLikeIgnoreCase
Description copied from interface:UserBaseQuery
Only selectUser
s where the first name matches the given parameter (ignoring case). The syntax is that of SQL, eg. %name%.- Specified by:
userFirstNameLikeIgnoreCase
in interfaceUserBaseQuery<UserQuery,
User>
-
userLastName
Description copied from interface:UserBaseQuery
Only selectUser
s with the given lastName.- Specified by:
userLastName
in interfaceUserBaseQuery<UserQuery,
User>
-
userLastNameLike
Description copied from interface:UserBaseQuery
Only selectUser
s where the last name matches the given parameter. The syntax is that of SQL, eg. %name%.- Specified by:
userLastNameLike
in interfaceUserBaseQuery<UserQuery,
User>
-
userLastNameLikeIgnoreCase
Description copied from interface:UserBaseQuery
Only selectUser
s where the last name matches the given parameter (ignoring case). The syntax is that of SQL, eg. %name%.- Specified by:
userLastNameLikeIgnoreCase
in interfaceUserBaseQuery<UserQuery,
User>
-
userFullNameLike
Description copied from interface:UserBaseQuery
Only selectUser
s where the full name matches the given parameters. Both the first name and last name will be tried, ie in semi-sql: where firstName like xxx or lastname like xxx- Specified by:
userFullNameLike
in interfaceUserBaseQuery<UserQuery,
User>
-
userFullNameLikeIgnoreCase
Description copied from interface:UserBaseQuery
Only selectUser
s where the full name matches the given parameters (ignoring case). Both the first name and last name will be tried, ie in semi-sql: where firstName like xxx or lastname like xxx- Specified by:
userFullNameLikeIgnoreCase
in interfaceUserBaseQuery<UserQuery,
User>
-
userDisplayName
Description copied from interface:UserBaseQuery
Only selectUser
s with the given displayName.- Specified by:
userDisplayName
in interfaceUserBaseQuery<UserQuery,
User>
-
userDisplayNameLike
Description copied from interface:UserBaseQuery
Only selectUser
s where the display name matches the given parameter. The syntax is that of SQL, eg. %name%.- Specified by:
userDisplayNameLike
in interfaceUserBaseQuery<UserQuery,
User>
-
userDisplayNameLikeIgnoreCase
Description copied from interface:UserBaseQuery
Only selectUser
s where the display name matches the given parameter (ignoring case). The syntax is that of SQL, eg. %name%.- Specified by:
userDisplayNameLikeIgnoreCase
in interfaceUserBaseQuery<UserQuery,
User>
-
userEmail
Description copied from interface:UserBaseQuery
Only thoseUser
s with the given email address.- Specified by:
userEmail
in interfaceUserBaseQuery<UserQuery,
User>
-
userEmailLike
Description copied from interface:UserBaseQuery
Only selectUser
s where the email matches the given parameter. The syntax is that of SQL, eg. %test%.- Specified by:
userEmailLike
in interfaceUserBaseQuery<UserQuery,
User>
-
memberOfGroup
Description copied from interface:UserBaseQuery
Only selectUser
s that belong to the given group.- Specified by:
memberOfGroup
in interfaceUserBaseQuery<UserQuery,
User>
-
memberOfGroups
Description copied from interface:UserBaseQuery
Only selectUser
s that belong to the given groups.- Specified by:
memberOfGroups
in interfaceUserBaseQuery<UserQuery,
User>
-
tenantId
Description copied from interface:UserBaseQuery
Only selectUser
s that belong to the given tenant.- Specified by:
tenantId
in interfaceUserBaseQuery<UserQuery,
User>
-
orderByUserId
Description copied from interface:UserBaseQuery
Order by user id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByUserId
in interfaceUserBaseQuery<UserQuery,
User>
-
orderByUserEmail
Description copied from interface:UserBaseQuery
Order by user email (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByUserEmail
in interfaceUserBaseQuery<UserQuery,
User>
-
orderByUserFirstName
Description copied from interface:UserBaseQuery
Order by user first name (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByUserFirstName
in interfaceUserBaseQuery<UserQuery,
User>
-
orderByUserLastName
Description copied from interface:UserBaseQuery
Order by user last name (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByUserLastName
in interfaceUserBaseQuery<UserQuery,
User>
-
executeCount
- Specified by:
executeCount
in classAbstractQuery<UserQuery,
User>
-
executeList
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<UserQuery,
User>
-
getId
- Specified by:
getId
in interfaceCacheAwareQuery<UserEntity>
-
getIds
-
getIdIgnoreCase
-
getFirstName
-
getFirstNameLike
-
getFirstNameLikeIgnoreCase
-
getLastName
-
getLastNameLike
-
getLastNameLikeIgnoreCase
-
getEmail
-
getEmailLike
-
getGroupId
-
getGroupIds
-
getFullNameLike
-
getFullNameLikeIgnoreCase
-
getDisplayName
-
getDisplayNameLike
-
getDisplayNameLikeIgnoreCase
-
getTenantId
-