@Bean(name="ignore-from-unknown", parent=PushNotifications.class, active=true) public class IgnoreFromUnknownFilter extends Object implements PushNotificationsFilter
Modifier and Type | Field and Description |
---|---|
static String |
ID |
protected RosterAbstract |
roster_util |
static String |
XMLNS |
Constructor and Description |
---|
IgnoreFromUnknownFilter() |
Modifier and Type | Method and Description |
---|---|
Element[] |
getDiscoFeatures() |
protected Map<BareJID,RosterElement> |
getRoster(BareJID jid) |
protected boolean |
isInRoster(Packet packet,
XMPPResourceConnection session) |
boolean |
isSendingNotificationAllowed(BareJID userJid,
XMPPResourceConnection session,
Element pushServiceSettings,
Packet packet) |
void |
processEnableElement(Element enableEl,
Element settingsEl) |
public static final String XMLNS
public static final String ID
protected final RosterAbstract roster_util
public Element[] getDiscoFeatures()
getDiscoFeatures
in interface PushNotificationsAware
public void processEnableElement(Element enableEl, Element settingsEl)
processEnableElement
in interface PushNotificationsAware
public boolean isSendingNotificationAllowed(BareJID userJid, XMPPResourceConnection session, Element pushServiceSettings, Packet packet)
isSendingNotificationAllowed
in interface PushNotificationsFilter
protected boolean isInRoster(Packet packet, XMPPResourceConnection session)
protected Map<BareJID,RosterElement> getRoster(BareJID jid) throws TigaseDBException
TigaseDBException
Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.