Package org.camunda.bpm.engine.impl
Class TenantQueryImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.ListQueryParameterObject
-
- org.camunda.bpm.engine.impl.AbstractQuery<TenantQuery,Tenant>
-
- org.camunda.bpm.engine.impl.TenantQueryImpl
-
- All Implemented Interfaces:
java.io.Serializable,TenantQuery,Command<java.lang.Object>,Query<TenantQuery,Tenant>
- Direct Known Subclasses:
DbTenantQueryImpl,LdapTenantQuery
public abstract class TenantQueryImpl extends AbstractQuery<TenantQuery,Tenant> implements TenantQuery
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringgroupIdprotected java.lang.Stringidprotected java.lang.String[]idsprotected booleanincludingGroupsprotected java.lang.Stringnameprotected java.lang.StringnameLikeprotected java.lang.StringuserId-
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
-
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
-
-
Constructor Summary
Constructors Constructor Description TenantQueryImpl()TenantQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetGroupId()java.lang.StringgetId()java.lang.String[]getIds()java.lang.StringgetName()java.lang.StringgetNameLike()java.lang.StringgetUserId()TenantQuerygroupMember(java.lang.String groupId)Only selectTenants where the given group is member of.TenantQueryincludingGroupsOfUser(boolean includingGroups)Selects theTenants which belongs to one of the user's groups.booleanisIncludingGroups()TenantQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).TenantQueryorderByTenantName()Order by tenant name (needs to be followed byQuery.asc()orQuery.desc()).TenantQuerytenantId(java.lang.String id)Only selectTenants with the given id.TenantQuerytenantIdIn(java.lang.String... ids)Only selectTenants with the given idsTenantQuerytenantName(java.lang.String name)Only selectTenants with the given name.TenantQuerytenantNameLike(java.lang.String nameLike)Only selectTenants where the name matches the given parameter.TenantQueryuserMember(java.lang.String userId)Only selectTenants where the given user is member of.-
Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
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, validate
-
Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
-
Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
-
-
-
Constructor Detail
-
TenantQueryImpl
public TenantQueryImpl()
-
TenantQueryImpl
public TenantQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
tenantId
public TenantQuery tenantId(java.lang.String id)
Description copied from interface:TenantQueryOnly selectTenants with the given id.- Specified by:
tenantIdin interfaceTenantQuery
-
tenantIdIn
public TenantQuery tenantIdIn(java.lang.String... ids)
Description copied from interface:TenantQueryOnly selectTenants with the given ids- Specified by:
tenantIdInin interfaceTenantQuery
-
tenantName
public TenantQuery tenantName(java.lang.String name)
Description copied from interface:TenantQueryOnly selectTenants with the given name.- Specified by:
tenantNamein interfaceTenantQuery
-
tenantNameLike
public TenantQuery tenantNameLike(java.lang.String nameLike)
Description copied from interface:TenantQueryOnly selectTenants where the name matches the given parameter. The syntax to use is that of SQL, eg. %tenant%.- Specified by:
tenantNameLikein interfaceTenantQuery
-
userMember
public TenantQuery userMember(java.lang.String userId)
Description copied from interface:TenantQueryOnly selectTenants where the given user is member of.- Specified by:
userMemberin interfaceTenantQuery
-
groupMember
public TenantQuery groupMember(java.lang.String groupId)
Description copied from interface:TenantQueryOnly selectTenants where the given group is member of.- Specified by:
groupMemberin interfaceTenantQuery
-
includingGroupsOfUser
public TenantQuery includingGroupsOfUser(boolean includingGroups)
Description copied from interface:TenantQuerySelects theTenants which belongs to one of the user's groups. Can only be used in combination withTenantQuery.userMember(String)- Specified by:
includingGroupsOfUserin interfaceTenantQuery
-
orderByTenantId
public TenantQuery orderByTenantId()
Description copied from interface:TenantQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceTenantQuery
-
orderByTenantName
public TenantQuery orderByTenantName()
Description copied from interface:TenantQueryOrder by tenant name (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantNamein interfaceTenantQuery
-
getId
public java.lang.String getId()
-
getName
public java.lang.String getName()
-
getNameLike
public java.lang.String getNameLike()
-
getIds
public java.lang.String[] getIds()
-
getUserId
public java.lang.String getUserId()
-
getGroupId
public java.lang.String getGroupId()
-
isIncludingGroups
public boolean isIncludingGroups()
-
-