Package org.jivesoftware.smack

Examples of org.jivesoftware.smack.RosterGroup


      return;

    List<String> displayedGroups = new ArrayList<String>(groupTreeItems.keySet());
    Iterator groups = roster.getGroups();
    while (groups.hasNext()) {
      RosterGroup group = (RosterGroup) groups.next();
      updateRosterGroup(account, roster, groupTreeItems, item, group, group
          .getName());
      displayedGroups.remove(group.getName());
    }
    updateRosterGroup(account, roster, groupTreeItems, item, null, NO_GROUP_NAME);
    displayedGroups.remove(NO_GROUP_NAME);
    updateRosterGroup(account, roster, groupTreeItems, item, null,
        NO_GROUP_COMPONENT);
View Full Code Here


  protected void updateRosterEntry(GOIMAccount account,
      Map<String, TreeGroup> groupTreeItems, RosterEntry entry) {
    Iterator i = entry.getGroups();
    int count = 0;
    while (i.hasNext()) {
      RosterGroup group = (RosterGroup) i.next();
      insertRosterEntryIntoGroup(account, groupTreeItems, entry, group
          .getName());
      count++;
    }
    if (count == 0)
      if (entry.getUser().indexOf('@') > -1 && !entry.getUser().equals(GOIMAccount.STATSCONTACTJID))
View Full Code Here

      LOG.info(s, e);
    }
  }

  private void changeUsersGroup(UserEvent.Updated event, final Roster roster, final RosterEntry userEntry) throws XMPPException {
    RosterGroup oldGroup = roster.getGroup((String) event.getOldValue());
    RosterGroup newGroup = roster.getGroup((String) event.getNewValue());
    if (oldGroup != null) {
      oldGroup.removeEntry(userEntry);
    }

    if (newGroup == null) {
      newGroup = roster.createGroup((String) event.getNewValue());
    }
    newGroup.addEntry(userEntry);
  }
View Full Code Here

TOP

Related Classes of org.jivesoftware.smack.RosterGroup

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.