Package org.jivesoftware.smackx.privacy
Class PrivacyList
- java.lang.Object
-
- org.jivesoftware.smackx.privacy.PrivacyList
-
public class PrivacyList extends java.lang.Object
A privacy list represents a list of contacts that is a read only class used to represent a set of allowed or blocked communications. Basically it can:- Handle many
PrivacyItem
. - Answer if it is the default list.
- Answer if it is the active list.
Privacy Items
can handle different kind of blocking communications based on JID, group, subscription type or globally. - Handle many
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PrivacyList(boolean isActiveList, boolean isDefaultList, java.lang.String listName, java.util.List<PrivacyItem> privacyItems)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<PrivacyItem>
getItems()
java.lang.String
getName()
boolean
isActiveList()
boolean
isDefaultList()
java.lang.String
toString()
-
-
-
Constructor Detail
-
PrivacyList
protected PrivacyList(boolean isActiveList, boolean isDefaultList, java.lang.String listName, java.util.List<PrivacyItem> privacyItems)
-
-
Method Detail
-
getName
public java.lang.String getName()
-
isActiveList
public boolean isActiveList()
-
isDefaultList
public boolean isDefaultList()
-
getItems
public java.util.List<PrivacyItem> getItems()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-