public class PrivacyListProvider extends Object
Constructor and Description |
---|
PrivacyListProvider() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.Copyright © 2003-2008 Jive Software.