com.sun.im.service
Interface PrivacyList


public interface PrivacyList


Method Summary
 void addPrivacyItem(PrivacyItem item)
          Add PrivacyItem to the PrivacyList
 PrivacyItem createPrivacyItem(java.lang.String type, int access)
          Creates a new PrivacyItem for this privacy list
 java.lang.String getName()
          return The name of this privacy list
 java.util.Collection getPrivacyItems()
          return an Collection of PrivacyItem objects
 void removePrivacyItem(PrivacyItem item)
          Remove PrivacyItem from the PrivacyList
 void reset()
          Removes all PrivacyItem from the PrivacyList
 void setName(java.lang.String name)
           
 

Method Detail

getName

public java.lang.String getName()
return The name of this privacy list


setName

public void setName(java.lang.String name)
Parameters:
name - The name of this privacy list

createPrivacyItem

public PrivacyItem createPrivacyItem(java.lang.String type,
                                     int access)
                              throws CollaborationException
Creates a new PrivacyItem for this privacy list

Parameters:
type - The Type of the Privacy Item.
access - The access level for this privacy item
Throws:
CollaborationException

getPrivacyItems

public java.util.Collection getPrivacyItems()
                                     throws CollaborationException
return an Collection of PrivacyItem objects

Throws:
CollaborationException

addPrivacyItem

public void addPrivacyItem(PrivacyItem item)
                    throws CollaborationException
Add PrivacyItem to the PrivacyList

Parameters:
item - Item to be added to the PrivacyList
Throws:
CollaborationException

removePrivacyItem

public void removePrivacyItem(PrivacyItem item)
                       throws CollaborationException
Remove PrivacyItem from the PrivacyList

Parameters:
item - Item to be added to the PrivacyList
Throws:
CollaborationException

reset

public void reset()
           throws CollaborationException
Removes all PrivacyItem from the PrivacyList

Throws:
CollaborationException