gukkes
Jun 9th, 2005, 04:56 AM
I'm planning to create some Audit logging Aspects for my project (Spring/hibernate/acegi).
I have a filter that checks for the Acegi credential in the Session scope. If so I retrieve an instance of my own User class and store it in the Session for later use.
Now for implementing the Audit aspect I need these credential objects.
Is it possible to store the Acegi user credential (or my own User object) in the Spring Context and retrieve it from my Aspect or is there another way do to this?
Another option is to give the User object as a method parameter on each method in the Service layer, but this is against the beauty of AOP, no?
Any help much appreciated.
I have a filter that checks for the Acegi credential in the Session scope. If so I retrieve an instance of my own User class and store it in the Session for later use.
Now for implementing the Audit aspect I need these credential objects.
Is it possible to store the Acegi user credential (or my own User object) in the Spring Context and retrieve it from my Aspect or is there another way do to this?
Another option is to give the User object as a method parameter on each method in the Service layer, but this is against the beauty of AOP, no?
Any help much appreciated.