Package org.waveprotocol.wave.client.account.impl

Examples of org.waveprotocol.wave.client.account.impl.ProfileImpl


  }

  static private void deserializeAndUpdateProfile(RemoteProfileManagerImpl manager,
      FetchedProfile fetchedProfile) {
    ParticipantId participantId = ParticipantId.ofUnsafe(fetchedProfile.getAddress());
    ProfileImpl profile = manager.getProfile(participantId);
    // Profiles already exist for all profiles that have been requested.
    assert profile != null;
    // Updates profiles - this also notifies listeners.
    profile
        .update(fetchedProfile.getName(), fetchedProfile.getName(), fetchedProfile.getImageUrl());
  }
View Full Code Here


  }

  @Override
  public ProfileImpl getProfile(ParticipantId participantId) {
    String address = participantId.getAddress();
    ProfileImpl profile = profiles.get(address);
    if (profile == null) {
      profile = new ProfileImpl(this, participantId);
      profiles.put(address, profile);
      LOG.trace().log("Fetching profile: " + address);
      fetchProfilesService.fetch(this, address);
    }
    return profile;
View Full Code Here

  }

  static private void deserializeAndUpdateProfile(RemoteProfileManagerImpl manager,
      FetchedProfile fetchedProfile) {
    ParticipantId participantId = ParticipantId.ofUnsafe(fetchedProfile.getAddress());
    ProfileImpl profile = manager.getProfile(participantId);
    // Profiles already exist for all profiles that have been requested.
    assert profile != null;
    // Updates profiles - this also notifies listeners.
    profile
        .update(fetchedProfile.getName(), fetchedProfile.getName(), fetchedProfile.getImageUrl());
  }
View Full Code Here

  }

  @Override
  public ProfileImpl getProfile(ParticipantId participantId) {
    String address = participantId.getAddress();
    ProfileImpl profile = profiles.get(address);
    if (profile == null) {
      profile = new ProfileImpl(this, participantId);
      profiles.put(address, profile);
      LOG.trace().log("Fetching profile: " + address);
      fetchProfilesService.fetch(this, address);
    }
    return profile;
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.client.account.impl.ProfileImpl

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.