Package com.flowable.idm.engine.impl
Class UserBaseQueryImpl<T extends UserBaseQuery<T,U>,U extends User>
java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<T,U>
org.flowable.variable.service.impl.AbstractVariableQueryImpl<T,U>
com.flowable.idm.engine.impl.UserBaseQueryImpl<T,U>
- All Implemented Interfaces:
Serializable
,CacheAwareQuery<U>
,Query<T,
,U> Command<Object>
,UserBaseQuery<T,
U>
- Direct Known Subclasses:
PlatformUserQueryImpl
public abstract class UserBaseQueryImpl<T extends UserBaseQuery<T,U>,U extends User>
extends AbstractVariableQueryImpl<T,U>
implements UserBaseQuery<T,U>, CacheAwareQuery<U>
- Author:
- Joram Barrez, Filip Hrisafov
- 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 boolean
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
protected String
protected String
protected String
Fields inherited from class org.flowable.variable.service.impl.AbstractVariableQueryImpl
queryVariableValues, variableValueProvider
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
ConstructorDescriptionUserBaseQueryImpl
(CommandContext commandContext, CoreIdmEngineConfiguration idmEngineConfiguration) UserBaseQueryImpl
(CommandExecutor commandExecutor, CoreIdmEngineConfiguration idmEngineConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract T
createNewQuery
(CommandContext commandContext, CoreIdmEngineConfiguration idmEngineConfiguration) protected void
long
executeCount
(CommandContext commandContext) protected abstract long
executeFindUserCount
(CommandContext commandContext) executeFindUserList
(CommandContext commandContext) executeList
(CommandContext commandContext) getEmail()
getId()
getIds()
protected boolean
handleAccessibleByUser
(CommandContext commandContext) Perform the accessible by user checks and enrich the query with the required data.protected boolean
handleDynamicLookupVariable
(UserBaseQueryImpl<T, U> query, String lookupInfoName) protected boolean
handleLookupGroups
(UserBaseQueryImpl<T, U> query, List<String> lookupGroups) memberOfGroup
(String groupId) memberOfGroups
(List<String> groupIds) userDisplayName
(String displayName) userDisplayNameLike
(String displayNameLike) userDisplayNameLikeIgnoreCase
(String displayNameLikeIgnoreCase) userEmailLike
(String emailLike) userFirstName
(String firstName) userFirstNameLike
(String firstNameLike) userFirstNameLikeIgnoreCase
(String firstNameLikeIgnoreCase) userFullNameLike
(String fullNameLike) userFullNameLikeIgnoreCase
(String fullNameLikeIgnoreCase) userLastName
(String lastName) userLastNameLike
(String lastNameLike) userLastNameLikeIgnoreCase
(String lastNameLikeIgnoreCase) Methods inherited from class org.flowable.variable.service.impl.AbstractVariableQueryImpl
addVariable, addVariable, getQueryVariableValues, hasLocalQueryVariableValue, hasNonLocalQueryVariableValue, hasValueComparisonQueryVariables, isBoolean, scopedVariableExists, scopedVariableNotExists, scopedVariableValueEquals, scopedVariableValueEquals, scopedVariableValueEqualsIgnoreCase, scopedVariableValueGreaterThan, scopedVariableValueGreaterThanOrEqual, scopedVariableValueLessThan, scopedVariableValueLessThanOrEqual, scopedVariableValueLike, scopedVariableValueLikeIgnoreCase, scopedVariableValueNotEquals, scopedVariableValueNotEqualsIgnoreCase, variableExists, variableExists, variableNotExists, variableNotExists, variableValueEquals, variableValueEquals, variableValueEquals, variableValueEquals, variableValueEqualsIgnoreCase, variableValueEqualsIgnoreCase, variableValueGreaterThan, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThan, variableValueLessThanOrEqual, variableValueLessThanOrEqual, variableValueLike, variableValueLike, variableValueLikeIgnoreCase, variableValueLikeIgnoreCase, variableValueNotEquals, variableValueNotEquals, variableValueNotEqualsIgnoreCase, variableValueNotEqualsIgnoreCase
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
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
-
accessibleByUser
-
accessibleByUserDefinitionKey
-
accessbleByUserDefinitionKeyProvided
protected boolean accessbleByUserDefinitionKeyProvided -
email
-
emailLike
-
groupId
-
groupIds
-
tenantId
-
orQueryObjects
-
-
Constructor Details
-
UserBaseQueryImpl
public UserBaseQueryImpl() -
UserBaseQueryImpl
public UserBaseQueryImpl(CommandContext commandContext, CoreIdmEngineConfiguration idmEngineConfiguration) -
UserBaseQueryImpl
public UserBaseQueryImpl(CommandExecutor commandExecutor, CoreIdmEngineConfiguration idmEngineConfiguration)
-
-
Method Details
-
userId
- Specified by:
userId
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
userIds
- Specified by:
userIds
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
userIdIgnoreCase
- Specified by:
userIdIgnoreCase
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
userFirstName
- Specified by:
userFirstName
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
userFirstNameLike
- Specified by:
userFirstNameLike
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
userFirstNameLikeIgnoreCase
- Specified by:
userFirstNameLikeIgnoreCase
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
userLastName
- Specified by:
userLastName
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
userLastNameLike
- Specified by:
userLastNameLike
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
userLastNameLikeIgnoreCase
- Specified by:
userLastNameLikeIgnoreCase
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
userFullNameLike
- Specified by:
userFullNameLike
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
userFullNameLikeIgnoreCase
- Specified by:
userFullNameLikeIgnoreCase
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
userDisplayName
- Specified by:
userDisplayName
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
userDisplayNameLike
- Specified by:
userDisplayNameLike
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
userDisplayNameLikeIgnoreCase
- Specified by:
userDisplayNameLikeIgnoreCase
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
userEmail
- Specified by:
userEmail
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
userEmailLike
- Specified by:
userEmailLike
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
memberOfGroup
- Specified by:
memberOfGroup
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
memberOfGroups
- Specified by:
memberOfGroups
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
tenantId
- Specified by:
tenantId
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
orderByUserId
- Specified by:
orderByUserId
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
orderByUserEmail
- Specified by:
orderByUserEmail
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
orderByUserFirstName
- Specified by:
orderByUserFirstName
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
orderByUserLastName
- Specified by:
orderByUserLastName
in interfaceUserBaseQuery<T extends UserBaseQuery<T,
U>, U extends User>
-
executeCount
- Specified by:
executeCount
in classAbstractVariableQueryImpl<T extends UserBaseQuery<T,
U>, U extends User>
-
executeFindUserCount
-
executeList
- Specified by:
executeList
in classAbstractVariableQueryImpl<T extends UserBaseQuery<T,
U>, U extends User>
-
executeFindUserList
-
ensureVariablesInitialized
protected void ensureVariablesInitialized()- Overrides:
ensureVariablesInitialized
in classAbstractVariableQueryImpl<T extends UserBaseQuery<T,
U>, U extends User>
-
handleAccessibleByUser
Perform the accessible by user checks and enrich the query with the required data.- Parameters:
commandContext
- the command context that can be used to fetch data- Returns:
true
if the query can actually be executed,false
otherwise (return empty result)
-
handleLookupGroups
-
handleDynamicLookupVariable
-
createNewQuery
protected abstract T createNewQuery(CommandContext commandContext, CoreIdmEngineConfiguration idmEngineConfiguration) -
getId
- Specified by:
getId
in interfaceCacheAwareQuery<T extends UserBaseQuery<T,
U>>
-
getIds
-
getIdIgnoreCase
-
getFirstName
-
getFirstNameLike
-
getFirstNameLikeIgnoreCase
-
getLastName
-
getLastNameLike
-
getLastNameLikeIgnoreCase
-
getFullNameLike
-
getFullNameLikeIgnoreCase
-
getDisplayName
-
getDisplayNameLike
-
getDisplayNameLikeIgnoreCase
-
getAccessibleByUser
-
getEmail
-
getEmailLike
-
getGroupId
-
getGroupIds
-
getTenantId
-
getOrQueryObjects
-