Interface PubSubLogic

All Known Implementing Classes:
DefaultPubSubLogic

public interface PubSubLogic
Interface of a bean which implements PubSub logic.

Created by andrzej on 25.12.2016.

  • Method Details

    • isServiceAutoCreated

      boolean isServiceAutoCreated()
    • checkNodeConfig

      void checkNodeConfig(AbstractNodeConfig nodeConfig) throws PubSubException
      Throws:
      PubSubException
    • hasSenderSubscription

      boolean hasSenderSubscription(tigase.xmpp.jid.BareJID bareJid, IAffiliations affiliations) throws tigase.component.exceptions.RepositoryException
      Throws:
      tigase.component.exceptions.RepositoryException
    • isSenderInRosterGroup

      boolean isSenderInRosterGroup(tigase.xmpp.jid.BareJID bareJid, AbstractNodeConfig nodeConfig, IAffiliations affiliations, ISubscriptions subscriptions) throws tigase.component.exceptions.RepositoryException
      Throws:
      tigase.component.exceptions.RepositoryException
    • prepareNotificationMessage

      tigase.xml.Element prepareNotificationMessage(tigase.xmpp.jid.JID from, String id, String uuid, String nodeName, tigase.xml.Element items, String expireAt, Map<String,String> headers, tigase.xmpp.StanzaType stanzaType)
    • checkPermission

      void checkPermission(tigase.xmpp.jid.BareJID serviceJid, String nodeName, tigase.xmpp.jid.JID senderJid, PubSubLogic.Action action) throws PubSubException, tigase.component.exceptions.RepositoryException
      Throws:
      PubSubException
      tigase.component.exceptions.RepositoryException
    • subscribersOfNotifications

      Stream<tigase.xmpp.jid.JID> subscribersOfNotifications(tigase.xmpp.jid.BareJID serviceJid, String nodeName) throws tigase.component.exceptions.RepositoryException
      Throws:
      tigase.component.exceptions.RepositoryException
    • isServiceJidPEP

      boolean isServiceJidPEP(tigase.xmpp.jid.BareJID serivceJid)
    • isMAMEnabled

      boolean isMAMEnabled(tigase.xmpp.jid.BareJID serviceJid, String node) throws tigase.component.exceptions.RepositoryException
      Throws:
      tigase.component.exceptions.RepositoryException
    • validateItemId

      String validateItemId(tigase.xmpp.jid.BareJID toJid, String nodeName, String id)