掲示板
Notify administrator when a user is deleted by another admin
9年前 に Khuong Nguyen によって更新されました。
Notify administrator when a user is deleted by another admin
New Member 投稿: 4 参加年月日: 15/01/14 最新の投稿
Hi all, I am implement a function in liferay which is allow sending a notification when an admin deactivate a user. I try to research workflow in kaleo but it does not help. Anyone know about this, please tell me. Thanks in advance
9年前 に David H Nebinger によって更新されました。
RE: Notify administrator when a user is deleted by another admin
Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
Use a ModelListener on the User class, check for change in status, email when changing.
Alternatively you could pay for EE and use the Audit plugin; this will give you a history of who did what to the users.
Alternatively you could pay for EE and use the Audit plugin; this will give you a history of who did what to the users.
9年前 に Khuong Nguyen によって更新されました。
RE: Notify administrator when a user is deleted by another admin
New Member 投稿: 4 参加年月日: 15/01/14 最新の投稿David H Nebinger:
Use a ModelListener on the User class, check for change in status, email when changing.
Alternatively you could pay for EE and use the Audit plugin; this will give you a history of who did what to the users.
Thanks for your reply. Can you give more detail about using ModelListener, I am newbie in Liferay. Moreover, how can I override User class of Liferay, I can not find the class definition in my project?
9年前 に Krzysztof Gołębiowski によって更新されました。
RE: Notify administrator when a user is deleted by another admin
Liferay Master 投稿: 549 参加年月日: 11/06/25 最新の投稿
Hello Khuong,
Model listeners is quite a simple mechanism and has been well described on the network, check these two article for example:
If you receive an update event, you could check if the user gets deactivated and then send email using Liferay services (check http://liferaytutorial.blogspot.in/2013/08/sending-mail-in-liferay.html).
I think you cannot use workflow in this case as it is triggered only when user is registered for the first time.
Regards,
KG
Model listeners is quite a simple mechanism and has been well described on the network, check these two article for example:
- http://www.liferaysavvy.com/2014/05/liferay-model-listeners.html
- http://www.jayway.com/2010/08/25/the-long-and-winding-road-creating-a-model-listener-in-liferay-6/
If you receive an update event, you could check if the user gets deactivated and then send email using Liferay services (check http://liferaytutorial.blogspot.in/2013/08/sending-mail-in-liferay.html).
I think you cannot use workflow in this case as it is triggered only when user is registered for the first time.
Regards,
KG