Package tigase.xmpp.impl
Class PrivacyList
- java.lang.Object
-
- tigase.xmpp.impl.PrivacyList
-
public class PrivacyList extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePrivacyList.Item
-
Field Summary
Fields Modifier and Type Field Description static PrivacyListALLOW_ALL
-
Constructor Summary
Constructors Constructor Description PrivacyList(Function<JID,RosterElement> rosterElementGetter, Element el)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrivacyListcreate(Map<BareJID,RosterElement> roster, Element el)static PrivacyListcreate(XMPPResourceConnection session, RosterAbstract rosterUtil, Element el)Stream<JID>getBlockedJids()StringgetName()booleanisAllowed(JID jid, PrivacyList.Item.Type type)booleanisEmpty()StringtoString()
-
-
-
Field Detail
-
ALLOW_ALL
public static final PrivacyList ALLOW_ALL
-
-
Constructor Detail
-
PrivacyList
public PrivacyList(Function<JID,RosterElement> rosterElementGetter, Element el)
-
-
Method Detail
-
create
public static PrivacyList create(Map<BareJID,RosterElement> roster, Element el)
-
create
public static PrivacyList create(XMPPResourceConnection session, RosterAbstract rosterUtil, Element el) throws NotAuthorizedException, TigaseDBException
-
getName
public String getName()
-
isAllowed
public boolean isAllowed(JID jid, PrivacyList.Item.Type type)
-
isEmpty
public boolean isEmpty()
-
-