Class AbstractPushRepository<DS extends tigase.db.DataSource>

java.lang.Object
tigase.push.repositories.AbstractPushRepository<DS>
All Implemented Interfaces:
tigase.db.DataSourceAware<DS>, IPushRepository<DS>
Direct Known Subclasses:
InMemoryPushRepository, JDBCPushRepository

public abstract class AbstractPushRepository<DS extends tigase.db.DataSource> extends Object implements IPushRepository<DS>
Created by andrzej on 05.01.2017.
  • Constructor Details

    • AbstractPushRepository

      public AbstractPushRepository()
  • Method Details

    • getNodeSettings

      public Stream<IPushSettings> getNodeSettings(tigase.xmpp.jid.BareJID userJid, String provider, String deviceId) throws tigase.component.exceptions.RepositoryException
      Specified by:
      getNodeSettings in interface IPushRepository<DS extends tigase.db.DataSource>
      Throws:
      tigase.component.exceptions.RepositoryException
    • calculateNode

      protected String calculateNode(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid) throws tigase.component.exceptions.RepositoryException
      Throws:
      tigase.component.exceptions.RepositoryException
    • calculateNode

      protected String calculateNode(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, String deviceId) throws tigase.component.exceptions.RepositoryException
      Throws:
      tigase.component.exceptions.RepositoryException
    • toHex

      protected String toHex(byte[] data, String prefix)