@Bean(name="away", parent=PushNotifications.class, active=false) public class AwayPushNotificationsExtension extends Object implements PushNotificationsExtension, Initializable, UnregisterAware
Constructor and Description |
---|
AwayPushNotificationsExtension() |
Modifier and Type | Method and Description |
---|---|
void |
beforeUnregister()
Method called before bean unregister.
|
Element[] |
getDiscoFeatures() |
protected Collection<Element> |
getPushServicesForAwayNotifications(XMPPResourceConnection session) |
void |
initialize()
Method will be called, when bean will be created, configured and ready to use.
|
void |
presenceChanged(UserPresenceChangedEvent event) |
void |
processEnableElement(Element enableEl,
Element settingsEl) |
void |
setPushNotifications(PushNotifications pushNotifications) |
boolean |
shouldSendNotification(Packet packet,
BareJID userJid,
XMPPResourceConnection session) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
prepareNotificationPayload
public Element[] getDiscoFeatures()
getDiscoFeatures
in interface PushNotificationsAware
public void initialize()
Initializable
initialize
in interface Initializable
public void beforeUnregister()
UnregisterAware
beforeUnregister
in interface UnregisterAware
@HandleEvent(filter=local) public void presenceChanged(UserPresenceChangedEvent event)
public void processEnableElement(Element enableEl, Element settingsEl)
processEnableElement
in interface PushNotificationsAware
public void setPushNotifications(PushNotifications pushNotifications)
setPushNotifications
in interface PushNotificationsExtension
public boolean shouldSendNotification(Packet packet, BareJID userJid, XMPPResourceConnection session) throws XMPPException
shouldSendNotification
in interface PushNotificationsExtension
XMPPException
protected Collection<Element> getPushServicesForAwayNotifications(XMPPResourceConnection session)
Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.