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.
    • Constructor Detail

      • MongoPushRepository

        public MongoPushRepository()
    • Method Detail

      • registerDevice

        public tigase.push.api.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 tigase.push.api.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
      • getNodeSettings

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

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

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