Examples of Roster


Examples of org.onesocialweb.gwt.service.Roster

  public PrivacySelector(String fieldname) {

    addStyleName("privacyselector");

    // construct
    final Roster roster = OswServiceFactory.getService().getRoster();
    roster.registerEventHandler(new Observer<RosterEvent>() {

      @Override
      public void handleEvent(RosterEvent event) {
        updateVisibility(roster.getGroups());
      }

    });
    updateVisibility(roster.getGroups());
    setVisibleItemCount(1);

  }
View Full Code Here

Examples of org.xmpp.packet.Roster

    }

    private IQ getIQ(Element doc) {
        Element query = doc.element("query");
        if (query != null && "jabber:iq:roster".equals(query.getNamespaceURI())) {
            return new Roster(doc);
        }
        else {
            return new IQ(doc);
        }
    }
View Full Code Here

Examples of org.xmpp.packet.Roster

    }

    private IQ getIQ(Element doc) {
        Element query = doc.element("query");
        if (query != null && "jabber:iq:roster".equals(query.getNamespaceURI())) {
            return new Roster(doc);
        }
        else {
            return new IQ(doc, !validateJIDs());
        }
    }
View Full Code Here

Examples of rocks.xmpp.core.roster.model.Roster

*/
public class ContactExchangeManagerTest extends ExtensionTest {

    @BeforeClass
    public void prepareRoster() throws Exception {
        Roster roster = new Roster();
        roster.getContacts().add(new Contact(Jid.valueOf("juliet@example.net"), "juliet", "friends", "friends2"));
        roster.getContacts().add(new Contact(Jid.valueOf("romeo@example.net"), "romeo", "friends"));
        IQ iq = new IQ(AbstractIQ.Type.SET, roster);
        // Simulate a roster push in order to fill the roster.
        xmppSession.handleElement(iq);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.