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, validators
authCheck, 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
Tenant s where the given group is member of. |
TenantQuery |
includingGroupsOfUser(boolean includingGroups)
Selects the
Tenant s 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
Tenant s with the given id. |
TenantQuery |
tenantIdIn(String... ids)
Only select
Tenant s with the given ids |
TenantQuery |
tenantName(String name)
Only select
Tenant s with the given name. |
TenantQuery |
tenantNameLike(String nameLike)
Only select
Tenant s where the name matches the given parameter. |
TenantQuery |
userMember(String userId)
Only select
Tenant s where the given user is member of. |
addExpression, addValidator, asc, checkMaxResultsLimit, checkQueryOk, count, desc, direction, disableMaxResultsLimit, enableMaxResultsLimit, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeCount, executeIdsList, executeList, executeResult, executeSingleResult, extend, getExpressions, getMethod, hasExcludingConditions, list, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, unboundedResultList, validate, validate
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
protected 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)
TenantQuery
Tenant
s with the given id.tenantId
in interface TenantQuery
public TenantQuery tenantIdIn(String... ids)
TenantQuery
Tenant
s with the given idstenantIdIn
in interface TenantQuery
public TenantQuery tenantName(String name)
TenantQuery
Tenant
s with the given name.tenantName
in interface TenantQuery
public TenantQuery tenantNameLike(String nameLike)
TenantQuery
Tenant
s where the name matches the given parameter.
The syntax to use is that of SQL, eg. %tenant%.tenantNameLike
in interface TenantQuery
public TenantQuery userMember(String userId)
TenantQuery
Tenant
s where the given user is member of.userMember
in interface TenantQuery
public TenantQuery groupMember(String groupId)
TenantQuery
Tenant
s where the given group is member of.groupMember
in interface TenantQuery
public TenantQuery includingGroupsOfUser(boolean includingGroups)
TenantQuery
Tenant
s which belongs to one of the user's groups.
Can only be used in combination with TenantQuery.userMember(String)
includingGroupsOfUser
in interface TenantQuery
public TenantQuery orderByTenantId()
TenantQuery
Query.asc()
or Query.desc()
).orderByTenantId
in interface TenantQuery
public TenantQuery orderByTenantName()
TenantQuery
Query.asc()
or Query.desc()
).orderByTenantName
in interface TenantQuery
public 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.