Package tigase.xmpp.impl.push
Class AwayPushNotificationsExtension
- java.lang.Object
-
- tigase.xmpp.impl.push.AwayPushNotificationsExtension
-
- All Implemented Interfaces:
Initializable,UnregisterAware,PushNotificationsAware,PushNotificationsExtension
@Bean(name="away", parent=PushNotifications.class, active=false) public class AwayPushNotificationsExtension extends java.lang.Object implements PushNotificationsExtension, Initializable, UnregisterAware
-
-
Constructor Summary
Constructors Constructor Description AwayPushNotificationsExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeUnregister()Method called before bean unregister.Element[]getDiscoFeatures()protected java.util.Collection<Element>getPushServicesForAwayNotifications(XMPPResourceConnection session)voidinitialize()Method will be called, when bean will be created, configured and ready to use.voidpresenceChanged(UserPresenceChangedEvent event)voidprocessEnableElement(Element enableEl, Element settingsEl)voidsetPushNotifications(PushNotifications pushNotifications)booleanshouldSendNotification(Packet packet, BareJID userJid, XMPPResourceConnection session)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface tigase.xmpp.impl.push.PushNotificationsExtension
prepareNotificationPayload
-
-
-
-
Method Detail
-
getDiscoFeatures
public Element[] getDiscoFeatures()
- Specified by:
getDiscoFeaturesin interfacePushNotificationsAware
-
initialize
public void initialize()
Description copied from interface:InitializableMethod will be called, when bean will be created, configured and ready to use.- Specified by:
initializein interfaceInitializable
-
beforeUnregister
public void beforeUnregister()
Description copied from interface:UnregisterAwareMethod called before bean unregister.- Specified by:
beforeUnregisterin interfaceUnregisterAware
-
presenceChanged
@HandleEvent(filter=local) public void presenceChanged(UserPresenceChangedEvent event)
-
processEnableElement
public void processEnableElement(Element enableEl, Element settingsEl)
- Specified by:
processEnableElementin interfacePushNotificationsAware
-
setPushNotifications
public void setPushNotifications(PushNotifications pushNotifications)
- Specified by:
setPushNotificationsin interfacePushNotificationsExtension
-
shouldSendNotification
public boolean shouldSendNotification(Packet packet, BareJID userJid, XMPPResourceConnection session) throws XMPPException
- Specified by:
shouldSendNotificationin interfacePushNotificationsExtension- Throws:
XMPPException
-
getPushServicesForAwayNotifications
protected java.util.Collection<Element> getPushServicesForAwayNotifications(XMPPResourceConnection session)
-
-