Package tigase.push.api
Interface IPushRepository<DS extends tigase.db.DataSource>
- All Superinterfaces:
tigase.db.DataSourceAware<DS>
- All Known Implementing Classes:
AbstractPushRepository,InMemoryPushRepository,JDBCPushRepository,PushRepositoryMDBean
public interface IPushRepository<DS extends tigase.db.DataSource>
extends tigase.db.DataSourceAware<DS>
Created by andrzej on 02.01.2017.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptiongetNodeSettings(String provider, String deviceId) getNodeSettings(tigase.xmpp.jid.BareJID serviceJid, String node) getNodeSettings(tigase.xmpp.jid.BareJID userJid, String provider, String deviceId) default IPushSettingsgetNodeSettings(tigase.xmpp.jid.BareJID serviceJid, String node, IPushRepository.ElseHandler elseHandler) default Map<String, IPushRepository.Statistics> registerDevice(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, String provider, String deviceId, String deviceSecondToken) unregisterDevice(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, String provider, String deviceId) Methods inherited from interface tigase.db.DataSourceAware
setDataSource
-
Method Details
-
registerDevice
IPushSettings registerDevice(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, String provider, String deviceId, String deviceSecondToken) throws tigase.component.exceptions.RepositoryException - Throws:
tigase.component.exceptions.RepositoryException
-
unregisterDevice
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.RepositoryExceptiontigase.component.exceptions.ComponentException
-
getNodeSettings
IPushSettings getNodeSettings(tigase.xmpp.jid.BareJID serviceJid, String node) throws tigase.component.exceptions.RepositoryException - Throws:
tigase.component.exceptions.RepositoryException
-
getNodeSettings
Stream<IPushSettings> getNodeSettings(tigase.xmpp.jid.BareJID userJid, String provider, String deviceId) throws tigase.component.exceptions.RepositoryException - Throws:
tigase.component.exceptions.RepositoryException
-
getNodeSettings
Stream<IPushSettings> getNodeSettings(String provider, String deviceId) throws tigase.component.exceptions.RepositoryException - Throws:
tigase.component.exceptions.RepositoryException
-
getNodeSettings
default IPushSettings getNodeSettings(tigase.xmpp.jid.BareJID serviceJid, String node, IPushRepository.ElseHandler elseHandler) throws tigase.component.exceptions.RepositoryException, tigase.component.exceptions.ComponentException - Throws:
tigase.component.exceptions.RepositoryExceptiontigase.component.exceptions.ComponentException
-
getStatistics
default Map<String,IPushRepository.Statistics> getStatistics() throws tigase.component.exceptions.RepositoryException- Throws:
tigase.component.exceptions.RepositoryException
-