Got a YouTube account?

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

English subtitles

← Updating saveProfile - Developing Scalable Apps with Java

Get Embed Code
4 Languages

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

  1. Okay, let's take a quick look at the code.
  2. Here's where we entered the user argument, passed the
  3. user argument. Here's where we check if the user
  4. is now and if it is throw unauthorized exception. Here's
  5. where we set the default display name if the
  6. user doesn't submit it in the form. Yup and that's
  7. all there is to it, so we've defined a
  8. wonderful safe profile method except it doesn't actually save anything.
  9. The next lesson you are going to learn to use the data store to save your data.