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 CommonEngineServiceImpl<EngageEngineConfiguration>
implements DeviceService
- Author:
- Filip Hrisafov
-
Field Summary
Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
commandExecutor
Fields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
disableDevice
(String deviceId) Disables the device with the given id.enableDevice
(String id, String userId, String tenantId) Enable the device and update the user and tenant assignment.registerDevice
(DeviceRegistrationImpl deviceRegistration) void
removeDevice
(String deviceId) Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutor
Methods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
Constructor Details
-
DeviceServiceImpl
-
-
Method Details
-
createDeviceRegistration
- Specified by:
createDeviceRegistration
in interfaceDeviceService
-
createDeviceQuery
- Specified by:
createDeviceQuery
in interfaceDeviceService
-
removeDevice
- Specified by:
removeDevice
in interfaceDeviceService
-
disableDevice
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
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
-