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.StringIDprotected RosterAbstractroster_utilstatic java.lang.StringXMLNS
-
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 booleanisInRoster(Packet packet, XMPPResourceConnection session)booleanisSendingNotificationAllowed(BareJID userJid, XMPPResourceConnection session, Element pushServiceSettings, Packet packet)voidprocessEnableElement(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:
getDiscoFeaturesin interfacePushNotificationsAware
-
processEnableElement
public void processEnableElement(Element enableEl, Element settingsEl)
- Specified by:
processEnableElementin interfacePushNotificationsAware
-
isSendingNotificationAllowed
public boolean isSendingNotificationAllowed(BareJID userJid, XMPPResourceConnection session, Element pushServiceSettings, Packet packet)
- Specified by:
isSendingNotificationAllowedin interfacePushNotificationsFilter
-
isInRoster
protected boolean isInRoster(Packet packet, XMPPResourceConnection session)
-
getRoster
protected java.util.Map<BareJID,RosterElement> getRoster(BareJID jid) throws TigaseDBException
- Throws:
TigaseDBException
-
-