Package org.jivesoftware.smack

Examples of org.jivesoftware.smack.RosterEntry


   
    // is this a (private) message send from a user in a chat I'm part of?
    boolean authorized = this.groupChatCache.containsKey(bareAddress);
   
    if (!authorized) {
        RosterEntry entry = this.roster.getEntry(bareAddress);
            authorized = entry != null
              && (entry.getType() == ItemType.both
                  || entry.getType() == ItemType.from);
    }
       
        return authorized;
  }
View Full Code Here


  }
  private void updateMap(Collection<String> collection,String method) {
    //
    for(String addr : collection){
      Util.showDebugMsg("entriesAdded: " + addr);
      RosterEntry entry = roster.getEntry(addr);
      if(entry == null){
        Util.showErrMsg(method + "更新出错!");
        return;
      }
      Util.updateMap(entry);
View Full Code Here

    r.createEntry(user, name, groups);
  }

  public void sendRosterRemove(String user) throws XMPPException, IOException {
    final Roster r = getRoster();
    final RosterEntry re = r.getEntry(user);
    r.removeEntry(re);
  }
View Full Code Here

TOP

Related Classes of org.jivesoftware.smack.RosterEntry

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.