I would like to use the new RequestFactories and the new approach to create AOPs with Guice for authentication.
I would like to have, for example, the RequestFactory Request method in a JPA entity, for example
findCustomer (int id), which I can annotate, e.g. with @NeedsAuthorization (rights = Rigths.ADMIN)
This is just an example, but I'm not so experienced in this area, and it would be nice if I had a good tutorial that shows such an opportunity. Possibly HttpSession.
source
share