Class PresencePerNodeExtension
- java.lang.Object
-
- tigase.pubsub.modules.ext.presence.PresencePerNodeExtension
-
- All Implemented Interfaces:
tigase.kernel.beans.Initializable,tigase.kernel.beans.UnregisterAware
@Bean(name="presencePerNodeExtension", parent=PubSubComponent.class, active=true) public class PresencePerNodeExtension extends Object implements tigase.kernel.beans.Initializable, tigase.kernel.beans.UnregisterAware
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPresencePerNodeExtension.LoginToNodeEventstatic classPresencePerNodeExtension.LogoffFromNodeEventstatic classPresencePerNodeExtension.UpdatePresenceEvent
-
Field Summary
Fields Modifier and Type Field Description protected Loggerlogstatic StringXMLNS_EXTENSION
-
Constructor Summary
Constructors Constructor Description PresencePerNodeExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeUnregister()tigase.eventbus.EventBusgetEventBus()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.PacketgetPresence(tigase.xmpp.jid.BareJID serviceJID, String nodeName, tigase.xmpp.jid.JID occupantJID)voidinitialize()voidonPresenceEvent(PresenceCollectorModule.PresenceChangeEvent event)protected voidprocess(tigase.server.Packet packet)voidsetEventBus(tigase.eventbus.EventBus eventBus)
-
-
-
Field Detail
-
XMLNS_EXTENSION
public static final String XMLNS_EXTENSION
- See Also:
- Constant Field Values
-
log
protected final Logger log
-
-
Method Detail
-
getEventBus
public tigase.eventbus.EventBus getEventBus()
-
setEventBus
public void setEventBus(tigase.eventbus.EventBus eventBus)
-
getNodeOccupants
public Collection<tigase.xmpp.jid.JID> getNodeOccupants(tigase.xmpp.jid.BareJID serviceJID, String nodeName)
-
getNodes
public Collection<String> getNodes(tigase.xmpp.jid.BareJID serviceJID, tigase.xmpp.jid.JID occupantJID)
-
getPresence
public Collection<tigase.server.Packet> getPresence(tigase.xmpp.jid.BareJID serviceJID, String nodeName, tigase.xmpp.jid.BareJID occupantJID)
-
getPresence
public tigase.server.Packet getPresence(tigase.xmpp.jid.BareJID serviceJID, String nodeName, tigase.xmpp.jid.JID occupantJID)
-
initialize
public void initialize()
- Specified by:
initializein interfacetigase.kernel.beans.Initializable
-
onPresenceEvent
@HandleEvent public void onPresenceEvent(PresenceCollectorModule.PresenceChangeEvent event)
-
beforeUnregister
public void beforeUnregister()
- Specified by:
beforeUnregisterin interfacetigase.kernel.beans.UnregisterAware
-
process
protected void process(tigase.server.Packet packet)
-
-