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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkNodeConfig
(AbstractNodeConfig nodeConfig) void
checkPermission
(tigase.xmpp.jid.BareJID serviceJid, String nodeName, tigase.xmpp.jid.JID senderJid, PubSubLogic.Action action) boolean
hasSenderSubscription
(tigase.xmpp.jid.BareJID bareJid, IAffiliations affiliations) boolean
isMAMEnabled
(tigase.xmpp.jid.BareJID serviceJid, String node) boolean
isSenderInRosterGroup
(tigase.xmpp.jid.BareJID bareJid, AbstractNodeConfig nodeConfig, IAffiliations affiliations, ISubscriptions subscriptions) boolean
boolean
isServiceJidPEP
(tigase.xmpp.jid.BareJID serivceJid) 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) 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:
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
-