Package tigase.pubsub.utils
Class DefaultPubSubLogic
- java.lang.Object
-
- tigase.pubsub.utils.DefaultPubSubLogic
-
- All Implemented Interfaces:
Logic
@Bean(name="logic", parent=PubSubComponent.class, active=true) public class DefaultPubSubLogic extends java.lang.Object implements LogicHelper bean containing PubSub logicCreated by andrzej on 25.12.2016.
-
-
Constructor Summary
Constructors Constructor Description DefaultPubSubLogic()
-
Method Summary
All Methods Instance Methods Concrete 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)protected PubSubConfiggetPubSubConfig()protected IPubSubRepositorygetRepository()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)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface tigase.pubsub.utils.Logic
checkNodeCreationAllowed
-
-
-
-
Method Detail
-
checkAccessPermission
public void checkAccessPermission(tigase.xmpp.jid.BareJID serviceJid, java.lang.String nodeName, tigase.xmpp.jid.JID senderJid) throws PubSubException, tigase.component.exceptions.RepositoryException- Specified by:
checkAccessPermissionin interfaceLogic- Throws:
PubSubExceptiontigase.component.exceptions.RepositoryException
-
checkAccessPermission
public void checkAccessPermission(tigase.xmpp.jid.BareJID serviceJid, AbstractNodeConfig nodeConfig, IAffiliations nodeAffiliations, ISubscriptions nodeSubscriptions, tigase.xmpp.jid.JID senderJid) throws PubSubException, tigase.component.exceptions.RepositoryException- Specified by:
checkAccessPermissionin interfaceLogic- Throws:
PubSubExceptiontigase.component.exceptions.RepositoryException
-
prepareNotificationMessage
public 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)- Specified by:
prepareNotificationMessagein interfaceLogic
-
hasSenderSubscription
public boolean hasSenderSubscription(tigase.xmpp.jid.BareJID bareJid, IAffiliations affiliations, ISubscriptions subscriptions) throws tigase.component.exceptions.RepositoryException- Specified by:
hasSenderSubscriptionin interfaceLogic- Throws:
tigase.component.exceptions.RepositoryException
-
isSenderInRosterGroup
public boolean isSenderInRosterGroup(tigase.xmpp.jid.BareJID bareJid, AbstractNodeConfig nodeConfig, IAffiliations affiliations, ISubscriptions subscriptions) throws tigase.component.exceptions.RepositoryException- Specified by:
isSenderInRosterGroupin interfaceLogic- Throws:
tigase.component.exceptions.RepositoryException
-
getPubSubConfig
protected PubSubConfig getPubSubConfig()
-
getRepository
protected IPubSubRepository getRepository()
-
-