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

createUser invokes the following methods:

  • preCreateUser(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)

  • doCreateUser(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)

  • postCreateUser(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)

These methods are similar to the ProfileFormHandler’s preCreateUser, createUser, and postCreateUser methods.

The createUser method acts as follows:

  1. Calls preCreateUser.

  2. Calls doCreateUser, which uses a Repo2Xml AddService to add the given item to the repository. If successful, the item is then set as the data source for the current profile. Any password present in the given item is also encrypted for storage. (As mentioned above, it is expected that passwords given in the pProfileAsXML are cleartext.)

  3. Calls postCreateUser, which sets profile cookies if required to do so. postCreateUser also fires a register event if you set the generateRegisterEvents to true in the ProfileServices component.


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