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 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)
-
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:
createDeviceRegistration
in interfaceDeviceService
-
createDeviceQuery
public DeviceQuery createDeviceQuery()
- Specified by:
createDeviceQuery
in interfaceDeviceService
-
removeDevice
public void removeDevice(String deviceId)
- Specified by:
removeDevice
in interfaceDeviceService
-
disableDevice
public void disableDevice(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(String id, String userId, 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
public Device registerDevice(DeviceRegistrationImpl deviceRegistration)
-
-