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:
- Serialized Form
-
-
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
Fields Modifier and Type Field Description protected booleanaccessbleByUserDefinitionKeyProvidedprotected StringaccessibleByUserprotected StringaccessibleByUserDefinitionKeyprotected StringdisplayNameprotected StringdisplayNameLikeprotected StringdisplayNameLikeIgnoreCaseprotected Stringemailprotected StringemailLikeprotected StringfirstNameprotected StringfirstNameLikeprotected StringfirstNameLikeIgnoreCaseprotected StringfullNameLikeprotected StringfullNameLikeIgnoreCaseprotected StringgroupIdprotected List<String>groupIdsprotected Stringidprotected StringidIgnoreCaseprotected List<String>idsprotected StringlastNameprotected StringlastNameLikeprotected StringlastNameLikeIgnoreCaseprotected List<T>orQueryObjectsprotected StringtenantId-
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
Constructors Constructor Description UserBaseQueryImpl()UserBaseQueryImpl(CommandContext commandContext, CoreIdmEngineConfiguration idmEngineConfiguration)UserBaseQueryImpl(CommandExecutor commandExecutor, CoreIdmEngineConfiguration idmEngineConfiguration)
-
Method Summary
-
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 Detail
-
id
protected String id
-
idIgnoreCase
protected String idIgnoreCase
-
firstName
protected String firstName
-
firstNameLike
protected String firstNameLike
-
firstNameLikeIgnoreCase
protected String firstNameLikeIgnoreCase
-
lastName
protected String lastName
-
lastNameLike
protected String lastNameLike
-
lastNameLikeIgnoreCase
protected String lastNameLikeIgnoreCase
-
fullNameLike
protected String fullNameLike
-
fullNameLikeIgnoreCase
protected String fullNameLikeIgnoreCase
-
displayName
protected String displayName
-
displayNameLike
protected String displayNameLike
-
displayNameLikeIgnoreCase
protected String displayNameLikeIgnoreCase
-
accessibleByUser
protected String accessibleByUser
-
accessibleByUserDefinitionKey
protected String accessibleByUserDefinitionKey
-
accessbleByUserDefinitionKeyProvided
protected boolean accessbleByUserDefinitionKeyProvided
-
email
protected String email
-
emailLike
protected String emailLike
-
groupId
protected String groupId
-
tenantId
protected String tenantId
-
orQueryObjects
protected List<T extends UserBaseQuery<T,U>> orQueryObjects
-
-
Constructor Detail
-
UserBaseQueryImpl
public UserBaseQueryImpl()
-
UserBaseQueryImpl
public UserBaseQueryImpl(CommandContext commandContext, CoreIdmEngineConfiguration idmEngineConfiguration)
-
UserBaseQueryImpl
public UserBaseQueryImpl(CommandExecutor commandExecutor, CoreIdmEngineConfiguration idmEngineConfiguration)
-
-
Method Detail
-
userId
public T userId(String id)
- Specified by:
userIdin interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
userIds
public T userIds(List<String> ids)
- Specified by:
userIdsin interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
userIdIgnoreCase
public T userIdIgnoreCase(String id)
- Specified by:
userIdIgnoreCasein interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
userFirstName
public T userFirstName(String firstName)
- Specified by:
userFirstNamein interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
userFirstNameLike
public T userFirstNameLike(String firstNameLike)
- Specified by:
userFirstNameLikein interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
userFirstNameLikeIgnoreCase
public T userFirstNameLikeIgnoreCase(String firstNameLikeIgnoreCase)
- Specified by:
userFirstNameLikeIgnoreCasein interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
userLastName
public T userLastName(String lastName)
- Specified by:
userLastNamein interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
userLastNameLike
public T userLastNameLike(String lastNameLike)
- Specified by:
userLastNameLikein interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
userLastNameLikeIgnoreCase
public T userLastNameLikeIgnoreCase(String lastNameLikeIgnoreCase)
- Specified by:
userLastNameLikeIgnoreCasein interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
userFullNameLike
public T userFullNameLike(String fullNameLike)
- Specified by:
userFullNameLikein interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
userFullNameLikeIgnoreCase
public T userFullNameLikeIgnoreCase(String fullNameLikeIgnoreCase)
- Specified by:
userFullNameLikeIgnoreCasein interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
userDisplayName
public T userDisplayName(String displayName)
- Specified by:
userDisplayNamein interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
userDisplayNameLike
public T userDisplayNameLike(String displayNameLike)
- Specified by:
userDisplayNameLikein interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
userDisplayNameLikeIgnoreCase
public T userDisplayNameLikeIgnoreCase(String displayNameLikeIgnoreCase)
- Specified by:
userDisplayNameLikeIgnoreCasein interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
userEmail
public T userEmail(String email)
- Specified by:
userEmailin interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
userEmailLike
public T userEmailLike(String emailLike)
- Specified by:
userEmailLikein interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
memberOfGroup
public T memberOfGroup(String groupId)
- Specified by:
memberOfGroupin interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
memberOfGroups
public T memberOfGroups(List<String> groupIds)
- Specified by:
memberOfGroupsin interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
tenantId
public T tenantId(String tenantId)
- Specified by:
tenantIdin interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
orderByUserId
public T orderByUserId()
- Specified by:
orderByUserIdin interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
orderByUserEmail
public T orderByUserEmail()
- Specified by:
orderByUserEmailin interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
orderByUserFirstName
public T orderByUserFirstName()
- Specified by:
orderByUserFirstNamein interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
orderByUserLastName
public T orderByUserLastName()
- Specified by:
orderByUserLastNamein interfaceUserBaseQuery<T extends UserBaseQuery<T,U>,U extends User>
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractVariableQueryImpl<T extends UserBaseQuery<T,U>,U extends User>
-
executeFindUserCount
protected abstract long executeFindUserCount(CommandContext commandContext)
-
executeList
public List<U> executeList(CommandContext commandContext)
- Specified by:
executeListin classAbstractVariableQueryImpl<T extends UserBaseQuery<T,U>,U extends User>
-
executeFindUserList
protected abstract List<U> executeFindUserList(CommandContext commandContext)
-
ensureVariablesInitialized
protected void ensureVariablesInitialized()
- Overrides:
ensureVariablesInitializedin classAbstractVariableQueryImpl<T extends UserBaseQuery<T,U>,U extends User>
-
handleAccessibleByUser
protected boolean handleAccessibleByUser(CommandContext commandContext)
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:
trueif the query can actually be executed,falseotherwise (return empty result)
-
handleLookupGroups
protected boolean handleLookupGroups(UserBaseQueryImpl<T,U> query, List<String> lookupGroups)
-
handleDynamicLookupVariable
protected boolean handleDynamicLookupVariable(UserBaseQueryImpl<T,U> query, String lookupInfoName)
-
createNewQuery
protected abstract T createNewQuery(CommandContext commandContext, CoreIdmEngineConfiguration idmEngineConfiguration)
-
getId
public String getId()
- Specified by:
getIdin interfaceCacheAwareQuery<T extends UserBaseQuery<T,U>>
-
getIdIgnoreCase
public String getIdIgnoreCase()
-
getFirstName
public String getFirstName()
-
getFirstNameLike
public String getFirstNameLike()
-
getFirstNameLikeIgnoreCase
public String getFirstNameLikeIgnoreCase()
-
getLastName
public String getLastName()
-
getLastNameLike
public String getLastNameLike()
-
getLastNameLikeIgnoreCase
public String getLastNameLikeIgnoreCase()
-
getFullNameLike
public String getFullNameLike()
-
getFullNameLikeIgnoreCase
public String getFullNameLikeIgnoreCase()
-
getDisplayName
public String getDisplayName()
-
getDisplayNameLike
public String getDisplayNameLike()
-
getDisplayNameLikeIgnoreCase
public String getDisplayNameLikeIgnoreCase()
-
getAccessibleByUser
public String getAccessibleByUser()
-
getEmail
public String getEmail()
-
getEmailLike
public String getEmailLike()
-
getGroupId
public String getGroupId()
-
getTenantId
public String getTenantId()
-
-