Package rocks.xmpp.extensions.privacy.model

Examples of rocks.xmpp.extensions.privacy.model.Privacy$DefaultNameAdapter


     * @throws rocks.xmpp.core.stanza.model.StanzaException If the user attempts to set an active list but a list by that name does not exist, the server MUST return an {@code <item-not-found/>} stanza error to the user.
     * @throws rocks.xmpp.core.session.NoResponseException  If the entity did not respond.
     * @see <a href="http://xmpp.org/extensions/xep-0016.html#protocol-active">2.4 Managing Active Lists</a>
     */
    public void setActiveList(String name) throws XmppException {
        Privacy privacy = new Privacy();
        privacy.setActiveName(name);
        setPrivacy(privacy);
    }
View Full Code Here


     *                                                      </ul>
     * @throws rocks.xmpp.core.session.NoResponseException  If the entity did not respond.
     * @see <a href="http://xmpp.org/extensions/xep-0016.html#protocol-default">2.5 Managing the Default List</a>
     */
    public void setDefaultList(String name) throws XmppException {
        Privacy privacy = new Privacy();
        privacy.setDefaultName(name);
        setPrivacy(privacy);
    }
View Full Code Here

     * @throws rocks.xmpp.core.stanza.model.StanzaException If the entity returned a stanza error.
     * @throws rocks.xmpp.core.session.NoResponseException  If the entity did not respond.
     * @see <a href="http://xmpp.org/extensions/xep-0016.html#protocol-edit">2.6 Editing a Privacy List</a>
     */
    public void createOrUpdateList(PrivacyList privacyList) throws XmppException {
        setPrivacy(new Privacy(privacyList));
    }
View Full Code Here

     * @throws rocks.xmpp.core.stanza.model.StanzaException If the entity returned a stanza error.
     * @throws rocks.xmpp.core.session.NoResponseException  If the entity did not respond.
     * @see <a href="http://xmpp.org/extensions/xep-0016.html#protocol-remove">2.8 Removing a Privacy List</a>
     */
    public void removeList(String name) throws XmppException {
        setPrivacy(new Privacy(new PrivacyList(name)));
    }
View Full Code Here

TOP

Related Classes of rocks.xmpp.extensions.privacy.model.Privacy$DefaultNameAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.