Class UserBaseQueryImpl<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>

  • All Implemented Interfaces:
    java.io.Serializable, org.flowable.common.engine.api.query.CacheAwareQuery<U>, org.flowable.common.engine.api.query.Query<T,​U>, org.flowable.common.engine.impl.interceptor.Command<java.lang.Object>, org.flowable.idm.api.UserBaseQuery<T,​U>
    Direct Known Subclasses:
    PlatformUserQueryImpl

    public abstract class UserBaseQueryImpl<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
    extends org.flowable.variable.service.impl.AbstractVariableQueryImpl<T,​U>
    implements org.flowable.idm.api.UserBaseQuery<T,​U>, org.flowable.common.engine.api.query.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

        org.flowable.common.engine.impl.db.ListQueryParameterObject.ResultType
      • Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query

        org.flowable.common.engine.api.query.Query.NullHandlingOnOrder
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean accessbleByUserDefinitionKeyProvided  
      protected java.lang.String accessibleByUser  
      protected java.lang.String accessibleByUserDefinitionKey  
      protected java.lang.String displayName  
      protected java.lang.String displayNameLike  
      protected java.lang.String displayNameLikeIgnoreCase  
      protected java.lang.String email  
      protected java.lang.String emailLike  
      protected java.lang.String firstName  
      protected java.lang.String firstNameLike  
      protected java.lang.String firstNameLikeIgnoreCase  
      protected java.lang.String fullNameLike  
      protected java.lang.String fullNameLikeIgnoreCase  
      protected java.lang.String groupId  
      protected java.util.List<java.lang.String> groupIds  
      protected java.lang.String id  
      protected java.lang.String idIgnoreCase  
      protected java.util.List<java.lang.String> ids  
      protected java.lang.String lastName  
      protected java.lang.String lastNameLike  
      protected java.lang.String lastNameLikeIgnoreCase  
      protected java.util.List<T> orQueryObjects  
      protected java.lang.String tenantId  
      • Fields inherited from class org.flowable.variable.service.impl.AbstractVariableQueryImpl

        queryVariableValues, variableServiceConfiguration
      • 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, firstResult, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByColumnMap, orderByColumns, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract T createNewQuery​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, CoreIdmEngineConfiguration idmEngineConfiguration)  
      protected void ensureVariablesInitialized()  
      long executeCount​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)  
      protected abstract long executeFindUserCount​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)  
      protected abstract java.util.List<U> executeFindUserList​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)  
      java.util.List<U> executeList​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)  
      java.lang.String getAccessibleByUser()  
      java.lang.String getDisplayName()  
      java.lang.String getDisplayNameLike()  
      java.lang.String getDisplayNameLikeIgnoreCase()  
      java.lang.String getEmail()  
      java.lang.String getEmailLike()  
      java.lang.String getFirstName()  
      java.lang.String getFirstNameLike()  
      java.lang.String getFirstNameLikeIgnoreCase()  
      java.lang.String getFullNameLike()  
      java.lang.String getFullNameLikeIgnoreCase()  
      java.lang.String getGroupId()  
      java.util.List<java.lang.String> getGroupIds()  
      java.lang.String getId()  
      java.lang.String getIdIgnoreCase()  
      java.util.List<java.lang.String> getIds()  
      java.lang.String getLastName()  
      java.lang.String getLastNameLike()  
      java.lang.String getLastNameLikeIgnoreCase()  
      java.util.List<T> getOrQueryObjects()  
      java.lang.String getTenantId()  
      protected boolean handleAccessibleByUser​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
      Perform the accessible by user checks and enrich the query with the required data.
      protected boolean handleDynamicLookupVariable​(UserBaseQueryImpl<T,​U> query, java.lang.String lookupInfoName)  
      protected boolean handleLookupGroups​(UserBaseQueryImpl<T,​U> query, java.util.List<java.lang.String> lookupGroups)  
      T memberOfGroup​(java.lang.String groupId)  
      T memberOfGroups​(java.util.List<java.lang.String> groupIds)  
      T orderByUserEmail()  
      T orderByUserFirstName()  
      T orderByUserId()  
      T orderByUserLastName()  
      T tenantId​(java.lang.String tenantId)  
      T userDisplayName​(java.lang.String displayName)  
      T userDisplayNameLike​(java.lang.String displayNameLike)  
      T userDisplayNameLikeIgnoreCase​(java.lang.String displayNameLikeIgnoreCase)  
      T userEmail​(java.lang.String email)  
      T userEmailLike​(java.lang.String emailLike)  
      T userFirstName​(java.lang.String firstName)  
      T userFirstNameLike​(java.lang.String firstNameLike)  
      T userFirstNameLikeIgnoreCase​(java.lang.String firstNameLikeIgnoreCase)  
      T userFullNameLike​(java.lang.String fullNameLike)  
      T userFullNameLikeIgnoreCase​(java.lang.String fullNameLikeIgnoreCase)  
      T userId​(java.lang.String id)  
      T userIdIgnoreCase​(java.lang.String id)  
      T userIds​(java.util.List<java.lang.String> ids)  
      T userLastName​(java.lang.String lastName)  
      T userLastNameLike​(java.lang.String lastNameLike)  
      T userLastNameLikeIgnoreCase​(java.lang.String lastNameLikeIgnoreCase)  
      • Methods inherited from class org.flowable.variable.service.impl.AbstractVariableQueryImpl

        addVariable, getQueryVariableValues, hasLocalQueryVariableValue, hasNonLocalQueryVariableValue, hasValueComparisonQueryVariables, isBoolean, 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, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByColumnMap, getOrderByColumns, getParameter, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setOrderByColumns, 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
      • Methods inherited from interface org.flowable.common.engine.api.query.Query

        asc, count, desc, list, listPage, orderBy, orderBy, singleResult
    • Field Detail

      • id

        protected java.lang.String id
      • ids

        protected java.util.List<java.lang.String> ids
      • idIgnoreCase

        protected java.lang.String idIgnoreCase
      • firstName

        protected java.lang.String firstName
      • firstNameLike

        protected java.lang.String firstNameLike
      • firstNameLikeIgnoreCase

        protected java.lang.String firstNameLikeIgnoreCase
      • lastName

        protected java.lang.String lastName
      • lastNameLike

        protected java.lang.String lastNameLike
      • lastNameLikeIgnoreCase

        protected java.lang.String lastNameLikeIgnoreCase
      • fullNameLike

        protected java.lang.String fullNameLike
      • fullNameLikeIgnoreCase

        protected java.lang.String fullNameLikeIgnoreCase
      • displayName

        protected java.lang.String displayName
      • displayNameLike

        protected java.lang.String displayNameLike
      • displayNameLikeIgnoreCase

        protected java.lang.String displayNameLikeIgnoreCase
      • accessibleByUser

        protected java.lang.String accessibleByUser
      • accessibleByUserDefinitionKey

        protected java.lang.String accessibleByUserDefinitionKey
      • accessbleByUserDefinitionKeyProvided

        protected boolean accessbleByUserDefinitionKeyProvided
      • email

        protected java.lang.String email
      • emailLike

        protected java.lang.String emailLike
      • groupId

        protected java.lang.String groupId
      • groupIds

        protected java.util.List<java.lang.String> groupIds
      • tenantId

        protected java.lang.String tenantId
      • orQueryObjects

        protected java.util.List<T extends org.flowable.idm.api.UserBaseQuery<T,​U>> orQueryObjects
    • Constructor Detail

      • UserBaseQueryImpl

        public UserBaseQueryImpl()
      • UserBaseQueryImpl

        public UserBaseQueryImpl​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext,
                                 CoreIdmEngineConfiguration idmEngineConfiguration)
      • UserBaseQueryImpl

        public UserBaseQueryImpl​(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor,
                                 CoreIdmEngineConfiguration idmEngineConfiguration)
    • Method Detail

      • userId

        public T userId​(java.lang.String id)
        Specified by:
        userId in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • userIds

        public T userIds​(java.util.List<java.lang.String> ids)
        Specified by:
        userIds in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • userIdIgnoreCase

        public T userIdIgnoreCase​(java.lang.String id)
        Specified by:
        userIdIgnoreCase in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • userFirstName

        public T userFirstName​(java.lang.String firstName)
        Specified by:
        userFirstName in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • userFirstNameLike

        public T userFirstNameLike​(java.lang.String firstNameLike)
        Specified by:
        userFirstNameLike in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • userFirstNameLikeIgnoreCase

        public T userFirstNameLikeIgnoreCase​(java.lang.String firstNameLikeIgnoreCase)
        Specified by:
        userFirstNameLikeIgnoreCase in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • userLastName

        public T userLastName​(java.lang.String lastName)
        Specified by:
        userLastName in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • userLastNameLike

        public T userLastNameLike​(java.lang.String lastNameLike)
        Specified by:
        userLastNameLike in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • userLastNameLikeIgnoreCase

        public T userLastNameLikeIgnoreCase​(java.lang.String lastNameLikeIgnoreCase)
        Specified by:
        userLastNameLikeIgnoreCase in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • userFullNameLike

        public T userFullNameLike​(java.lang.String fullNameLike)
        Specified by:
        userFullNameLike in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • userFullNameLikeIgnoreCase

        public T userFullNameLikeIgnoreCase​(java.lang.String fullNameLikeIgnoreCase)
        Specified by:
        userFullNameLikeIgnoreCase in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • userDisplayName

        public T userDisplayName​(java.lang.String displayName)
        Specified by:
        userDisplayName in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • userDisplayNameLike

        public T userDisplayNameLike​(java.lang.String displayNameLike)
        Specified by:
        userDisplayNameLike in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • userDisplayNameLikeIgnoreCase

        public T userDisplayNameLikeIgnoreCase​(java.lang.String displayNameLikeIgnoreCase)
        Specified by:
        userDisplayNameLikeIgnoreCase in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • userEmail

        public T userEmail​(java.lang.String email)
        Specified by:
        userEmail in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • userEmailLike

        public T userEmailLike​(java.lang.String emailLike)
        Specified by:
        userEmailLike in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • memberOfGroup

        public T memberOfGroup​(java.lang.String groupId)
        Specified by:
        memberOfGroup in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • memberOfGroups

        public T memberOfGroups​(java.util.List<java.lang.String> groupIds)
        Specified by:
        memberOfGroups in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • tenantId

        public T tenantId​(java.lang.String tenantId)
        Specified by:
        tenantId in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • orderByUserId

        public T orderByUserId()
        Specified by:
        orderByUserId in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • orderByUserEmail

        public T orderByUserEmail()
        Specified by:
        orderByUserEmail in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • orderByUserFirstName

        public T orderByUserFirstName()
        Specified by:
        orderByUserFirstName in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • orderByUserLastName

        public T orderByUserLastName()
        Specified by:
        orderByUserLastName in interface org.flowable.idm.api.UserBaseQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • executeCount

        public long executeCount​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
        Specified by:
        executeCount in class org.flowable.variable.service.impl.AbstractVariableQueryImpl<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • executeFindUserCount

        protected abstract long executeFindUserCount​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
      • executeList

        public java.util.List<U> executeList​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
        Specified by:
        executeList in class org.flowable.variable.service.impl.AbstractVariableQueryImpl<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • executeFindUserList

        protected abstract java.util.List<U> executeFindUserList​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
      • ensureVariablesInitialized

        protected void ensureVariablesInitialized()
        Overrides:
        ensureVariablesInitialized in class org.flowable.variable.service.impl.AbstractVariableQueryImpl<T extends org.flowable.idm.api.UserBaseQuery<T,​U>,​U extends org.flowable.idm.api.User>
      • handleAccessibleByUser

        protected boolean handleAccessibleByUser​(org.flowable.common.engine.impl.interceptor.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:
        true if the query can actually be executed, false otherwise (return empty result)
      • handleLookupGroups

        protected boolean handleLookupGroups​(UserBaseQueryImpl<T,​U> query,
                                             java.util.List<java.lang.String> lookupGroups)
      • handleDynamicLookupVariable

        protected boolean handleDynamicLookupVariable​(UserBaseQueryImpl<T,​U> query,
                                                      java.lang.String lookupInfoName)
      • createNewQuery

        protected abstract T createNewQuery​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext,
                                            CoreIdmEngineConfiguration idmEngineConfiguration)
      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface org.flowable.common.engine.api.query.CacheAwareQuery<T extends org.flowable.idm.api.UserBaseQuery<T,​U>>
      • getIds

        public java.util.List<java.lang.String> getIds()
      • getIdIgnoreCase

        public java.lang.String getIdIgnoreCase()
      • getFirstName

        public java.lang.String getFirstName()
      • getFirstNameLike

        public java.lang.String getFirstNameLike()
      • getFirstNameLikeIgnoreCase

        public java.lang.String getFirstNameLikeIgnoreCase()
      • getLastName

        public java.lang.String getLastName()
      • getLastNameLike

        public java.lang.String getLastNameLike()
      • getLastNameLikeIgnoreCase

        public java.lang.String getLastNameLikeIgnoreCase()
      • getFullNameLike

        public java.lang.String getFullNameLike()
      • getFullNameLikeIgnoreCase

        public java.lang.String getFullNameLikeIgnoreCase()
      • getDisplayName

        public java.lang.String getDisplayName()
      • getDisplayNameLike

        public java.lang.String getDisplayNameLike()
      • getDisplayNameLikeIgnoreCase

        public java.lang.String getDisplayNameLikeIgnoreCase()
      • getAccessibleByUser

        public java.lang.String getAccessibleByUser()
      • getEmail

        public java.lang.String getEmail()
      • getEmailLike

        public java.lang.String getEmailLike()
      • getGroupId

        public java.lang.String getGroupId()
      • getGroupIds

        public java.util.List<java.lang.String> getGroupIds()
      • getTenantId

        public java.lang.String getTenantId()
      • getOrQueryObjects

        public java.util.List<T> getOrQueryObjects()