public class LdapGroupQuery extends AbstractQuery<PlatformGroupQuery,PlatformGroup> implements PlatformGroupQuery
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultType
Query.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, commandExecutor
databaseType, 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
PlatformGroup s with the given id. |
PlatformGroupQuery |
groupIds(List<String> groupIds)
Only select
PlatformGroup s with the given ids. |
PlatformGroupQuery |
groupKey(String groupKey)
Only select
PlatformGroup s which have the given key. |
PlatformGroupQuery |
groupKeys(List<String> groupKeys)
Only select
PlatformGroup s which have the given keys. |
PlatformGroupQuery |
groupMember(String groupMemberUserId)
Only selects
PlatformGroup s where the given user is a member of. |
PlatformGroupQuery |
groupMemberDn(String groupMemberDn)
Only selects
PlatformGroup s where the users with the given distinguished name is a member of. |
PlatformGroupQuery |
groupMembers(List<String> groupMemberUserIds)
Only selects
PlatformGroup s where the given users are a member of. |
PlatformGroupQuery |
groupName(String groupName)
Only select
PlatformGroup s with the given name. |
PlatformGroupQuery |
groupNameLike(String groupNameLike)
Only select
PlatformGroup s where the name matches the given parameter. |
PlatformGroupQuery |
groupNameLikeIgnoreCase(String groupNameLikeIgnoreCase)
Only select
PlatformGroup s where the name matches the given parameter (ignoring case). |
PlatformGroupQuery |
groupTenantId(String tenantId)
Only select
PlatformGroup s which have the given tenant id. |
PlatformGroupQuery |
groupType(String groupType)
Only select
PlatformGroup s 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
PlatformGroup s which have no tenant id. |
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResult
addOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setParameter
protected 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)
PlatformGroupQuery
PlatformGroup
s with the given id.groupId
in interface PlatformGroupQuery
public PlatformGroupQuery groupIds(List<String> groupIds)
PlatformGroupQuery
PlatformGroup
s with the given ids.groupIds
in interface PlatformGroupQuery
public PlatformGroupQuery groupName(String groupName)
PlatformGroupQuery
PlatformGroup
s with the given name.groupName
in interface PlatformGroupQuery
public PlatformGroupQuery groupNameLike(String groupNameLike)
PlatformGroupQuery
PlatformGroup
s where the name matches the given parameter. The syntax to use is that of SQL, eg. %test%.groupNameLike
in interface PlatformGroupQuery
public PlatformGroupQuery groupNameLikeIgnoreCase(String groupNameLikeIgnoreCase)
PlatformGroupQuery
PlatformGroup
s where the name matches the given parameter (ignoring case). The syntax to use is that of SQL, eg. %test%.groupNameLikeIgnoreCase
in interface PlatformGroupQuery
public PlatformGroupQuery groupType(String groupType)
PlatformGroupQuery
PlatformGroup
s which have the given type.groupType
in interface PlatformGroupQuery
public PlatformGroupQuery groupKey(String groupKey)
PlatformGroupQuery
PlatformGroup
s which have the given key.groupKey
in interface PlatformGroupQuery
public PlatformGroupQuery groupKeys(List<String> groupKeys)
PlatformGroupQuery
PlatformGroup
s which have the given keys.groupKeys
in interface PlatformGroupQuery
public PlatformGroupQuery groupTenantId(String tenantId)
PlatformGroupQuery
PlatformGroup
s which have the given tenant id.groupTenantId
in interface PlatformGroupQuery
public PlatformGroupQuery withoutTenantId()
PlatformGroupQuery
PlatformGroup
s which have no tenant id.withoutTenantId
in interface PlatformGroupQuery
public PlatformGroupQuery groupMember(String groupMemberUserId)
PlatformGroupQuery
PlatformGroup
s where the given user is a member of.groupMember
in interface PlatformGroupQuery
public PlatformGroupQuery groupMembers(List<String> groupMemberUserIds)
PlatformGroupQuery
PlatformGroup
s where the given users are a member of.groupMembers
in interface PlatformGroupQuery
public PlatformGroupQuery groupMemberDn(String groupMemberDn)
PlatformGroup
s where the users with the given distinguished name is a member of.groupMemberDn
- the user distinguished namepublic PlatformGroupQuery orderByGroupId()
PlatformGroupQuery
Query.asc()
or Query.desc()
).orderByGroupId
in interface PlatformGroupQuery
public PlatformGroupQuery orderByGroupName()
PlatformGroupQuery
Query.asc()
or Query.desc()
).orderByGroupName
in interface PlatformGroupQuery
public PlatformGroupQuery orderByGroupType()
PlatformGroupQuery
Query.asc()
or Query.desc()
).orderByGroupType
in interface PlatformGroupQuery
protected 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()