public class DeviceQueryImpl extends org.flowable.common.engine.impl.query.AbstractQuery<DeviceQuery,Device> implements DeviceQuery, org.flowable.common.engine.api.query.QueryCacheValues
Modifier and Type | Field and Description |
---|---|
protected String |
applicationId |
protected String |
deviceOS |
protected String |
id |
protected boolean |
onlyEnabled |
protected String |
tenantId |
protected String |
token |
protected String |
userId |
Constructor and Description |
---|
DeviceQueryImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
DeviceQuery |
applicationId(String applicationId)
Query for devices for the given application.
|
DeviceQuery |
deviceOS(String deviceOS)
Query devices only with the given OS.
|
long |
executeCount(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) |
List<Device> |
executeList(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) |
String |
getApplicationId() |
String |
getDeviceOS() |
String |
getId() |
String |
getTenantId() |
String |
getToken() |
String |
getUserId() |
DeviceQuery |
id(String id)
Query for devices for the given id.
|
boolean |
isOnlyEnabled() |
DeviceQuery |
onlyEnabled()
Query only for enabled devices.
|
DeviceQuery |
tenantId(String tenantId)
Query for devices within the given tenant.
|
DeviceQuery |
token(String token)
Query for devices for the given token.
|
DeviceQuery |
userId(String userId)
Query for devices for the given user.
|
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResult
addOrder, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByColumnMap, getOrderByColumns, getParameter, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setOrderByColumns, setParameter
protected String id
protected String token
protected String userId
protected String tenantId
protected String applicationId
protected String deviceOS
protected boolean onlyEnabled
public DeviceQueryImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)
public DeviceQuery id(String id)
DeviceQuery
id
in interface DeviceQuery
id
- the id for which to querypublic DeviceQuery token(String token)
DeviceQuery
token
in interface DeviceQuery
token
- the token for which to querypublic DeviceQuery userId(String userId)
DeviceQuery
userId
in interface DeviceQuery
userId
- the id of the user for which to querypublic DeviceQuery tenantId(String tenantId)
DeviceQuery
tenantId
in interface DeviceQuery
tenantId
- the tenant id for which to querypublic DeviceQuery applicationId(String applicationId)
DeviceQuery
applicationId
in interface DeviceQuery
applicationId
- the id of the application for which to querypublic DeviceQuery deviceOS(String deviceOS)
DeviceQuery
deviceOS
in interface DeviceQuery
deviceOS
- the type of the os for which to queryDeviceOS
public DeviceQuery onlyEnabled()
DeviceQuery
onlyEnabled
in interface DeviceQuery
public long executeCount(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
executeCount
in class org.flowable.common.engine.impl.query.AbstractQuery<DeviceQuery,Device>
public List<Device> executeList(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
executeList
in class org.flowable.common.engine.impl.query.AbstractQuery<DeviceQuery,Device>
public String getId()
getId
in interface org.flowable.common.engine.api.query.QueryCacheValues
public String getToken()
public String getUserId()
public String getTenantId()
public String getApplicationId()
public String getDeviceOS()
public boolean isOnlyEnabled()
Copyright © 2019. All rights reserved.