public class DeviceServiceImpl extends org.flowable.common.engine.impl.service.CommonEngineServiceImpl<EngageEngineConfiguration> implements DeviceService
Constructor and Description |
---|
DeviceServiceImpl(EngageEngineConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
DeviceQuery |
createDeviceQuery() |
DeviceRegistration |
createDeviceRegistration() |
void |
disableDevice(String deviceId)
Disables the device with the given id.
|
Device |
enableDevice(String id,
String userId,
String tenantId)
Enable the device and update the user and tenant assignment.
|
Device |
registerDevice(DeviceRegistrationImpl deviceRegistration) |
void |
removeDevice(String deviceId) |
getCommandExecutor, setCommandExecutor
public DeviceServiceImpl(EngageEngineConfiguration configuration)
public DeviceRegistration createDeviceRegistration()
createDeviceRegistration
in interface DeviceService
public DeviceQuery createDeviceQuery()
createDeviceQuery
in interface DeviceService
public void removeDevice(String deviceId)
removeDevice
in interface DeviceService
public void disableDevice(String deviceId)
DeviceService
disableDevice
in interface DeviceService
deviceId
- the id of the devicepublic Device enableDevice(String id, String userId, String tenantId)
DeviceService
userId
or tenantId
then the device user and tenant assignment won't be changed.enableDevice
in interface DeviceService
id
- the id of the deviceuserId
- the id of the user to which it should be assignedtenantId
- the id of the tenant to which it should be assignedpublic Device registerDevice(DeviceRegistrationImpl deviceRegistration)
Copyright © 2019. All rights reserved.