Forums de discussion

User's state is not active after addUser webservice

Andrea Fornelli, modifié il y a 10 années.

User's state is not active after addUser webservice

New Member Publications: 7 Date d'inscription: 29/10/13 Publications récentes
Hi all,
The web service addUser adds the user with status equal to 2.
To make it active in the insertion phase, before calling the method addUser I set inside the ServiceContext, the property workflowAction with the constant WorkflowConstants.STATUS_APPROVED:
serviceContext.setWorkflowAction(WorkflowConstants.STATUS_APPROVED);
Although this instruction, it seems that in the DB always store the value 2 to the user's state inserted.
It's very important. Thanks
thumbnail
David H Nebinger, modifié il y a 10 années.

RE: User's state is not active after addUser webservice

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
there is no guarantee that the data is pushed to the database. users are stored in the lucene db also.

so, once again, YOU SHOULD NOT BE IN THE LIFERAY DATABASE. It is their database, sometimes they deprecate things (without telling us), they repurpose columns/tables, etc. It is not your database, it is theirs, and you cannot assume anything based upon data in the database itself.