Class PublishNotificationModule

java.lang.Object
tigase.component.modules.AbstractModule
tigase.push.modules.PublishNotificationModule
All Implemented Interfaces:
tigase.component.modules.Module

@Bean(name="publish-notification", parent=PushNotificationsComponent.class, active=true) public class PublishNotificationModule extends tigase.component.modules.AbstractModule
Created by andrzej on 02.01.2017.
  • Constructor Details

    • PublishNotificationModule

      public PublishNotificationModule()
  • Method Details

    • getFeatures

      public String[] getFeatures()
    • getModuleCriteria

      public tigase.criteria.Criteria getModuleCriteria()
    • process

      public void process(tigase.server.Packet packet) throws tigase.component.exceptions.ComponentException, tigase.util.stringprep.TigaseStringprepException
      Throws:
      tigase.component.exceptions.ComponentException
      tigase.util.stringprep.TigaseStringprepException
    • handlePushNotificationException

      public void handlePushNotificationException(tigase.server.Packet packet, Throwable ex)
    • setPushProviders

      public void setPushProviders(List<IPushProvider> pushProviders)
    • onUserRemoval

      @HandleEvent public void onUserRemoval(tigase.db.UserRepository.UserRemovedEvent event)
    • getProvider

      protected IPushProvider getProvider(IPushSettings.IDevice device)
    • pushNotification

      protected CompletableFuture<String> pushNotification(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID senderJid, String node, tigase.xml.Element notificationElem) throws tigase.component.exceptions.ComponentException, tigase.util.stringprep.TigaseStringprepException, tigase.component.exceptions.RepositoryException
      Throws:
      tigase.component.exceptions.ComponentException
      tigase.util.stringprep.TigaseStringprepException
      tigase.component.exceptions.RepositoryException
    • guessPriority

      protected Optional<INotification.Priority> guessPriority(tigase.xml.Element notificationElem)
    • parsePriority

      protected INotification.Priority parsePriority(tigase.xml.Element notificationElem)
    • parseJingle

      protected INotification.Jingle parseJingle(tigase.xml.Element notificationElem)
    • parseMeet

      protected INotification.Meet parseMeet(tigase.xml.Element notificationElem)
    • parseNotification

      protected INotification parseNotification(tigase.xmpp.jid.BareJID userJid, tigase.xml.Element notificationElem) throws tigase.component.exceptions.ComponentException, tigase.util.stringprep.TigaseStringprepException
      Throws:
      tigase.component.exceptions.ComponentException
      tigase.util.stringprep.TigaseStringprepException
    • parseLong

      protected Long parseLong(tigase.xml.Element elem, String field)
    • parseJID

      protected tigase.xmpp.jid.JID parseJID(tigase.xml.Element elem, String field) throws tigase.component.exceptions.ComponentException, tigase.util.stringprep.TigaseStringprepException
      Throws:
      tigase.component.exceptions.ComponentException
      tigase.util.stringprep.TigaseStringprepException