开发者

Authentication with AOP, Guice and the new RequestFactories

I would like to use the new RequestFactories and the new approach to do AOP with Guice to do the Authenticati开发者_Go百科on.

I would like to have for example a RequestFactory Request method in a JPA Entity for example

findCustomer(int id) which i can anotate for example with @NeedsAuthorization(rights=Rigths.ADMIN)

This is just an example, but i am not so experienced in this field and it would be nice if there is an nice tutorial which shows such a possibility. Maybe HttpSession based.


Want to give myself an answer. After longer research i find a way to use Guice with RequestFactory in this software architecture example: https://github.com/mgenov/injecting-request-factory

In this project i saw an example of Authorizaton wit AOP: http://snippets.dzone.com/posts/show/11587

In the dynatableRF example of GWT i saw how to do the Authorization on Request Factory level (with AuthFilter)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜