コード例 #1
0
 @Override
 public User[] findUsers(ProgressIndicator progressIndicator) {
   if (isOnline()) {
     return myUserFinder.findUsers(progressIndicator);
   }
   return new User[0];
 }
コード例 #2
0
  @Override
  public void authenticated() {
    LOG.info("Jabber authenticated: " + myFacade.getConnection().getUser());
    if (myRosterListener == null) {
      myRosterListener = new MyRosterListener();
      getRoster().addRosterListener(myRosterListener);
    }
    myUserFinder.registerForProject(myFacade.getMyAccount().getJabberId());

    if (!hasJabberContacts()) {
      synchronizeRoster(false);
    }
  }