Class SuperUserFCMRegistrationService
java.lang.Object
dev.getelements.elements.service.notification.SuperUserFCMRegistrationService
- All Implemented Interfaces:
FCMRegistrationService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRegistration
(FCMRegistration fcmRegistration) Creates a new instance ofFCMRegistration
.void
deleteRegistration
(String fcmRegistrationId) Delets an instance ofFCMRegistration
based on the supplied ID.void
setCurrentProfileSupplier
(Supplier<Profile> currentProfileSupplier) void
setFcmRegistrationDao
(FCMRegistrationDao fcmRegistrationDao) updateRegistration
(FCMRegistration fcmRegistration) Updates an existing instance ofFCMRegistration
.
-
Constructor Details
-
SuperUserFCMRegistrationService
public SuperUserFCMRegistrationService()
-
-
Method Details
-
createRegistration
Description copied from interface:FCMRegistrationService
Creates a new instance ofFCMRegistration
. In addition to ensuring the token has been written to the database, this may perform any other actions necessary such as subscribing the token to a specific topic.- Specified by:
createRegistration
in interfaceFCMRegistrationService
- Parameters:
fcmRegistration
- the instance ofFCMRegistration
- Returns:
- the
FCMRegistration
instance as it was written to the database
-
updateRegistration
Description copied from interface:FCMRegistrationService
Updates an existing instance ofFCMRegistration
. In addition to ensuring the token has been written to the database, this may perform any other actions necessary such as subscribing the token to a specific topic or refreshing an existing registration.- Specified by:
updateRegistration
in interfaceFCMRegistrationService
- Parameters:
fcmRegistration
- the instance ofFCMRegistration
- Returns:
- the
FCMRegistration
instance as it was written to the database
-
deleteRegistration
Description copied from interface:FCMRegistrationService
Delets an instance ofFCMRegistration
based on the supplied ID. The ID can be obtained byFCMRegistration.getId()
. In addition to removing the registration, this may also perform other actions such as unsubscribing from necessary topics.- Specified by:
deleteRegistration
in interfaceFCMRegistrationService
- Parameters:
fcmRegistrationId
- as determined byFCMRegistration.getId()
-
getFcmRegistrationDao
-
setFcmRegistrationDao
-
getCurrentProfileSupplier
-
setCurrentProfileSupplier
-