Class PushRepositoryMDBean

java.lang.Object
tigase.db.beans.MDRepositoryBean<IPushRepository>
tigase.db.beans.MDRepositoryBeanWithStatistics<IPushRepository>
tigase.push.repositories.PushRepositoryMDBean
All Implemented Interfaces:
tigase.db.DataSourceAware, tigase.kernel.beans.Initializable, tigase.kernel.beans.RegistrarBean, tigase.kernel.beans.RegistrarBeanWithDefaultBeanClass, tigase.kernel.beans.UnregisterAware, IPushRepository, tigase.stats.ComponentStatisticsProvider, tigase.stats.StatisticsProviderIfc

@Bean(name="pushRepository", parent=PushNotificationsComponent.class, active=true) public class PushRepositoryMDBean extends tigase.db.beans.MDRepositoryBeanWithStatistics<IPushRepository> implements IPushRepository
Created by andrzej on 05.01.2017.
  • Constructor Details

    • PushRepositoryMDBean

      public PushRepositoryMDBean()
  • Method Details

    • getDefaultBeanClass

      public Class<?> getDefaultBeanClass()
      Specified by:
      getDefaultBeanClass in interface tigase.kernel.beans.RegistrarBeanWithDefaultBeanClass
    • registerDevice

      public IPushSettings registerDevice(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, String provider, String deviceId, String deviceSecondId) throws tigase.component.exceptions.RepositoryException
      Specified by:
      registerDevice in interface IPushRepository
      Throws:
      tigase.component.exceptions.RepositoryException
    • unregisterDevice

      public 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
      Specified by:
      unregisterDevice in interface IPushRepository
      Throws:
      tigase.component.exceptions.RepositoryException
      tigase.component.exceptions.ComponentException
    • getNodeSettings

      public IPushSettings getNodeSettings(tigase.xmpp.jid.BareJID serviceJid, String node) throws tigase.component.exceptions.RepositoryException
      Specified by:
      getNodeSettings in interface IPushRepository
      Throws:
      tigase.component.exceptions.RepositoryException
    • 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
      Throws:
      tigase.component.exceptions.RepositoryException
    • getNodeSettings

      public Stream<IPushSettings> getNodeSettings(String provider, String deviceId) throws tigase.component.exceptions.RepositoryException
      Specified by:
      getNodeSettings in interface IPushRepository
      Throws:
      tigase.component.exceptions.RepositoryException
    • getStatistics

      public Map<String,IPushRepository.Statistics> getStatistics() throws tigase.component.exceptions.RepositoryException
      Specified by:
      getStatistics in interface IPushRepository
      Throws:
      tigase.component.exceptions.RepositoryException
    • setDataSource

      public void setDataSource(tigase.db.DataSource dataSource)
      Specified by:
      setDataSource in interface tigase.db.DataSourceAware
    • findClassForDataSource

      protected Class<? extends IPushRepository> findClassForDataSource(tigase.db.DataSource dataSource) throws tigase.db.DBInitException
      Specified by:
      findClassForDataSource in class tigase.db.beans.MDRepositoryBean<IPushRepository>
      Throws:
      tigase.db.DBInitException