Class UserFCMRegistrationService
java.lang.Object
dev.getelements.elements.service.notification.UserFCMRegistrationService
- All Implemented Interfaces:
FCMRegistrationService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRegistration(FCMRegistration fcmRegistration) Creates a new instance ofFCMRegistration.voiddeleteRegistration(String fcmRegistrationId) Delets an instance ofFCMRegistrationbased on the supplied ID.voidsetCurrentProfileSupplier(Supplier<Profile> currentProfileSupplier) voidsetFcmRegistrationDao(FCMRegistrationDao fcmRegistrationDao) updateRegistration(FCMRegistration fcmRegistration) Updates an existing instance ofFCMRegistration.
-
Constructor Details
-
UserFCMRegistrationService
public UserFCMRegistrationService()
-
-
Method Details
-
createRegistration
Description copied from interface:FCMRegistrationServiceCreates 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:
createRegistrationin interfaceFCMRegistrationService- Parameters:
fcmRegistration- the instance ofFCMRegistration- Returns:
- the
FCMRegistrationinstance as it was written to the database
-
updateRegistration
Description copied from interface:FCMRegistrationServiceUpdates 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:
updateRegistrationin interfaceFCMRegistrationService- Parameters:
fcmRegistration- the instance ofFCMRegistration- Returns:
- the
FCMRegistrationinstance as it was written to the database
-
deleteRegistration
Description copied from interface:FCMRegistrationServiceDelets an instance ofFCMRegistrationbased 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:
deleteRegistrationin interfaceFCMRegistrationService- Parameters:
fcmRegistrationId- as determined byFCMRegistration.getId()
-
getFcmRegistrationDao
-
setFcmRegistrationDao
-
getCurrentProfileSupplier
-
setCurrentProfileSupplier
-