Package tigase.pubsub.utils
Interface Logic
-
- All Known Implementing Classes:
DefaultPubSubLogic
public interface LogicInterface of a bean which implements PubSub logic.Created by andrzej on 25.12.2016.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidcheckAccessPermission(tigase.xmpp.jid.BareJID serviceJid, java.lang.String nodeName, tigase.xmpp.jid.JID senderJid)voidcheckAccessPermission(tigase.xmpp.jid.BareJID serviceJid, AbstractNodeConfig nodeConfig, IAffiliations nodeAffiliations, ISubscriptions nodeSubscriptions, tigase.xmpp.jid.JID senderJid)default voidcheckNodeCreationAllowed(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, java.lang.String node, java.lang.String collection)booleanhasSenderSubscription(tigase.xmpp.jid.BareJID bareJid, IAffiliations affiliations, ISubscriptions subscriptions)booleanisSenderInRosterGroup(tigase.xmpp.jid.BareJID bareJid, AbstractNodeConfig nodeConfig, IAffiliations affiliations, ISubscriptions subscriptions)tigase.xml.ElementprepareNotificationMessage(tigase.xmpp.jid.JID from, tigase.xmpp.jid.JID to, java.lang.String id, tigase.xml.Element itemToSend, java.util.Map<java.lang.String,java.lang.String> headers)
-
-
-
Method Detail
-
checkAccessPermission
void checkAccessPermission(tigase.xmpp.jid.BareJID serviceJid, java.lang.String nodeName, tigase.xmpp.jid.JID senderJid) throws PubSubException, tigase.component.exceptions.RepositoryException- Throws:
PubSubExceptiontigase.component.exceptions.RepositoryException
-
checkAccessPermission
void checkAccessPermission(tigase.xmpp.jid.BareJID serviceJid, AbstractNodeConfig nodeConfig, IAffiliations nodeAffiliations, ISubscriptions nodeSubscriptions, tigase.xmpp.jid.JID senderJid) throws PubSubException, tigase.component.exceptions.RepositoryException- Throws:
PubSubExceptiontigase.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, java.lang.String id, tigase.xml.Element itemToSend, java.util.Map<java.lang.String,java.lang.String> headers)
-
checkNodeCreationAllowed
default void checkNodeCreationAllowed(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, java.lang.String node, java.lang.String collection) throws PubSubException- Throws:
PubSubException
-
-