Package tigase.pubsub.utils
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.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckNodeConfig(AbstractNodeConfig nodeConfig) voidcheckPermission(tigase.xmpp.jid.BareJID serviceJid, String nodeName, tigase.xmpp.jid.JID senderJid, PubSubLogic.Action action) booleanhasSenderSubscription(tigase.xmpp.jid.BareJID bareJid, IAffiliations affiliations) booleanisMAMEnabled(tigase.xmpp.jid.BareJID serviceJid, String node) booleanisSenderInRosterGroup(tigase.xmpp.jid.BareJID bareJid, AbstractNodeConfig nodeConfig, IAffiliations affiliations, ISubscriptions subscriptions) booleanbooleanisServiceJidPEP(tigase.xmpp.jid.BareJID serivceJid) tigase.xml.ElementprepareNotificationMessage(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) Stream<tigase.xmpp.jid.JID> subscribersOfNotifications(tigase.xmpp.jid.BareJID serviceJid, String nodeName) validateItemId(tigase.xmpp.jid.BareJID toJid, String nodeName, String id)
-
Method Details
-
isServiceAutoCreated
boolean isServiceAutoCreated() -
checkNodeConfig
- 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
-
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:
PubSubExceptiontigase.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
-