cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

I have one requirement , if any user from HMC or backoffice deletes any product, we have to send a mail to website admin with the product name and user id who deleted the product, how to get the user?

Former Member

Accepted Solutions (0)

Answers (1)

Answers (1)

VinayKumarS
Active Contributor
0 Likes

you can write a Remove Interceptor on product removal. That fires an event. Event will be calls in the service command to send email. I hope this helps.

VinayKumarS
Active Contributor
0 Likes

for writing interceptor you can get help in cuppy or help.hybris.com

Former Member
0 Likes

how to get the user who removed the product from HMC or backoffice?

VinayKumarS
Active Contributor
0 Likes

may be you inject cockpitUserService to interceptor. and use @cockpitUserService.getCurrentUser() to get the current user of backend apps