YouTube

Got a YouTube account?

New: enable viewer-created translations and captions on your YouTube channel!

English subtitles

← Implement getProfile - Developing Scalable Apps with Java

Get Embed Code
4 Languages

Showing Revision 5 created 05/25/2016 by Udacity Robot.

  1. So let's take a look at the code for

  2. getting the profile out of the data store. So
  3. here's the getProfile method. Throws an exception if the
  4. user is not authorized. We get the key, get the
  5. user ID to use as the ID for the key. We create the key, and then we get the
  6. profile. Now ofy.load returns an object. So, in this
  7. case, we want it to be kind profile, class profile.
  8. So, we have to cast it as a profile