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.ResultTypeNested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final QueryPropertyprotected static final QueryPropertyprotected static final QueryPropertyprotected Stringprotected Stringprotected StringFields inherited from class com.flowable.idm.engine.ldap.AbstractLdapQuery
filtersMap, ldapConfiguration, loggerFields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutorFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected AttributesMapper<PlatformGroup>protected Stringprotected DistinguishedNameProviderprotected LdapGroupProperties.Mappingsprotected LdapGroupPropertiesprotected Stringprotected SortPropertiesgetSort()protected Collection<String>getSortAttributes(String sortProperty) protected StringgetSortProperty(String columnName) protected PlatformGroupQuerygetThis()Only selectPlatformGroups with the given id.Only selectPlatformGroups with the given ids.Only selectPlatformGroups which have the given key.Only selectPlatformGroups which have the given keys.groupMember(String groupMemberUserId) Only selectsPlatformGroups where the given user is a member of.groupMemberDn(String groupMemberDn) Only selectsPlatformGroups where the users with the given distinguished name is a member of.groupMembers(List<String> groupMemberUserIds) Only selectsPlatformGroups where the given users are a member of.Only selectPlatformGroups with the given name.groupNameLike(String groupNameLike) Only selectPlatformGroups where the name matches the given parameter.groupNameLikeIgnoreCase(String groupNameLikeIgnoreCase) Only selectPlatformGroups where the name matches the given parameter (ignoring case).groupTenantId(String tenantId) Only selectPlatformGroups which have the given tenant id.Only selectPlatformGroups which have the given type.infoEquals(String name, Object value) Checks for a group with the given info name and value.infoEqualsIgnoreCase(String name, String value) Checks for a group with the given info name and value ignoring the case of the value.infoValueLike(String name, String valueLike) Checks for a group with the given info name and value like.infoValueLikeIgnoreCase(String name, String valueLike) Checks for a group with the given info name and value like ignoring the case of the value.protected FiltermemberFilter(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 Filterprotected PlatformGroupQuerywith(String filterKey, Collection<String> attributeNames, String value, BiFunction<String, String, Filter> filterCreator) protected PlatformGroupQuerywithInfo(String filterKey, String infoName, String value, BiFunction<String, String, Filter> filterCreator) Only selectPlatformGroups which have no tenant id.Methods inherited from class com.flowable.idm.engine.ldap.AbstractLdapQuery
createDirContextProcessorForSort, createFilter, createSearchControlsForQuery, executeCount, executeList, getLdapOperations, withFilterMethods 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, 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:
prepareQueryFilterin classAbstractLdapQuery<PlatformGroupQuery,PlatformGroup>
-
memberFilter
-
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
-
groupKeys
Description copied from interface:PlatformGroupQueryOnly selectPlatformGroups which have the given keys.- Specified by:
groupKeysin 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
-
infoEquals
Description copied from interface:PlatformGroupQueryChecks for a group with the given info name and value.- Specified by:
infoEqualsin interfacePlatformGroupQuery- Parameters:
name- the name of the infovalue- the value that the info should have
-
infoEqualsIgnoreCase
Description copied from interface:PlatformGroupQueryChecks for a group with the given info name and value ignoring the case of the value.- Specified by:
infoEqualsIgnoreCasein interfacePlatformGroupQuery- Parameters:
name- the name of the infovalue- the value that the info should have
-
infoValueLike
Description copied from interface:PlatformGroupQueryChecks for a group with the given info name and value like.- Specified by:
infoValueLikein interfacePlatformGroupQuery- Parameters:
name- the name of the infovalueLike- the value like the info should have ('%' has to be added by the caller itself)
-
infoValueLikeIgnoreCase
Description copied from interface:PlatformGroupQueryChecks for a group with the given info name and value like ignoring the case of the value.- Specified by:
infoValueLikeIgnoreCasein interfacePlatformGroupQuery- Parameters:
name- the name of the infovalueLike- the value like the info should have ('%' has to be added by the caller itself)
-
groupMemberDn
Only selectsPlatformGroups where the users with the given distinguished name is a member of.- Parameters:
groupMemberDn- the user distinguished name
-
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
-
withInfo
protected PlatformGroupQuery withInfo(String filterKey, String infoName, String value, BiFunction<String, String, Filter> filterCreator) -
with
protected PlatformGroupQuery with(String filterKey, Collection<String> attributeNames, String value, BiFunction<String, String, Filter> filterCreator) -
getGroupMappings
-
getGroupProperties
-
getDistinguishedNameProvider
-
getQueryBase
- Specified by:
getQueryBasein classAbstractLdapQuery<PlatformGroupQuery,PlatformGroup>
-
getAttributesMapper
- Specified by:
getAttributesMapperin classAbstractLdapQuery<PlatformGroupQuery,PlatformGroup>
-
getDistinguishedName
- Specified by:
getDistinguishedNamein classAbstractLdapQuery<PlatformGroupQuery,PlatformGroup>
-
getSort
- Specified by:
getSortin classAbstractLdapQuery<PlatformGroupQuery,PlatformGroup>
-
getSortProperty
- Specified by:
getSortPropertyin classAbstractLdapQuery<PlatformGroupQuery,PlatformGroup>
-
getSortAttributes
- Specified by:
getSortAttributesin classAbstractLdapQuery<PlatformGroupQuery,PlatformGroup>
-
getThis
- Specified by:
getThisin classAbstractLdapQuery<PlatformGroupQuery,PlatformGroup>
-