Class MongoPushRepository

  • All Implemented Interfaces:
    tigase.db.DataSourceAware<tigase.mongodb.MongoDataSource>, tigase.push.api.IPushRepository<tigase.mongodb.MongoDataSource>

    public class MongoPushRepository
    extends tigase.push.repositories.AbstractPushRepository<tigase.mongodb.MongoDataSource>
    Created by andrzej on 16.05.2017.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface tigase.push.api.IPushRepository

        tigase.push.api.IPushRepository.ElseHandler
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.stream.Stream<tigase.push.api.IPushSettings> getNodeSettings​(java.lang.String provider, java.lang.String deviceId)  
      tigase.push.api.IPushSettings getNodeSettings​(tigase.xmpp.jid.BareJID serviceJid, java.lang.String node)  
      tigase.push.api.IPushSettings registerDevice​(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, java.lang.String provider, java.lang.String deviceId)  
      void setDataSource​(tigase.mongodb.MongoDataSource dataSource)  
      tigase.push.api.IPushSettings unregisterDevice​(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, java.lang.String provider, java.lang.String deviceId)  
      • Methods inherited from class tigase.push.repositories.AbstractPushRepository

        calculateNode, getNodeSettings, toHex
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface tigase.push.api.IPushRepository

        getNodeSettings
    • Constructor Detail

      • MongoPushRepository

        public MongoPushRepository()
    • Method Detail

      • registerDevice

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

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

        public tigase.push.api.IPushSettings getNodeSettings​(tigase.xmpp.jid.BareJID serviceJid,
                                                             java.lang.String node)
                                                      throws tigase.component.exceptions.RepositoryException
        Throws:
        tigase.component.exceptions.RepositoryException
      • getNodeSettings

        public java.util.stream.Stream<tigase.push.api.IPushSettings> getNodeSettings​(java.lang.String provider,
                                                                                      java.lang.String deviceId)
                                                                               throws tigase.component.exceptions.RepositoryException
        Throws:
        tigase.component.exceptions.RepositoryException
      • setDataSource

        public void setDataSource​(tigase.mongodb.MongoDataSource dataSource)