Interface Logic

  • All Known Implementing Classes:
    DefaultPubSubLogic

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

    Created by andrzej on 25.12.2016.

    • Method Detail

      • checkAccessPermission

        void checkAccessPermission​(tigase.xmpp.jid.BareJID serviceJid,
                                   String nodeName,
                                   tigase.xmpp.jid.JID senderJid)
                            throws PubSubException,
                                   tigase.component.exceptions.RepositoryException
        Throws:
        PubSubException
        tigase.component.exceptions.RepositoryException
      • hasSenderSubscription

        boolean hasSenderSubscription​(tigase.xmpp.jid.BareJID bareJid,
                                      IAffiliations affiliations,
                                      ISubscriptions subscriptions)
                               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,
                                                      tigase.xmpp.jid.JID to,
                                                      String id,
                                                      tigase.xml.Element itemToSend,
                                                      Map<String,​String> headers)
      • checkNodeCreationAllowed

        default void checkNodeCreationAllowed​(tigase.xmpp.jid.BareJID serviceJid,
                                              tigase.xmpp.jid.BareJID userJid,
                                              String node,
                                              String collection)
                                       throws PubSubException
        Throws:
        PubSubException