Class InMemoryPushRepository

    • Constructor Detail

      • InMemoryPushRepository

        public InMemoryPushRepository()
    • Method Detail

      • registerDevice

        public IPushSettings registerDevice​(tigase.xmpp.jid.BareJID serviceJid,
                                            tigase.xmpp.jid.BareJID userJid,
                                            String provider,
                                            String deviceId)
                                     throws tigase.component.exceptions.RepositoryException
        Throws:
        tigase.component.exceptions.RepositoryException
      • unregisterDevice

        public IPushSettings unregisterDevice​(tigase.xmpp.jid.BareJID serviceJid,
                                              tigase.xmpp.jid.BareJID userJid,
                                              String provider,
                                              String deviceId)
                                       throws tigase.component.exceptions.RepositoryException,
                                              tigase.component.exceptions.ComponentException
        Throws:
        tigase.component.exceptions.RepositoryException
        tigase.component.exceptions.ComponentException
      • unregisterDeviceOld

        public IPushSettings unregisterDeviceOld​(tigase.xmpp.jid.BareJID serviceJid,
                                                 tigase.xmpp.jid.BareJID userJid,
                                                 String provider,
                                                 String deviceId)
                                          throws tigase.component.exceptions.RepositoryException,
                                                 tigase.component.exceptions.ComponentException
        Throws:
        tigase.component.exceptions.RepositoryException
        tigase.component.exceptions.ComponentException
      • getNodeSettings

        public IPushSettings getNodeSettings​(tigase.xmpp.jid.BareJID serviceJid,
                                             String node)
      • getNodeSettings

        public Stream<IPushSettings> getNodeSettings​(String provider,
                                                     String deviceId)
                                              throws tigase.component.exceptions.RepositoryException
        Throws:
        tigase.component.exceptions.RepositoryException
      • setDataSource

        public void setDataSource​(tigase.db.DataSource dataSource)
      • main

        public static void main​(String[] args)
                         throws tigase.util.stringprep.TigaseStringprepException,
                                tigase.component.exceptions.RepositoryException
        Throws:
        tigase.util.stringprep.TigaseStringprepException
        tigase.component.exceptions.RepositoryException