Class MongoPushRepository

java.lang.Object
tigase.push.repositories.AbstractPushRepository<tigase.mongodb.MongoDataSource>
tigase.extras.mongodb.push.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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Stream<tigase.push.api.IPushSettings>
    getNodeSettings(String provider, String deviceId)
     
    tigase.push.api.IPushSettings
    getNodeSettings(tigase.xmpp.jid.BareJID serviceJid, String node)
     
    tigase.push.api.IPushSettings
    registerDevice(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, String provider, String deviceId)
     
    void
    setDataSource(tigase.mongodb.MongoDataSource dataSource)
     
    tigase.push.api.IPushSettings
    unregisterDevice(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, String provider, 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 Details

    • MongoPushRepository

      public MongoPushRepository()
  • Method Details

    • 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)