Package org.jivesoftware.smack

Examples of org.jivesoftware.smack.RosterGroup.addEntry()


                            com.valhalla.Logger.debug("found group " + newGroup.getName());
                        }

                        if (c != 0) {
                            com.valhalla.Logger.debug("Moving buddy to " + newGroup.getName());
                            newGroup.addEntry(entry);
                        } else {
                            roster.createEntry(buddyId, buddyAlias,
                                    new String[]{groupName});

                        }
View Full Code Here


          dialog.setBlockOnOpen(true);
          int code = dialog.open();
          if(code != InputDialog.OK) return;
          RosterGroup group = activeAccount.xmpp.getRoster().createGroup(dialog.getValue());
          try {
            group.addEntry(selectedEntry);
          } catch (XMPPException e) {
            e.printStackTrace();
            throw new RuntimeException(e);
          }
        }
View Full Code Here

    }

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

  public String toString() {
    return "JabberSyncUserMessage: " + myEvent;
  }
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.