The updateUser Web service calls the updateUser method in the underlying atg.userprofiling.ProfileServices implementation. The updateUser method behaves the same way as the handleUpdate method in the ProfileFormHandler (see The ProfileForm Class). Note that updateUser should be called only in the context of an HTTP request; otherwise an error occurs.

updateUser invokes the following methods:

  • preUpdateUser(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)

  • doUpdateUser(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)

  • postUpdateUser(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)

These methods are similar to the ProfileFormHandler’s preUpdateUser, updateUser, and postUpdateUser methods.

The updateUser method acts as follows:

  1. Calls preUpdateUser, which sets up a ProfileUpdateEvent but does not fire it.

  2. Calls doUpdateUser, which uses a Repo2Xml update service to update the given pProfileAsXML.

  3. Calls postUpdateUser, which may revoke profile cookies if the user’s autoLogin property changes from true to false. It also fires a ProfileUpdateEvent if configured to do so (set generateUpdateEvents to true in the ProfileServices component).


Copyright © 1997, 2015 Oracle and/or its affiliates. All rights reserved. Legal Notices