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 java.lang.Object implements PushNotificationsFilter
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ID
protected RosterAbstract
roster_util
static java.lang.String
XMLNS
-
Constructor Summary
Constructors Constructor Description IgnoreFromUnknownFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Element[]
getDiscoFeatures()
protected java.util.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)
-
-
-
Field Detail
-
XMLNS
public static final java.lang.String XMLNS
- See Also:
- Constant Field Values
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
roster_util
protected final RosterAbstract roster_util
-
-
Method Detail
-
getDiscoFeatures
public Element[] getDiscoFeatures()
- Specified by:
getDiscoFeatures
in interfacePushNotificationsAware
-
processEnableElement
public void processEnableElement(Element enableEl, Element settingsEl)
- Specified by:
processEnableElement
in interfacePushNotificationsAware
-
isSendingNotificationAllowed
public boolean isSendingNotificationAllowed(BareJID userJid, XMPPResourceConnection session, Element pushServiceSettings, Packet packet)
- Specified by:
isSendingNotificationAllowed
in interfacePushNotificationsFilter
-
isInRoster
protected boolean isInRoster(Packet packet, XMPPResourceConnection session)
-
getRoster
protected java.util.Map<BareJID,RosterElement> getRoster(BareJID jid) throws TigaseDBException
- Throws:
TigaseDBException
-
-