Package com.flowable.idm.engine.ldap
Class LdapGroupQuery
java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<PlatformGroupQuery,PlatformGroup>
com.flowable.idm.engine.ldap.LdapGroupQuery
- All Implemented Interfaces:
PlatformGroupQuery
,java.io.Serializable
,org.flowable.common.engine.api.query.Query<PlatformGroupQuery,PlatformGroup>
,org.flowable.common.engine.impl.interceptor.Command<java.lang.Object>
public class LdapGroupQuery extends org.flowable.common.engine.impl.query.AbstractQuery<PlatformGroupQuery,PlatformGroup> implements PlatformGroupQuery
- See Also:
- Serialized Form
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description protected static org.springframework.ldap.core.AttributesMapper<PlatformGroup>
COUNTING_ATTRIBUTES_MAPPER
An AttributesMapper that would be used only for the count query.protected java.util.Map<java.lang.String,org.springframework.ldap.filter.Filter>
filtersMap
protected static org.flowable.common.engine.api.query.QueryProperty
GROUP_ID
protected static org.flowable.common.engine.api.query.QueryProperty
GROUP_NAME
protected static org.flowable.common.engine.api.query.QueryProperty
GROUP_TYPE
protected java.lang.String
groupMember
protected java.util.List<java.lang.String>
groupMembers
protected LdapConfigurationApi
ldapConfiguration
protected org.slf4j.Logger
logger
protected java.lang.String
tenantId
-
Constructor Summary
Constructors Modifier Constructor Description protected
LdapGroupQuery(LdapConfigurationApi ldapConfiguration)
-
Method Summary
Modifier and Type Method Description protected org.springframework.ldap.filter.OrFilter
createFilter(java.util.Collection<java.lang.String> attributeNames, java.lang.String value, java.util.function.BiFunction<java.lang.String,java.lang.String,org.springframework.ldap.filter.Filter> filterCreator)
long
executeCount(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
java.util.List<PlatformGroup>
executeList(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
protected DistinguishedNameProvider
getDistinguishedNameProvider()
protected org.springframework.ldap.core.AttributesMapper<PlatformGroup>
getGroupAttributesMapper()
protected LdapGroupProperties.Mappings
getGroupMappings()
protected LdapGroupProperties
getGroupProperties()
protected org.springframework.ldap.core.LdapOperations
getLdapOperation()
PlatformGroupQuery
groupId(java.lang.String groupId)
Only selectPlatformGroup
s with the given id.PlatformGroupQuery
groupIds(java.util.List<java.lang.String> groupIds)
Only selectPlatformGroup
s with the given ids.PlatformGroupQuery
groupKey(java.lang.String groupKey)
Only selectPlatformGroup
s which have the given key.PlatformGroupQuery
groupMember(java.lang.String groupMemberUserId)
Only selectsPlatformGroup
s where the given user is a member of.PlatformGroupQuery
groupMembers(java.util.List<java.lang.String> groupMemberUserIds)
Only selectsPlatformGroup
s where the given users are a member of.PlatformGroupQuery
groupName(java.lang.String groupName)
Only selectPlatformGroup
s with the given name.PlatformGroupQuery
groupNameLike(java.lang.String groupNameLike)
Only selectPlatformGroup
s where the name matches the given parameter.PlatformGroupQuery
groupNameLikeIgnoreCase(java.lang.String groupNameLikeIgnoreCase)
Only selectPlatformGroup
s where the name matches the given parameter (ignoring case).PlatformGroupQuery
groupTenantId(java.lang.String tenantId)
Only selectPlatformGroup
s which have the given tenant id.PlatformGroupQuery
groupType(java.lang.String groupType)
Only selectPlatformGroup
s which have the given type.protected org.springframework.ldap.filter.Filter
memberFilter(java.util.Collection<java.lang.String> memberDns)
PlatformGroupQuery
orderByGroupId()
Order by group id (needs to be followed byQuery.asc()
orQuery.desc()
).PlatformGroupQuery
orderByGroupName()
Order by group name (needs to be followed byQuery.asc()
orQuery.desc()
).PlatformGroupQuery
orderByGroupType()
Order by group type (needs to be followed byQuery.asc()
orQuery.desc()
).protected org.springframework.ldap.filter.Filter
prepareQueryFilter()
protected PlatformGroupQuery
with(java.lang.String filterKey, java.util.Collection<java.lang.String> attributeNames, java.lang.String value, java.util.function.BiFunction<java.lang.String,java.lang.String,org.springframework.ldap.filter.Filter> filterCreator)
protected PlatformGroupQuery
withFilter(java.lang.String filterKey, org.springframework.ldap.filter.Filter query)
PlatformGroupQuery
withoutTenantId()
Only selectPlatformGroup
s which have no tenant id.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
-
Field Details
-
GROUP_ID
protected static final org.flowable.common.engine.api.query.QueryProperty GROUP_ID -
GROUP_NAME
protected static final org.flowable.common.engine.api.query.QueryProperty GROUP_NAME -
GROUP_TYPE
protected static final org.flowable.common.engine.api.query.QueryProperty GROUP_TYPE -
COUNTING_ATTRIBUTES_MAPPER
protected static final org.springframework.ldap.core.AttributesMapper<PlatformGroup> COUNTING_ATTRIBUTES_MAPPERAn AttributesMapper that would be used only for the count query. Since for this query only the number of results is needed. -
logger
protected final org.slf4j.Logger logger -
ldapConfiguration
-
filtersMap
protected java.util.Map<java.lang.String,org.springframework.ldap.filter.Filter> filtersMap -
groupMember
protected java.lang.String groupMember -
groupMembers
protected java.util.List<java.lang.String> groupMembers -
tenantId
protected java.lang.String tenantId
-
-
Constructor Details
-
Method Details
-
executeList
public java.util.List<PlatformGroup> executeList(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)- Specified by:
executeList
in classorg.flowable.common.engine.impl.query.AbstractQuery<PlatformGroupQuery,PlatformGroup>
-
executeCount
public long executeCount(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)- Specified by:
executeCount
in classorg.flowable.common.engine.impl.query.AbstractQuery<PlatformGroupQuery,PlatformGroup>
-
prepareQueryFilter
protected org.springframework.ldap.filter.Filter prepareQueryFilter() -
memberFilter
protected org.springframework.ldap.filter.Filter memberFilter(java.util.Collection<java.lang.String> memberDns) -
groupId
Description copied from interface:PlatformGroupQuery
Only selectPlatformGroup
s with the given id.- Specified by:
groupId
in interfacePlatformGroupQuery
-
groupIds
Description copied from interface:PlatformGroupQuery
Only selectPlatformGroup
s with the given ids.- Specified by:
groupIds
in interfacePlatformGroupQuery
-
groupName
Description copied from interface:PlatformGroupQuery
Only selectPlatformGroup
s with the given name.- Specified by:
groupName
in interfacePlatformGroupQuery
-
groupNameLike
Description copied from interface:PlatformGroupQuery
Only selectPlatformGroup
s where the name matches the given parameter. The syntax to use is that of SQL, eg. %test%.- Specified by:
groupNameLike
in interfacePlatformGroupQuery
-
groupNameLikeIgnoreCase
Description copied from interface:PlatformGroupQuery
Only selectPlatformGroup
s where the name matches the given parameter (ignoring case). The syntax to use is that of SQL, eg. %test%.- Specified by:
groupNameLikeIgnoreCase
in interfacePlatformGroupQuery
-
groupType
Description copied from interface:PlatformGroupQuery
Only selectPlatformGroup
s which have the given type.- Specified by:
groupType
in interfacePlatformGroupQuery
-
groupKey
Description copied from interface:PlatformGroupQuery
Only selectPlatformGroup
s which have the given key.- Specified by:
groupKey
in interfacePlatformGroupQuery
-
groupTenantId
Description copied from interface:PlatformGroupQuery
Only selectPlatformGroup
s which have the given tenant id.- Specified by:
groupTenantId
in interfacePlatformGroupQuery
-
withoutTenantId
Description copied from interface:PlatformGroupQuery
Only selectPlatformGroup
s which have no tenant id.- Specified by:
withoutTenantId
in interfacePlatformGroupQuery
-
groupMember
Description copied from interface:PlatformGroupQuery
Only selectsPlatformGroup
s where the given user is a member of.- Specified by:
groupMember
in interfacePlatformGroupQuery
-
groupMembers
Description copied from interface:PlatformGroupQuery
Only selectsPlatformGroup
s where the given users are a member of.- Specified by:
groupMembers
in interfacePlatformGroupQuery
-
orderByGroupId
Description copied from interface:PlatformGroupQuery
Order by group id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByGroupId
in interfacePlatformGroupQuery
-
orderByGroupName
Description copied from interface:PlatformGroupQuery
Order by group name (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByGroupName
in interfacePlatformGroupQuery
-
orderByGroupType
Description copied from interface:PlatformGroupQuery
Order by group type (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByGroupType
in interfacePlatformGroupQuery
-
withFilter
protected PlatformGroupQuery withFilter(java.lang.String filterKey, org.springframework.ldap.filter.Filter query) -
with
protected PlatformGroupQuery with(java.lang.String filterKey, java.util.Collection<java.lang.String> attributeNames, java.lang.String value, java.util.function.BiFunction<java.lang.String,java.lang.String,org.springframework.ldap.filter.Filter> filterCreator) -
createFilter
protected org.springframework.ldap.filter.OrFilter createFilter(java.util.Collection<java.lang.String> attributeNames, java.lang.String value, java.util.function.BiFunction<java.lang.String,java.lang.String,org.springframework.ldap.filter.Filter> filterCreator) -
getLdapOperation
protected org.springframework.ldap.core.LdapOperations getLdapOperation() -
getGroupMappings
-
getGroupProperties
-
getDistinguishedNameProvider
-
getGroupAttributesMapper
-