@Bean(name="presencePerNodeExtension",
parent=PubSubComponent.class,
active=true)
public class PresencePerNodeExtension
extends Object
implements tigase.kernel.beans.Initializable, tigase.kernel.beans.UnregisterAware
| Modifier and Type | Class and Description |
|---|---|
static class |
PresencePerNodeExtension.LoginToNodeEvent |
static class |
PresencePerNodeExtension.LogoffFromNodeEvent |
static class |
PresencePerNodeExtension.UpdatePresenceEvent |
| Modifier and Type | Field and Description |
|---|---|
protected Logger |
log |
static String |
XMLNS_EXTENSION |
| Constructor and Description |
|---|
PresencePerNodeExtension() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeUnregister() |
tigase.eventbus.EventBus |
getEventBus() |
Collection<tigase.xmpp.jid.JID> |
getNodeOccupants(tigase.xmpp.jid.BareJID serviceJID,
String nodeName) |
Collection<String> |
getNodes(tigase.xmpp.jid.BareJID serviceJID,
tigase.xmpp.jid.JID occupantJID) |
Collection<tigase.server.Packet> |
getPresence(tigase.xmpp.jid.BareJID serviceJID,
String nodeName,
tigase.xmpp.jid.BareJID occupantJID) |
tigase.server.Packet |
getPresence(tigase.xmpp.jid.BareJID serviceJID,
String nodeName,
tigase.xmpp.jid.JID occupantJID) |
void |
initialize() |
void |
onPresenceEvent(PresenceCollectorModule.PresenceChangeEvent event) |
protected void |
process(tigase.server.Packet packet) |
void |
setEventBus(tigase.eventbus.EventBus eventBus) |
public static final String XMLNS_EXTENSION
protected final Logger log
public tigase.eventbus.EventBus getEventBus()
public void setEventBus(tigase.eventbus.EventBus eventBus)
public Collection<tigase.xmpp.jid.JID> getNodeOccupants(tigase.xmpp.jid.BareJID serviceJID, String nodeName)
public Collection<String> getNodes(tigase.xmpp.jid.BareJID serviceJID, tigase.xmpp.jid.JID occupantJID)
public Collection<tigase.server.Packet> getPresence(tigase.xmpp.jid.BareJID serviceJID, String nodeName, tigase.xmpp.jid.BareJID occupantJID)
public tigase.server.Packet getPresence(tigase.xmpp.jid.BareJID serviceJID,
String nodeName,
tigase.xmpp.jid.JID occupantJID)
public void initialize()
initialize in interface tigase.kernel.beans.Initializable@HandleEvent public void onPresenceEvent(PresenceCollectorModule.PresenceChangeEvent event)
public void beforeUnregister()
beforeUnregister in interface tigase.kernel.beans.UnregisterAwareprotected void process(tigase.server.Packet packet)
Copyright © 2008–2021 Tigase. All rights reserved.