public abstract class AbstractPubSubModule extends Object implements Module
| Modifier and Type | Field and Description |
|---|---|
protected PubSubConfig |
config
Field description
|
protected Logger |
log
Field description
|
protected PacketWriter |
packetWriter |
| Constructor and Description |
|---|
AbstractPubSubModule(PubSubConfig config,
PacketWriter packetWriter)
Constructs ...
|
| Modifier and Type | Method and Description |
|---|---|
static tigase.xml.Element |
createResultIQ(tigase.xml.Element iq)
Method description
|
static List<tigase.xml.Element> |
createResultIQArray(tigase.xml.Element iq)
Method description
|
protected static String |
findBestJid(String[] allSubscribers,
String jid)
Deprecated.
|
static Collection<tigase.xmpp.BareJID> |
getActiveSubscribers(AbstractNodeConfig nodeConfig,
tigase.xmpp.BareJID[] jids,
IAffiliations affiliations,
ISubscriptions subscriptions)
Method description
|
static Collection<tigase.xmpp.BareJID> |
getActiveSubscribers(AbstractNodeConfig nodeConfig,
IAffiliations affiliations,
ISubscriptions subscriptions)
Method description
|
protected EventBus |
getEventBus() |
protected IPubSubRepository |
getRepository() |
protected boolean |
hasSenderSubscription(tigase.xmpp.BareJID bareJid,
IAffiliations affiliations,
ISubscriptions subscriptions)
Method description
|
protected boolean |
isSenderInRosterGroup(tigase.xmpp.BareJID bareJid,
AbstractNodeConfig nodeConfig,
IAffiliations affiliations,
ISubscriptions subscriptions)
Method description
|
static List<tigase.xml.Element> |
makeArray(tigase.xml.Element... elements)
Method description
|
static List<tigase.server.Packet> |
makeArray(tigase.server.Packet... packets)
Method description
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFeatures, getModuleCriteria, processprotected final PubSubConfig config
protected final Logger log
protected final PacketWriter packetWriter
public AbstractPubSubModule(PubSubConfig config, PacketWriter packetWriter)
config - pubsubRepository - packetWriter - TODOpublic static tigase.xml.Element createResultIQ(tigase.xml.Element iq)
iq - public static List<tigase.xml.Element> createResultIQArray(tigase.xml.Element iq)
iq - @Deprecated protected static String findBestJid(String[] allSubscribers, String jid)
allSubscribers - jid - public static Collection<tigase.xmpp.BareJID> getActiveSubscribers(AbstractNodeConfig nodeConfig, tigase.xmpp.BareJID[] jids, IAffiliations affiliations, ISubscriptions subscriptions)
nodeConfig - jids - affiliations - subscriptions - public static Collection<tigase.xmpp.BareJID> getActiveSubscribers(AbstractNodeConfig nodeConfig, IAffiliations affiliations, ISubscriptions subscriptions) throws RepositoryException
nodeConfig - affiliations - subscriptions - RepositoryExceptionpublic static List<tigase.xml.Element> makeArray(tigase.xml.Element... elements)
elements - public static List<tigase.server.Packet> makeArray(tigase.server.Packet... packets)
elements - protected EventBus getEventBus()
protected IPubSubRepository getRepository()
protected boolean hasSenderSubscription(tigase.xmpp.BareJID bareJid,
IAffiliations affiliations,
ISubscriptions subscriptions)
throws RepositoryException
jid - affiliations - subscriptions - RepositoryExceptionprotected boolean isSenderInRosterGroup(tigase.xmpp.BareJID bareJid,
AbstractNodeConfig nodeConfig,
IAffiliations affiliations,
ISubscriptions subscriptions)
throws RepositoryException
jid - nodeConfig - affiliations - subscriptions - RepositoryExceptionCopyright © 2008–2015 Tigase. All rights reserved.