public abstract class TenantQueryImpl extends AbstractQuery<TenantQuery,Tenant> implements TenantQuery
AbstractQuery.ResultType| Modifier and Type | Field and Description |
|---|---|
protected String |
groupId |
protected String |
id |
protected String[] |
ids |
protected boolean |
includingGroups |
protected String |
name |
protected String |
nameLike |
protected String |
userId |
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validatorsauthCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck| Constructor and Description |
|---|
TenantQueryImpl() |
TenantQueryImpl(CommandExecutor commandExecutor) |
| Modifier and Type | Method and Description |
|---|---|
String |
getGroupId() |
String |
getId() |
String[] |
getIds() |
String |
getName() |
String |
getNameLike() |
String |
getUserId() |
TenantQuery |
groupMember(String groupId)
Only select
Tenants where the given group is member of. |
TenantQuery |
includingGroupsOfUser(boolean includingGroups)
Selects the
Tenants which belongs to one of the user's groups. |
boolean |
isIncludingGroups() |
TenantQuery |
orderByTenantId()
Order by tenant id (needs to be followed by
Query.asc() or Query.desc()). |
TenantQuery |
orderByTenantName()
Order by tenant name (needs to be followed by
Query.asc() or Query.desc()). |
TenantQuery |
tenantId(String id)
Only select
Tenants with the given id. |
TenantQuery |
tenantIdIn(String... ids)
Only select
Tenants with the given ids |
TenantQuery |
tenantName(String name)
Only select
Tenants with the given name. |
TenantQuery |
tenantNameLike(String nameLike)
Only select
Tenants where the name matches the given parameter. |
TenantQuery |
userMember(String userId)
Only select
Tenants where the given user is member of. |
addExpression, addValidator, asc, checkMaxResultsLimit, checkQueryOk, count, desc, direction, disableMaxResultsLimit, enableMaxResultsLimit, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteDeploymentIdMappingsList, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeCount, executeDeploymentIdMappingsList, executeIdsList, executeList, executeResult, executeSingleResult, extend, getExpressions, getMethod, hasExcludingConditions, list, listDeploymentIdMappings, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, unlimitedList, validate, validategetAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheckclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasc, count, desc, list, listPage, singleResult, unlimitedListisRetryableprotected String id
protected String[] ids
protected String name
protected String nameLike
protected String userId
protected String groupId
protected boolean includingGroups
public TenantQueryImpl()
public TenantQueryImpl(CommandExecutor commandExecutor)
public TenantQuery tenantId(String id)
TenantQueryTenants with the given id.tenantId in interface TenantQuerypublic TenantQuery tenantIdIn(String... ids)
TenantQueryTenants with the given idstenantIdIn in interface TenantQuerypublic TenantQuery tenantName(String name)
TenantQueryTenants with the given name.tenantName in interface TenantQuerypublic TenantQuery tenantNameLike(String nameLike)
TenantQueryTenants where the name matches the given parameter.
The syntax to use is that of SQL, eg. %tenant%.tenantNameLike in interface TenantQuerypublic TenantQuery userMember(String userId)
TenantQueryTenants where the given user is member of.userMember in interface TenantQuerypublic TenantQuery groupMember(String groupId)
TenantQueryTenants where the given group is member of.groupMember in interface TenantQuerypublic TenantQuery includingGroupsOfUser(boolean includingGroups)
TenantQueryTenants which belongs to one of the user's groups.
Can only be used in combination with TenantQuery.userMember(String)includingGroupsOfUser in interface TenantQuerypublic TenantQuery orderByTenantId()
TenantQueryQuery.asc() or Query.desc()).orderByTenantId in interface TenantQuerypublic TenantQuery orderByTenantName()
TenantQueryQuery.asc() or Query.desc()).orderByTenantName in interface TenantQuerypublic String getId()
public String getName()
public String getNameLike()
public String[] getIds()
public String getUserId()
public String getGroupId()
public boolean isIncludingGroups()
Copyright © 2022. All rights reserved.