Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jakarta.ee-community] JPA Audit function

Hi,

You should be able to inject the JSR 375 SecurityContext into a CDI managed JPA event listener. User principals can be obtained from there.

PS: the JPA mailing list would be better suited for this thread

El mié., 29 may. 2019 12:04, Gergely Molnár <gergelymolnarpro@xxxxxxxxx> escribió:
Hi All!

I have a idea of new feature. We are able to audit entities before add, update, delete, but we are not able to get principal name from CDI/EJB. It would be useful if the principal name can be available with injection. I mean when the entity is under audit, then we are able to link that with principal name programmatically. Am I wrong? Is it already solved?

Best regards/Üdvözlettel,
Gergely Molnár
_______________________________________________
jakarta.ee-community mailing list
jakarta.ee-community@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jakarta.ee-community

Back to the top