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 Constructor Description DeviceServiceImpl(EngageEngineConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceQuerycreateDeviceQuery()DeviceRegistrationcreateDeviceRegistration()voiddisableDevice(String deviceId)Disables the device with the given id.DeviceenableDevice(String id, String userId, String tenantId)Enable the device and update the user and tenant assignment.DeviceregisterDevice(DeviceRegistrationImpl deviceRegistration)voidremoveDevice(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 Detail
-
DeviceServiceImpl
public DeviceServiceImpl(EngageEngineConfiguration configuration)
-
-
Method Detail
-
createDeviceRegistration
public DeviceRegistration createDeviceRegistration()
- Specified by:
createDeviceRegistrationin interfaceDeviceService
-
createDeviceQuery
public DeviceQuery createDeviceQuery()
- Specified by:
createDeviceQueryin interfaceDeviceService
-
removeDevice
public void removeDevice(String deviceId)
- Specified by:
removeDevicein interfaceDeviceService
-
disableDevice
public void disableDevice(String deviceId)
Description copied from interface:DeviceServiceDisables the device with the given id. If no device exists with the given id, nothing is done- Specified by:
disableDevicein interfaceDeviceService- Parameters:
deviceId- the id of the device
-
enableDevice
public Device enableDevice(String id, String userId, String tenantId)
Description copied from interface:DeviceServiceEnable the device and update the user and tenant assignment. IfuserIdortenantIdthen the device user and tenant assignment won't be changed.- Specified by:
enableDevicein 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
public Device registerDevice(DeviceRegistrationImpl deviceRegistration)
-
-