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:
Calls
preCreateUser
.Calls
doCreateUser
, which uses aRepo2Xml
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 thepProfileAsXML
are cleartext.)Calls
postCreateUser
, which sets profile cookies if required to do so.postCreateUser
also fires a register event if you set thegenerateRegisterEvents
to true in theProfileServices
component.