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
-
-
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
All Methods Instance Methods Concrete Methods 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, 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 Detail
-
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_MAPPER
An 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
protected LdapConfigurationApi 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 Detail
-
LdapGroupQuery
protected LdapGroupQuery(LdapConfigurationApi ldapConfiguration)
-
-
Method Detail
-
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
public PlatformGroupQuery groupId(java.lang.String groupId)
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups with the given id.- Specified by:
groupIdin interfacePlatformGroupQuery
-
groupIds
public PlatformGroupQuery groupIds(java.util.List<java.lang.String> groupIds)
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups with the given ids.- Specified by:
groupIdsin interfacePlatformGroupQuery
-
groupName
public PlatformGroupQuery groupName(java.lang.String groupName)
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups with the given name.- Specified by:
groupNamein interfacePlatformGroupQuery
-
groupNameLike
public PlatformGroupQuery groupNameLike(java.lang.String 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
public PlatformGroupQuery groupNameLikeIgnoreCase(java.lang.String 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
public PlatformGroupQuery groupType(java.lang.String groupType)
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups which have the given type.- Specified by:
groupTypein interfacePlatformGroupQuery
-
groupKey
public PlatformGroupQuery groupKey(java.lang.String groupKey)
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups which have the given key.- Specified by:
groupKeyin interfacePlatformGroupQuery
-
groupTenantId
public PlatformGroupQuery groupTenantId(java.lang.String tenantId)
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups which have the given tenant id.- Specified by:
groupTenantIdin interfacePlatformGroupQuery
-
withoutTenantId
public PlatformGroupQuery withoutTenantId()
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups which have no tenant id.- Specified by:
withoutTenantIdin interfacePlatformGroupQuery
-
groupMember
public PlatformGroupQuery groupMember(java.lang.String groupMemberUserId)
Description copied from interface:PlatformGroupQueryOnly selectsPlatformGroups where the given user is a member of.- Specified by:
groupMemberin interfacePlatformGroupQuery
-
groupMembers
public PlatformGroupQuery groupMembers(java.util.List<java.lang.String> groupMemberUserIds)
Description copied from interface:PlatformGroupQueryOnly selectsPlatformGroups where the given users are a member of.- Specified by:
groupMembersin interfacePlatformGroupQuery
-
orderByGroupId
public PlatformGroupQuery orderByGroupId()
Description copied from interface:PlatformGroupQueryOrder by group id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByGroupIdin interfacePlatformGroupQuery
-
orderByGroupName
public PlatformGroupQuery orderByGroupName()
Description copied from interface:PlatformGroupQueryOrder by group name (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByGroupNamein interfacePlatformGroupQuery
-
orderByGroupType
public PlatformGroupQuery 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
protected LdapGroupProperties.Mappings getGroupMappings()
-
getGroupProperties
protected LdapGroupProperties getGroupProperties()
-
getDistinguishedNameProvider
protected DistinguishedNameProvider getDistinguishedNameProvider()
-
getGroupAttributesMapper
protected org.springframework.ldap.core.AttributesMapper<PlatformGroup> getGroupAttributesMapper()
-
-