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_MAPPERAn AttributesMapper that would be used only for the count query.protected java.util.Map<java.lang.String,org.springframework.ldap.filter.Filter>filtersMapprotected static org.flowable.common.engine.api.query.QueryPropertyGROUP_IDprotected static org.flowable.common.engine.api.query.QueryPropertyGROUP_NAMEprotected static org.flowable.common.engine.api.query.QueryPropertyGROUP_TYPEprotected java.lang.StringgroupMemberprotected java.util.List<java.lang.String>groupMembersprotected LdapConfigurationApildapConfigurationprotected org.slf4j.Loggerloggerprotected java.lang.StringtenantId -
Constructor Summary
Constructors Modifier Constructor Description protectedLdapGroupQuery(LdapConfigurationApi ldapConfiguration) -
Method Summary
Modifier and Type Method Description protected org.springframework.ldap.filter.OrFiltercreateFilter(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)longexecuteCount(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)java.util.List<PlatformGroup>executeList(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)protected DistinguishedNameProvidergetDistinguishedNameProvider()protected org.springframework.ldap.core.AttributesMapper<PlatformGroup>getGroupAttributesMapper()protected LdapGroupProperties.MappingsgetGroupMappings()protected LdapGroupPropertiesgetGroupProperties()protected org.springframework.ldap.core.LdapOperationsgetLdapOperation()PlatformGroupQuerygroupId(java.lang.String groupId)Only selectPlatformGroups with the given id.PlatformGroupQuerygroupIds(java.util.List<java.lang.String> groupIds)Only selectPlatformGroups with the given ids.PlatformGroupQuerygroupKey(java.lang.String groupKey)Only selectPlatformGroups which have the given key.PlatformGroupQuerygroupMember(java.lang.String groupMemberUserId)Only selectsPlatformGroups where the given user is a member of.PlatformGroupQuerygroupMembers(java.util.List<java.lang.String> groupMemberUserIds)Only selectsPlatformGroups where the given users are a member of.PlatformGroupQuerygroupName(java.lang.String groupName)Only selectPlatformGroups with the given name.PlatformGroupQuerygroupNameLike(java.lang.String groupNameLike)Only selectPlatformGroups where the name matches the given parameter.PlatformGroupQuerygroupNameLikeIgnoreCase(java.lang.String groupNameLikeIgnoreCase)Only selectPlatformGroups where the name matches the given parameter (ignoring case).PlatformGroupQuerygroupTenantId(java.lang.String tenantId)Only selectPlatformGroups which have the given tenant id.PlatformGroupQuerygroupType(java.lang.String groupType)Only selectPlatformGroups which have the given type.protected org.springframework.ldap.filter.FiltermemberFilter(java.util.Collection<java.lang.String> memberDns)PlatformGroupQueryorderByGroupId()Order by group id (needs to be followed byQuery.asc()orQuery.desc()).PlatformGroupQueryorderByGroupName()Order by group name (needs to be followed byQuery.asc()orQuery.desc()).PlatformGroupQueryorderByGroupType()Order by group type (needs to be followed byQuery.asc()orQuery.desc()).protected org.springframework.ldap.filter.FilterprepareQueryFilter()protected PlatformGroupQuerywith(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 PlatformGroupQuerywithFilter(java.lang.String filterKey, org.springframework.ldap.filter.Filter query)PlatformGroupQuerywithoutTenantId()Only selectPlatformGroups 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, singleResultMethods 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:
executeListin classorg.flowable.common.engine.impl.query.AbstractQuery<PlatformGroupQuery,PlatformGroup>
-
executeCount
public long executeCount(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)- Specified by:
executeCountin 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:PlatformGroupQueryOnly selectPlatformGroups with the given id.- Specified by:
groupIdin interfacePlatformGroupQuery
-
groupIds
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups with the given ids.- Specified by:
groupIdsin interfacePlatformGroupQuery
-
groupName
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups with the given name.- Specified by:
groupNamein interfacePlatformGroupQuery
-
groupNameLike
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups where the name matches the given parameter. The syntax to use is that of SQL, eg. %test%.- Specified by:
groupNameLikein interfacePlatformGroupQuery
-
groupNameLikeIgnoreCase
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups where the name matches the given parameter (ignoring case). The syntax to use is that of SQL, eg. %test%.- Specified by:
groupNameLikeIgnoreCasein interfacePlatformGroupQuery
-
groupType
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups which have the given type.- Specified by:
groupTypein interfacePlatformGroupQuery
-
groupKey
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups which have the given key.- Specified by:
groupKeyin interfacePlatformGroupQuery
-
groupTenantId
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups which have the given tenant id.- Specified by:
groupTenantIdin interfacePlatformGroupQuery
-
withoutTenantId
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups which have no tenant id.- Specified by:
withoutTenantIdin interfacePlatformGroupQuery
-
groupMember
Description copied from interface:PlatformGroupQueryOnly selectsPlatformGroups where the given user is a member of.- Specified by:
groupMemberin interfacePlatformGroupQuery
-
groupMembers
Description copied from interface:PlatformGroupQueryOnly selectsPlatformGroups where the given users are a member of.- Specified by:
groupMembersin interfacePlatformGroupQuery
-
orderByGroupId
Description copied from interface:PlatformGroupQueryOrder by group id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByGroupIdin interfacePlatformGroupQuery
-
orderByGroupName
Description copied from interface:PlatformGroupQueryOrder by group name (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByGroupNamein interfacePlatformGroupQuery
-
orderByGroupType
Description copied from interface:PlatformGroupQueryOrder by group type (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByGroupTypein 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
-