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_MAPPER
An AttributesMapper that would be used only for the count query.protected Map<String,Filter>
filtersMap
protected static QueryProperty
GROUP_ID
protected static QueryProperty
GROUP_NAME
protected static QueryProperty
GROUP_TYPE
protected String
groupMember
protected String
groupMemberDn
protected List<String>
groupMembers
protected LdapConfigurationApi
ldapConfiguration
protected org.slf4j.Logger
logger
protected String
tenantId
-
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 protected
LdapGroupQuery(LdapConfigurationApi ldapConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OrFilter
createFilter(Collection<String> attributeNames, String value, BiFunction<String,String,Filter> filterCreator)
long
executeCount(CommandContext commandContext)
List<PlatformGroup>
executeList(CommandContext commandContext)
protected DistinguishedNameProvider
getDistinguishedNameProvider()
protected AttributesMapper<PlatformGroup>
getGroupAttributesMapper()
protected LdapGroupProperties.Mappings
getGroupMappings()
protected LdapGroupProperties
getGroupProperties()
protected LdapOperations
getLdapOperation()
PlatformGroupQuery
groupId(String groupId)
Only selectPlatformGroup
s with the given id.PlatformGroupQuery
groupIds(List<String> groupIds)
Only selectPlatformGroup
s with the given ids.PlatformGroupQuery
groupKey(String groupKey)
Only selectPlatformGroup
s which have the given key.PlatformGroupQuery
groupKeys(List<String> groupKeys)
Only selectPlatformGroup
s which have the given keys.PlatformGroupQuery
groupMember(String groupMemberUserId)
Only selectsPlatformGroup
s where the given user is a member of.PlatformGroupQuery
groupMemberDn(String groupMemberDn)
Only selectsPlatformGroup
s where the users with the given distinguished name is a member of.PlatformGroupQuery
groupMembers(List<String> groupMemberUserIds)
Only selectsPlatformGroup
s where the given users are a member of.PlatformGroupQuery
groupName(String groupName)
Only selectPlatformGroup
s with the given name.PlatformGroupQuery
groupNameLike(String groupNameLike)
Only selectPlatformGroup
s where the name matches the given parameter.PlatformGroupQuery
groupNameLikeIgnoreCase(String groupNameLikeIgnoreCase)
Only selectPlatformGroup
s where the name matches the given parameter (ignoring case).PlatformGroupQuery
groupTenantId(String tenantId)
Only selectPlatformGroup
s which have the given tenant id.PlatformGroupQuery
groupType(String groupType)
Only selectPlatformGroup
s which have the given type.protected Filter
memberFilter(Collection<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 Filter
prepareQueryFilter()
protected PlatformGroupQuery
with(String filterKey, Collection<String> attributeNames, String value, BiFunction<String,String,Filter> filterCreator)
protected PlatformGroupQuery
withFilter(String filterKey, 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, 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:
executeList
in classAbstractQuery<PlatformGroupQuery,PlatformGroup>
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCount
in classAbstractQuery<PlatformGroupQuery,PlatformGroup>
-
prepareQueryFilter
protected Filter prepareQueryFilter()
-
memberFilter
protected Filter memberFilter(Collection<String> memberDns)
-
groupId
public PlatformGroupQuery groupId(String groupId)
Description copied from interface:PlatformGroupQuery
Only selectPlatformGroup
s with the given id.- Specified by:
groupId
in interfacePlatformGroupQuery
-
groupIds
public PlatformGroupQuery groupIds(List<String> groupIds)
Description copied from interface:PlatformGroupQuery
Only selectPlatformGroup
s with the given ids.- Specified by:
groupIds
in interfacePlatformGroupQuery
-
groupName
public PlatformGroupQuery groupName(String groupName)
Description copied from interface:PlatformGroupQuery
Only selectPlatformGroup
s with the given name.- Specified by:
groupName
in interfacePlatformGroupQuery
-
groupNameLike
public PlatformGroupQuery groupNameLike(String 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
public PlatformGroupQuery groupNameLikeIgnoreCase(String 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
public PlatformGroupQuery groupType(String groupType)
Description copied from interface:PlatformGroupQuery
Only selectPlatformGroup
s which have the given type.- Specified by:
groupType
in interfacePlatformGroupQuery
-
groupKey
public PlatformGroupQuery groupKey(String groupKey)
Description copied from interface:PlatformGroupQuery
Only selectPlatformGroup
s which have the given key.- Specified by:
groupKey
in interfacePlatformGroupQuery
-
groupKeys
public PlatformGroupQuery groupKeys(List<String> groupKeys)
Description copied from interface:PlatformGroupQuery
Only selectPlatformGroup
s which have the given keys.- Specified by:
groupKeys
in interfacePlatformGroupQuery
-
groupTenantId
public PlatformGroupQuery groupTenantId(String tenantId)
Description copied from interface:PlatformGroupQuery
Only selectPlatformGroup
s which have the given tenant id.- Specified by:
groupTenantId
in interfacePlatformGroupQuery
-
withoutTenantId
public PlatformGroupQuery withoutTenantId()
Description copied from interface:PlatformGroupQuery
Only selectPlatformGroup
s which have no tenant id.- Specified by:
withoutTenantId
in interfacePlatformGroupQuery
-
groupMember
public PlatformGroupQuery groupMember(String groupMemberUserId)
Description copied from interface:PlatformGroupQuery
Only selectsPlatformGroup
s where the given user is a member of.- Specified by:
groupMember
in interfacePlatformGroupQuery
-
groupMembers
public PlatformGroupQuery groupMembers(List<String> groupMemberUserIds)
Description copied from interface:PlatformGroupQuery
Only selectsPlatformGroup
s where the given users are a member of.- Specified by:
groupMembers
in interfacePlatformGroupQuery
-
groupMemberDn
public PlatformGroupQuery groupMemberDn(String groupMemberDn)
Only selectsPlatformGroup
s 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:PlatformGroupQuery
Order by group id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByGroupId
in interfacePlatformGroupQuery
-
orderByGroupName
public PlatformGroupQuery orderByGroupName()
Description copied from interface:PlatformGroupQuery
Order by group name (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByGroupName
in interfacePlatformGroupQuery
-
orderByGroupType
public PlatformGroupQuery 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(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()
-
-