Class DeviceRegistrationImpl
java.lang.Object
com.flowable.engage.engine.impl.notification.push.DeviceRegistrationImpl
- All Implemented Interfaces:
DeviceRegistration
- Author:
- Filip Hrisafov
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplicationId
(String applicationId) The id of the application that this device is registered for.The OS of the device.disabled()
Register a disabled device.getToken()
boolean
register()
Perform the registration of the device.The id of the tenant in which this device is registered in.The token for the new device.tokenEncoding
(String tokenEncoding) The encoding of the token.The id of the user that this device is registered to.
-
Field Details
-
deviceService
-
token
-
tokenEncoding
-
enabled
protected boolean enabled -
deviceOS
-
userId
-
applicationId
-
tenantId
-
-
Constructor Details
-
DeviceRegistrationImpl
-
-
Method Details
-
token
Description copied from interface:DeviceRegistration
The token for the new device. This is a mandatory field.- Specified by:
token
in interfaceDeviceRegistration
- Parameters:
token
- the token
-
tokenEncoding
Description copied from interface:DeviceRegistration
The encoding of the token. By default it isnone
.- Specified by:
tokenEncoding
in interfaceDeviceRegistration
- Parameters:
tokenEncoding
- the encoding of the token- See Also:
-
disabled
Description copied from interface:DeviceRegistration
Register a disabled device. By default an enabled device is registered.- Specified by:
disabled
in interfaceDeviceRegistration
-
deviceOS
Description copied from interface:DeviceRegistration
The OS of the device. This is a mandatory field.- Specified by:
deviceOS
in interfaceDeviceRegistration
- Parameters:
deviceOS
- the OS device- See Also:
-
userId
Description copied from interface:DeviceRegistration
The id of the user that this device is registered to.- Specified by:
userId
in interfaceDeviceRegistration
- Parameters:
userId
- the id of the user
-
applicationId
Description copied from interface:DeviceRegistration
The id of the application that this device is registered for.- Specified by:
applicationId
in interfaceDeviceRegistration
- Parameters:
applicationId
- the id of the application
-
tenantId
Description copied from interface:DeviceRegistration
The id of the tenant in which this device is registered in.- Specified by:
tenantId
in interfaceDeviceRegistration
- Parameters:
tenantId
- the tenant id
-
register
Description copied from interface:DeviceRegistration
Perform the registration of the device. Make sure that the mandatory fieldsDeviceRegistration.token(String)
andDeviceRegistration.deviceOS(String)
have been set.- Specified by:
register
in interfaceDeviceRegistration
- Returns:
- the newly registered device
-
getToken
-
getTokenEncoding
-
isEnabled
public boolean isEnabled() -
getDeviceOS
-
getUserId
-
getApplicationId
-
getTenantId
-