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<T,U>
com.flowable.idm.engine.ldap.AbstractLdapQuery<PlatformGroupQuery,PlatformGroup>
com.flowable.idm.engine.ldap.LdapGroupQuery
- All Implemented Interfaces:
PlatformGroupQuery
,Serializable
,Query<PlatformGroupQuery,
,PlatformGroup> Command<Object>
public class LdapGroupQuery
extends AbstractLdapQuery<PlatformGroupQuery,PlatformGroup>
implements PlatformGroupQuery
- See Also:
-
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
Modifier and TypeFieldDescriptionprotected static final QueryProperty
protected static final QueryProperty
protected static final QueryProperty
protected String
protected String
protected String
Fields inherited from class com.flowable.idm.engine.ldap.AbstractLdapQuery
filtersMap, ldapConfiguration, logger
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected AttributesMapper<PlatformGroup>
protected String
protected DistinguishedNameProvider
protected LdapGroupProperties.Mappings
protected LdapGroupProperties
protected String
protected SortProperties
getSort()
protected Collection<String>
getSortAttributes
(String sortProperty) protected String
getSortProperty
(String columnName) protected PlatformGroupQuery
getThis()
Only selectPlatformGroup
s with the given id.Only selectPlatformGroup
s with the given ids.Only selectPlatformGroup
s which have the given key.Only selectPlatformGroup
s which have the given keys.groupMember
(String groupMemberUserId) Only selectsPlatformGroup
s where the given user is a member of.groupMemberDn
(String groupMemberDn) Only selectsPlatformGroup
s where the users with the given distinguished name is a member of.groupMembers
(List<String> groupMemberUserIds) Only selectsPlatformGroup
s where the given users are a member of.Only selectPlatformGroup
s with the given name.groupNameLike
(String groupNameLike) Only selectPlatformGroup
s where the name matches the given parameter.groupNameLikeIgnoreCase
(String groupNameLikeIgnoreCase) Only selectPlatformGroup
s where the name matches the given parameter (ignoring case).groupTenantId
(String tenantId) Only selectPlatformGroup
s which have the given tenant id.Only selectPlatformGroup
s which have the given type.protected Filter
memberFilter
(Collection<String> memberDns) Order by group id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by group name (needs to be followed byQuery.asc()
orQuery.desc()
).Order by group type (needs to be followed byQuery.asc()
orQuery.desc()
).protected Filter
protected PlatformGroupQuery
with
(String filterKey, Collection<String> attributeNames, String value, BiFunction<String, String, Filter> filterCreator) Only selectPlatformGroup
s which have no tenant id.Methods inherited from class com.flowable.idm.engine.ldap.AbstractLdapQuery
createDirContextProcessorForSort, createFilter, createSearchControlsForQuery, executeCount, executeList, getLdapOperations, withFilter
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 Details
-
GROUP_ID
-
GROUP_NAME
-
GROUP_TYPE
-
COLUMN_TO_PROPERTY_MAPPING
-
groupMember
-
groupMembers
-
groupMemberDn
-
tenantId
-
-
Constructor Details
-
LdapGroupQuery
-
-
Method Details
-
prepareQueryFilter
- Specified by:
prepareQueryFilter
in classAbstractLdapQuery<PlatformGroupQuery,
PlatformGroup>
-
memberFilter
-
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
-
groupKeys
Description copied from interface:PlatformGroupQuery
Only selectPlatformGroup
s which have the given keys.- Specified by:
groupKeys
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
-
groupMemberDn
Only selectsPlatformGroup
s where the users with the given distinguished name is a member of.- Parameters:
groupMemberDn
- the user distinguished name
-
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
-
with
protected PlatformGroupQuery with(String filterKey, Collection<String> attributeNames, String value, BiFunction<String, String, Filter> filterCreator) -
getGroupMappings
-
getGroupProperties
-
getDistinguishedNameProvider
-
getQueryBase
- Specified by:
getQueryBase
in classAbstractLdapQuery<PlatformGroupQuery,
PlatformGroup>
-
getAttributesMapper
- Specified by:
getAttributesMapper
in classAbstractLdapQuery<PlatformGroupQuery,
PlatformGroup>
-
getDistinguishedName
- Specified by:
getDistinguishedName
in classAbstractLdapQuery<PlatformGroupQuery,
PlatformGroup>
-
getSort
- Specified by:
getSort
in classAbstractLdapQuery<PlatformGroupQuery,
PlatformGroup>
-
getSortProperty
- Specified by:
getSortProperty
in classAbstractLdapQuery<PlatformGroupQuery,
PlatformGroup>
-
getSortAttributes
- Specified by:
getSortAttributes
in classAbstractLdapQuery<PlatformGroupQuery,
PlatformGroup>
-
getThis
- Specified by:
getThis
in classAbstractLdapQuery<PlatformGroupQuery,
PlatformGroup>
-