Package tigase.xmpp.impl.push
Class IgnoreFromUnknownFilter
java.lang.Object
tigase.xmpp.impl.push.IgnoreFromUnknownFilter
- All Implemented Interfaces:
PushNotificationsAware,PushNotificationsFilter
@Bean(name="ignore-from-unknown",
parent=PushNotifications.class,
active=true)
public class IgnoreFromUnknownFilter
extends Object
implements PushNotificationsFilter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected final RosterAbstractstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionElement[]protected Map<BareJID, RosterElement> protected booleanisInRoster(Packet packet, XMPPResourceConnection session) booleanisSendingNotificationAllowed(BareJID userJid, XMPPResourceConnection session, Element pushServiceSettings, Packet packet) voidprocessEnableElement(Element enableEl, Element settingsEl)
-
Field Details
-
XMLNS
- See Also:
-
ID
- See Also:
-
roster_util
-
-
Constructor Details
-
IgnoreFromUnknownFilter
public IgnoreFromUnknownFilter()
-
-
Method Details
-
getDiscoFeatures
- Specified by:
getDiscoFeaturesin interfacePushNotificationsAware
-
processEnableElement
- Specified by:
processEnableElementin interfacePushNotificationsAware
-
isSendingNotificationAllowed
public boolean isSendingNotificationAllowed(BareJID userJid, XMPPResourceConnection session, Element pushServiceSettings, Packet packet) - Specified by:
isSendingNotificationAllowedin interfacePushNotificationsFilter
-
isInRoster
-
getRoster
- Throws:
TigaseDBException
-