Fórum
Notify when update role on db is completed
Luigi Candita, modificado 10 Anos atrás.
Notify when update role on db is completed
Junior Member Postagens: 38 Data de Entrada: 04/05/09 Postagens Recentes
Hi all
I need to know when an update of a role is completed (I've used a role based logic to see folders in document data library). All work perfectly, but if the system is slow, when I click on "Document and Media Library" too early, I found old folders (last not updated role).
There is a way to know when the void method RoleLocalServiceUtil.addUserRoles is completed?
Thanks in advance
I need to know when an update of a role is completed (I've used a role based logic to see folders in document data library). All work perfectly, but if the system is slow, when I click on "Document and Media Library" too early, I found old folders (last not updated role).
There is a way to know when the void method RoleLocalServiceUtil.addUserRoles is completed?
Thanks in advance
David H Nebinger, modificado 10 Anos atrás.
RE: Notify when update role on db is completed
Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
Yep, you can insert a model listener. This way you will be called when the model object is being updated. The trick is to find the right object that you add the model listener to.