Class 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 Detail

      • PublishNotificationModule

        public PublishNotificationModule()
    • Method Detail

      • 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
      • setPushProviders

        public void setPushProviders​(List<IPushProvider> pushProviders)
      • pushNotification

        protected void 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
      • 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