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,Serializable,Query<PlatformGroupQuery,PlatformGroup>,Command<Object>
public class LdapGroupQuery extends AbstractQuery<PlatformGroupQuery,PlatformGroup> implements PlatformGroupQuery
- 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 static AttributesMapper<PlatformGroup>COUNTING_ATTRIBUTES_MAPPERAn AttributesMapper that would be used only for the count query.protected Map<String,Filter>filtersMapprotected static QueryPropertyGROUP_IDprotected static QueryPropertyGROUP_NAMEprotected static QueryPropertyGROUP_TYPEprotected StringgroupMemberprotected StringgroupMemberDnprotected List<String>groupMembersprotected LdapConfigurationApildapConfigurationprotected org.slf4j.Loggerloggerprotected StringtenantId-
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 Modifier Constructor Description protectedLdapGroupQuery(LdapConfigurationApi ldapConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OrFiltercreateFilter(Collection<String> attributeNames, String value, BiFunction<String,String,Filter> filterCreator)longexecuteCount(CommandContext commandContext)List<PlatformGroup>executeList(CommandContext commandContext)protected DistinguishedNameProvidergetDistinguishedNameProvider()protected AttributesMapper<PlatformGroup>getGroupAttributesMapper()protected LdapGroupProperties.MappingsgetGroupMappings()protected LdapGroupPropertiesgetGroupProperties()protected LdapOperationsgetLdapOperation()PlatformGroupQuerygroupId(String groupId)Only selectPlatformGroups with the given id.PlatformGroupQuerygroupIds(List<String> groupIds)Only selectPlatformGroups with the given ids.PlatformGroupQuerygroupKey(String groupKey)Only selectPlatformGroups which have the given key.PlatformGroupQuerygroupKeys(List<String> groupKeys)Only selectPlatformGroups which have the given keys.PlatformGroupQuerygroupMember(String groupMemberUserId)Only selectsPlatformGroups where the given user is a member of.PlatformGroupQuerygroupMemberDn(String groupMemberDn)Only selectsPlatformGroups where the users with the given distinguished name is a member of.PlatformGroupQuerygroupMembers(List<String> groupMemberUserIds)Only selectsPlatformGroups where the given users are a member of.PlatformGroupQuerygroupName(String groupName)Only selectPlatformGroups with the given name.PlatformGroupQuerygroupNameLike(String groupNameLike)Only selectPlatformGroups where the name matches the given parameter.PlatformGroupQuerygroupNameLikeIgnoreCase(String groupNameLikeIgnoreCase)Only selectPlatformGroups where the name matches the given parameter (ignoring case).PlatformGroupQuerygroupTenantId(String tenantId)Only selectPlatformGroups which have the given tenant id.PlatformGroupQuerygroupType(String groupType)Only selectPlatformGroups which have the given type.protected FiltermemberFilter(Collection<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 FilterprepareQueryFilter()protected PlatformGroupQuerywith(String filterKey, Collection<String> attributeNames, String value, BiFunction<String,String,Filter> filterCreator)protected PlatformGroupQuerywithFilter(String filterKey, 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, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setParameter
-
-
-
-
Field Detail
-
GROUP_ID
protected static final QueryProperty GROUP_ID
-
GROUP_NAME
protected static final QueryProperty GROUP_NAME
-
GROUP_TYPE
protected static final QueryProperty GROUP_TYPE
-
COUNTING_ATTRIBUTES_MAPPER
protected static final 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
-
groupMember
protected String groupMember
-
groupMemberDn
protected String groupMemberDn
-
tenantId
protected String tenantId
-
-
Constructor Detail
-
LdapGroupQuery
protected LdapGroupQuery(LdapConfigurationApi ldapConfiguration)
-
-
Method Detail
-
executeList
public List<PlatformGroup> executeList(CommandContext commandContext)
- Specified by:
executeListin classAbstractQuery<PlatformGroupQuery,PlatformGroup>
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractQuery<PlatformGroupQuery,PlatformGroup>
-
prepareQueryFilter
protected Filter prepareQueryFilter()
-
memberFilter
protected Filter memberFilter(Collection<String> memberDns)
-
groupId
public PlatformGroupQuery groupId(String groupId)
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups with the given id.- Specified by:
groupIdin interfacePlatformGroupQuery
-
groupIds
public PlatformGroupQuery groupIds(List<String> groupIds)
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups with the given ids.- Specified by:
groupIdsin interfacePlatformGroupQuery
-
groupName
public PlatformGroupQuery groupName(String groupName)
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups with the given name.- Specified by:
groupNamein interfacePlatformGroupQuery
-
groupNameLike
public PlatformGroupQuery groupNameLike(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(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(String groupType)
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups which have the given type.- Specified by:
groupTypein interfacePlatformGroupQuery
-
groupKey
public PlatformGroupQuery groupKey(String groupKey)
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups which have the given key.- Specified by:
groupKeyin interfacePlatformGroupQuery
-
groupKeys
public PlatformGroupQuery groupKeys(List<String> groupKeys)
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups which have the given keys.- Specified by:
groupKeysin interfacePlatformGroupQuery
-
groupTenantId
public PlatformGroupQuery groupTenantId(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(String groupMemberUserId)
Description copied from interface:PlatformGroupQueryOnly selectsPlatformGroups where the given user is a member of.- Specified by:
groupMemberin interfacePlatformGroupQuery
-
groupMembers
public PlatformGroupQuery groupMembers(List<String> groupMemberUserIds)
Description copied from interface:PlatformGroupQueryOnly selectsPlatformGroups where the given users are a member of.- Specified by:
groupMembersin interfacePlatformGroupQuery
-
groupMemberDn
public PlatformGroupQuery groupMemberDn(String groupMemberDn)
Only selectsPlatformGroups where the users with the given distinguished name is a member of.- Parameters:
groupMemberDn- the user distinguished name
-
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(String filterKey, Filter query)
-
with
protected PlatformGroupQuery with(String filterKey, Collection<String> attributeNames, String value, BiFunction<String,String,Filter> filterCreator)
-
createFilter
protected OrFilter createFilter(Collection<String> attributeNames, String value, BiFunction<String,String,Filter> filterCreator)
-
getLdapOperation
protected LdapOperations getLdapOperation()
-
getGroupMappings
protected LdapGroupProperties.Mappings getGroupMappings()
-
getGroupProperties
protected LdapGroupProperties getGroupProperties()
-
getDistinguishedNameProvider
protected DistinguishedNameProvider getDistinguishedNameProvider()
-
getGroupAttributesMapper
protected AttributesMapper<PlatformGroup> getGroupAttributesMapper()
-
-