Package org.silverpeas.mobile.server.services.helpers

## Class NotificationsPushHelper

- java.lang.Object
- - org.silverpeas.mobile.server.services.helpers.NotificationsPushHelper

-     @Singleton
      @Named("notificationsPushHelper")
      public class NotificationsPushHelper
      extends Object

  Author:
    svu

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `NotificationsPushHelper()` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static NotificationsPushHelper` | `getInstance()` |
    `protected TokenDAO` | `getTokenDAO()` |
    `void` | `sendNotification​(String userId, Map<String,​Object> notifData)` |
    `String` | `sendToToken​(String userId, String token, Map<String,​Object> notifData)` |
    `void` | `storeToken​(String userId, String token)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### NotificationsPushHelper

          public NotificationsPushHelper()

  - ### Method Detail

    - #### getInstance

          public static NotificationsPushHelper getInstance()

    - #### getTokenDAO

          protected TokenDAO getTokenDAO()

    - #### storeToken

          public void storeToken​(String userId,
                                 String token)

    - #### sendNotification

          public void sendNotification​(String userId,
                                       Map<String,​Object> notifData)

    - #### sendToToken

          public String sendToToken​(String userId,
                                    String token,
                                    Map<String,​Object> notifData)