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:
Calls
preUpdateUser
, which sets up aProfileUpdateEvent
but does not fire it.Calls
doUpdateUser
, which uses aRepo2Xml
update service to update the givenpProfileAsXML
.Calls
postUpdateUser
, which may revoke profile cookies if the user’sautoLogin
property changes from true to false. It also fires aProfileUpdateEvent
if configured to do so (setgenerateUpdateEvents
to true in theProfileServices
component).