public void updatePrivacyList(String listName, List<PrivacyItem> privacyItems) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException  {
        // Build the privacy package to add or update the new list
        Privacy request = new Privacy();
        request.setPrivacyList(listName, privacyItems);

        // Send the package to the server
        setRequest(request);
    }
public void updatePrivacyList ( String listName , List < PrivacyItem > privacyItems ) throws NoResponseException , XMPPErrorException , NotConnectedException , InterruptedException { Privacy request = new Privacy ( ) ; request . setPrivacyList ( listName , privacyItems ) ; setRequest ( request ) ; }
The client has edited an existing list. It updates the server content with the resulting
list of privacy items. The {@link PrivacyItem} list MUST contain all elements in the
list (not the "delta").

@param listName the list that has changed its content.
@param privacyItems a List with every privacy item in the list.
@throws XMPPErrorException
@throws NoResponseException
@throws NotConnectedException
@throws InterruptedException