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