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()booleanregister()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:DeviceRegistrationThe token for the new device. This is a mandatory field.- Specified by:
tokenin interfaceDeviceRegistration- Parameters:
token- the token
-
tokenEncoding
Description copied from interface:DeviceRegistrationThe encoding of the token. By default it isnone.- Specified by:
tokenEncodingin interfaceDeviceRegistration- Parameters:
tokenEncoding- the encoding of the token- See Also:
-
disabled
Description copied from interface:DeviceRegistrationRegister a disabled device. By default an enabled device is registered.- Specified by:
disabledin interfaceDeviceRegistration
-
deviceOS
Description copied from interface:DeviceRegistrationThe OS of the device. This is a mandatory field.- Specified by:
deviceOSin interfaceDeviceRegistration- Parameters:
deviceOS- the OS device- See Also:
-
userId
Description copied from interface:DeviceRegistrationThe id of the user that this device is registered to.- Specified by:
userIdin interfaceDeviceRegistration- Parameters:
userId- the id of the user
-
applicationId
Description copied from interface:DeviceRegistrationThe id of the application that this device is registered for.- Specified by:
applicationIdin interfaceDeviceRegistration- Parameters:
applicationId- the id of the application
-
tenantId
Description copied from interface:DeviceRegistrationThe id of the tenant in which this device is registered in.- Specified by:
tenantIdin interfaceDeviceRegistration- Parameters:
tenantId- the tenant id
-
register
Description copied from interface:DeviceRegistrationPerform the registration of the device. Make sure that the mandatory fieldsDeviceRegistration.token(String)andDeviceRegistration.deviceOS(String)have been set.- Specified by:
registerin interfaceDeviceRegistration- Returns:
- the newly registered device
-
getToken
-
getTokenEncoding
-
isEnabled
public boolean isEnabled() -
getDeviceOS
-
getUserId
-
getApplicationId
-
getTenantId
-