Package tigase.push.repositories
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface tigase.push.api.IPushRepository
IPushRepository.ElseHandler
-
-
Constructor Summary
Constructors Constructor Description AbstractPushRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringcalculateNode(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid)protected StringcalculateNode(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, String deviceId)Stream<IPushSettings>getNodeSettings(tigase.xmpp.jid.BareJID userJid, String provider, String deviceId)protected StringtoHex(byte[] data, String prefix)-
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, getNodeSettings, getNodeSettings, registerDevice, unregisterDevice
-
-
-
-
Method Detail
-
getNodeSettings
public Stream<IPushSettings> getNodeSettings(tigase.xmpp.jid.BareJID userJid, String provider, String deviceId) throws tigase.component.exceptions.RepositoryException
- Specified by:
getNodeSettingsin interfaceIPushRepository<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
-
-