|
Openfire 3.5.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.privacy.PrivacyListProvider
public class PrivacyListProvider
Provider for the privacy lists system. Privacy lists are read and written from the jivePrivacyList database table.
Constructor Summary | |
---|---|
PrivacyListProvider()
|
Method Summary | |
---|---|
void |
createPrivacyList(String username,
PrivacyList list)
Creates and saves the new privacy list to the database. |
void |
deletePrivacyList(String username,
String listName)
Deletes an existing privacy list from the database. |
void |
deletePrivacyLists(String username)
Deletes all existing privacy list from the database for the given user. |
Map<String,Boolean> |
getPrivacyLists(String username)
Returns the names of the existing privacy lists indicating which one is the default privacy list associated to a user. |
PrivacyList |
loadDefaultPrivacyList(String username)
Loads the default privacy list of a given user from the database. |
PrivacyList |
loadPrivacyList(String username,
String listName)
Loads the requested privacy list from the database. |
void |
updatePrivacyList(String username,
PrivacyList list)
Updated the existing privacy list in the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrivacyListProvider()
Method Detail |
---|
public Map<String,Boolean> getPrivacyLists(String username)
username
- the username of the user to get his privacy lists names.
public PrivacyList loadPrivacyList(String username, String listName)
username
- the username of the user to get his privacy list.listName
- name of the list to load.
public PrivacyList loadDefaultPrivacyList(String username)
username
- the username of the user to get his default privacy list.
public void createPrivacyList(String username, PrivacyList list)
username
- the username of the user that created a new privacy list.list
- the PrivacyList to save.public void updatePrivacyList(String username, PrivacyList list)
username
- the username of the user that updated a privacy list.list
- the PrivacyList to update in the database.public void deletePrivacyList(String username, String listName)
username
- the username of the user that deleted a privacy list.listName
- the name of the PrivacyList to delete.public void deletePrivacyLists(String username)
username
- the username of the user whose privacy lists are going to be deleted.
|
Openfire 3.5.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |