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 Object
implements PushNotificationsExtension, Initializable, UnregisterAware
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Method called before bean unregister.Element[]
protected Collection<Element>
void
Method will be called, when bean will be created, configured and ready to use.void
void
processEnableElement
(Element enableEl, Element settingsEl) void
setPushNotifications
(PushNotifications pushNotifications) boolean
shouldSendNotification
(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
-
Constructor Details
-
AwayPushNotificationsExtension
public AwayPushNotificationsExtension()
-
-
Method Details
-
getDiscoFeatures
- Specified by:
getDiscoFeatures
in interfacePushNotificationsAware
-
initialize
public void initialize()Description copied from interface:Initializable
Method will be called, when bean will be created, configured and ready to use.- Specified by:
initialize
in interfaceInitializable
-
beforeUnregister
public void beforeUnregister()Description copied from interface:UnregisterAware
Method called before bean unregister.- Specified by:
beforeUnregister
in interfaceUnregisterAware
-
presenceChanged
-
processEnableElement
- Specified by:
processEnableElement
in interfacePushNotificationsAware
-
setPushNotifications
- Specified by:
setPushNotifications
in interfacePushNotificationsExtension
-
shouldSendNotification
public boolean shouldSendNotification(Packet packet, BareJID userJid, XMPPResourceConnection session) throws XMPPException - Specified by:
shouldSendNotification
in interfacePushNotificationsExtension
- Throws:
XMPPException
-
getPushServicesForAwayNotifications
-