Class DeviceServiceImpl
java.lang.Object
org.flowable.common.engine.impl.service.CommonServiceImpl<C>
org.flowable.common.engine.impl.service.CommonEngineServiceImpl<EngageEngineConfiguration>
com.flowable.engage.engine.impl.notification.push.DeviceServiceImpl
- All Implemented Interfaces:
DeviceService
public class DeviceServiceImpl extends org.flowable.common.engine.impl.service.CommonEngineServiceImpl<EngageEngineConfiguration> implements DeviceService
- Author:
- Filip Hrisafov
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DeviceServiceImpl(EngageEngineConfiguration configuration)
-
Method Summary
Modifier and Type Method Description DeviceQuery
createDeviceQuery()
DeviceRegistration
createDeviceRegistration()
void
disableDevice(java.lang.String deviceId)
Disables the device with the given id.Device
enableDevice(java.lang.String id, java.lang.String userId, java.lang.String tenantId)
Enable the device and update the user and tenant assignment.Device
registerDevice(DeviceRegistrationImpl deviceRegistration)
void
removeDevice(java.lang.String deviceId)
Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutor
-
Constructor Details
-
Method Details
-
createDeviceRegistration
- Specified by:
createDeviceRegistration
in interfaceDeviceService
-
createDeviceQuery
- Specified by:
createDeviceQuery
in interfaceDeviceService
-
removeDevice
public void removeDevice(java.lang.String deviceId)- Specified by:
removeDevice
in interfaceDeviceService
-
disableDevice
public void disableDevice(java.lang.String deviceId)Description copied from interface:DeviceService
Disables the device with the given id. If no device exists with the given id, nothing is done- Specified by:
disableDevice
in interfaceDeviceService
- Parameters:
deviceId
- the id of the device
-
enableDevice
public Device enableDevice(java.lang.String id, java.lang.String userId, java.lang.String tenantId)Description copied from interface:DeviceService
Enable the device and update the user and tenant assignment. IfuserId
ortenantId
then the device user and tenant assignment won't be changed.- Specified by:
enableDevice
in interfaceDeviceService
- Parameters:
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 assigned- Returns:
- the updated device
-
registerDevice
-