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
Modifier and TypeFieldDescriptionstatic final String
protected final RosterAbstract
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionElement[]
protected Map<BareJID,
RosterElement> protected boolean
isInRoster
(Packet packet, XMPPResourceConnection session) boolean
isSendingNotificationAllowed
(BareJID userJid, XMPPResourceConnection session, Element pushServiceSettings, Packet packet) void
processEnableElement
(Element enableEl, Element settingsEl)
-
Field Details
-
XMLNS
- See Also:
-
ID
- See Also:
-
roster_util
-
-
Constructor Details
-
IgnoreFromUnknownFilter
public IgnoreFromUnknownFilter()
-
-
Method Details
-
getDiscoFeatures
- Specified by:
getDiscoFeatures
in interfacePushNotificationsAware
-
processEnableElement
- Specified by:
processEnableElement
in interfacePushNotificationsAware
-
isSendingNotificationAllowed
public boolean isSendingNotificationAllowed(BareJID userJid, XMPPResourceConnection session, Element pushServiceSettings, Packet packet) - Specified by:
isSendingNotificationAllowed
in interfacePushNotificationsFilter
-
isInRoster
-
getRoster
- Throws:
TigaseDBException
-