@Bean(name="logic",
parent=PubSubComponent.class,
active=true)
public class DefaultPubSubLogic
extends Object
implements Logic
Created by andrzej on 25.12.2016.
| Constructor and Description |
|---|
DefaultPubSubLogic() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkAccessPermission(tigase.xmpp.jid.BareJID serviceJid,
AbstractNodeConfig nodeConfig,
IAffiliations nodeAffiliations,
ISubscriptions nodeSubscriptions,
tigase.xmpp.jid.JID senderJid) |
void |
checkAccessPermission(tigase.xmpp.jid.BareJID serviceJid,
String nodeName,
tigase.xmpp.jid.JID senderJid) |
protected PubSubConfig |
getPubSubConfig() |
protected IPubSubRepository |
getRepository() |
boolean |
hasSenderSubscription(tigase.xmpp.jid.BareJID bareJid,
IAffiliations affiliations,
ISubscriptions subscriptions) |
boolean |
isSenderInRosterGroup(tigase.xmpp.jid.BareJID bareJid,
AbstractNodeConfig nodeConfig,
IAffiliations affiliations,
ISubscriptions subscriptions) |
tigase.xml.Element |
prepareNotificationMessage(tigase.xmpp.jid.JID from,
tigase.xmpp.jid.JID to,
String id,
tigase.xml.Element itemToSend,
Map<String,String> headers) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckNodeCreationAllowedpublic void checkAccessPermission(tigase.xmpp.jid.BareJID serviceJid,
String nodeName,
tigase.xmpp.jid.JID senderJid)
throws PubSubException,
tigase.component.exceptions.RepositoryException
checkAccessPermission in interface LogicPubSubExceptiontigase.component.exceptions.RepositoryExceptionpublic void checkAccessPermission(tigase.xmpp.jid.BareJID serviceJid,
AbstractNodeConfig nodeConfig,
IAffiliations nodeAffiliations,
ISubscriptions nodeSubscriptions,
tigase.xmpp.jid.JID senderJid)
throws PubSubException,
tigase.component.exceptions.RepositoryException
checkAccessPermission in interface LogicPubSubExceptiontigase.component.exceptions.RepositoryExceptionpublic tigase.xml.Element prepareNotificationMessage(tigase.xmpp.jid.JID from,
tigase.xmpp.jid.JID to,
String id,
tigase.xml.Element itemToSend,
Map<String,String> headers)
prepareNotificationMessage in interface Logicpublic boolean hasSenderSubscription(tigase.xmpp.jid.BareJID bareJid,
IAffiliations affiliations,
ISubscriptions subscriptions)
throws tigase.component.exceptions.RepositoryException
hasSenderSubscription in interface Logictigase.component.exceptions.RepositoryExceptionpublic boolean isSenderInRosterGroup(tigase.xmpp.jid.BareJID bareJid,
AbstractNodeConfig nodeConfig,
IAffiliations affiliations,
ISubscriptions subscriptions)
throws tigase.component.exceptions.RepositoryException
isSenderInRosterGroup in interface Logictigase.component.exceptions.RepositoryExceptionprotected PubSubConfig getPubSubConfig()
protected IPubSubRepository getRepository()
Copyright © 2008–2021 Tigase. All rights reserved.