public class LdapGroupQuery extends AbstractQuery<PlatformGroupQuery,PlatformGroup> implements PlatformGroupQuery
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultTypeQuery.NullHandlingOnOrder| Modifier and Type | Field and 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 |
commandContext, commandExecutordatabaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC| Modifier | Constructor and Description |
|---|---|
protected |
LdapGroupQuery(LdapConfigurationApi ldapConfiguration) |
| Modifier and Type | Method and 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 select
PlatformGroups with the given id. |
PlatformGroupQuery |
groupIds(List<String> groupIds)
Only select
PlatformGroups with the given ids. |
PlatformGroupQuery |
groupKey(String groupKey)
Only select
PlatformGroups which have the given key. |
PlatformGroupQuery |
groupKeys(List<String> groupKeys)
Only select
PlatformGroups which have the given keys. |
PlatformGroupQuery |
groupMember(String groupMemberUserId)
Only selects
PlatformGroups where the given user is a member of. |
PlatformGroupQuery |
groupMemberDn(String groupMemberDn)
Only selects
PlatformGroups where the users with the given distinguished name is a member of. |
PlatformGroupQuery |
groupMembers(List<String> groupMemberUserIds)
Only selects
PlatformGroups where the given users are a member of. |
PlatformGroupQuery |
groupName(String groupName)
Only select
PlatformGroups with the given name. |
PlatformGroupQuery |
groupNameLike(String groupNameLike)
Only select
PlatformGroups where the name matches the given parameter. |
PlatformGroupQuery |
groupNameLikeIgnoreCase(String groupNameLikeIgnoreCase)
Only select
PlatformGroups where the name matches the given parameter (ignoring case). |
PlatformGroupQuery |
groupTenantId(String tenantId)
Only select
PlatformGroups which have the given tenant id. |
PlatformGroupQuery |
groupType(String groupType)
Only select
PlatformGroups which have the given type. |
protected Filter |
memberFilter(Collection<String> memberDns) |
PlatformGroupQuery |
orderByGroupId()
Order by group id (needs to be followed by
Query.asc() or Query.desc()). |
PlatformGroupQuery |
orderByGroupName()
Order by group name (needs to be followed by
Query.asc() or Query.desc()). |
PlatformGroupQuery |
orderByGroupType()
Order by group type (needs to be followed by
Query.asc() or Query.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 select
PlatformGroups which have no tenant id. |
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResultaddOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setParameterprotected static final QueryProperty GROUP_ID
protected static final QueryProperty GROUP_NAME
protected static final QueryProperty GROUP_TYPE
protected static final AttributesMapper<PlatformGroup> COUNTING_ATTRIBUTES_MAPPER
protected final org.slf4j.Logger logger
protected LdapConfigurationApi ldapConfiguration
protected String groupMember
protected String groupMemberDn
protected String tenantId
protected LdapGroupQuery(LdapConfigurationApi ldapConfiguration)
public List<PlatformGroup> executeList(CommandContext commandContext)
executeList in class AbstractQuery<PlatformGroupQuery,PlatformGroup>public long executeCount(CommandContext commandContext)
executeCount in class AbstractQuery<PlatformGroupQuery,PlatformGroup>protected Filter prepareQueryFilter()
protected Filter memberFilter(Collection<String> memberDns)
public PlatformGroupQuery groupId(String groupId)
PlatformGroupQueryPlatformGroups with the given id.groupId in interface PlatformGroupQuerypublic PlatformGroupQuery groupIds(List<String> groupIds)
PlatformGroupQueryPlatformGroups with the given ids.groupIds in interface PlatformGroupQuerypublic PlatformGroupQuery groupName(String groupName)
PlatformGroupQueryPlatformGroups with the given name.groupName in interface PlatformGroupQuerypublic PlatformGroupQuery groupNameLike(String groupNameLike)
PlatformGroupQueryPlatformGroups where the name matches the given parameter. The syntax to use is that of SQL, eg. %test%.groupNameLike in interface PlatformGroupQuerypublic PlatformGroupQuery groupNameLikeIgnoreCase(String groupNameLikeIgnoreCase)
PlatformGroupQueryPlatformGroups where the name matches the given parameter (ignoring case). The syntax to use is that of SQL, eg. %test%.groupNameLikeIgnoreCase in interface PlatformGroupQuerypublic PlatformGroupQuery groupType(String groupType)
PlatformGroupQueryPlatformGroups which have the given type.groupType in interface PlatformGroupQuerypublic PlatformGroupQuery groupKey(String groupKey)
PlatformGroupQueryPlatformGroups which have the given key.groupKey in interface PlatformGroupQuerypublic PlatformGroupQuery groupKeys(List<String> groupKeys)
PlatformGroupQueryPlatformGroups which have the given keys.groupKeys in interface PlatformGroupQuerypublic PlatformGroupQuery groupTenantId(String tenantId)
PlatformGroupQueryPlatformGroups which have the given tenant id.groupTenantId in interface PlatformGroupQuerypublic PlatformGroupQuery withoutTenantId()
PlatformGroupQueryPlatformGroups which have no tenant id.withoutTenantId in interface PlatformGroupQuerypublic PlatformGroupQuery groupMember(String groupMemberUserId)
PlatformGroupQueryPlatformGroups where the given user is a member of.groupMember in interface PlatformGroupQuerypublic PlatformGroupQuery groupMembers(List<String> groupMemberUserIds)
PlatformGroupQueryPlatformGroups where the given users are a member of.groupMembers in interface PlatformGroupQuerypublic PlatformGroupQuery groupMemberDn(String groupMemberDn)
PlatformGroups where the users with the given distinguished name is a member of.groupMemberDn - the user distinguished namepublic PlatformGroupQuery orderByGroupId()
PlatformGroupQueryQuery.asc() or Query.desc()).orderByGroupId in interface PlatformGroupQuerypublic PlatformGroupQuery orderByGroupName()
PlatformGroupQueryQuery.asc() or Query.desc()).orderByGroupName in interface PlatformGroupQuerypublic PlatformGroupQuery orderByGroupType()
PlatformGroupQueryQuery.asc() or Query.desc()).orderByGroupType in interface PlatformGroupQueryprotected PlatformGroupQuery withFilter(String filterKey, Filter query)
protected PlatformGroupQuery with(String filterKey, Collection<String> attributeNames, String value, BiFunction<String,String,Filter> filterCreator)
protected OrFilter createFilter(Collection<String> attributeNames, String value, BiFunction<String,String,Filter> filterCreator)
protected LdapOperations getLdapOperation()
protected LdapGroupProperties.Mappings getGroupMappings()
protected LdapGroupProperties getGroupProperties()
protected DistinguishedNameProvider getDistinguishedNameProvider()
protected AttributesMapper<PlatformGroup> getGroupAttributesMapper()