aspose file tools*
The moose likes Spring and the fly likes How to add role for a user in Spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "How to add role for a user in Spring" Watch "How to add role for a user in Spring" New topic
Author

How to add role for a user in Spring

Sijesh Alayaril
Ranch Hand

Joined: Jan 13, 2012
Posts: 37
Hi All,

In my application , admin can view all the modules.if some other user login then he should able to see only that modules that is part of that user and roles.How i will achieve this one Spring.Could please give the sample spring configuration for this



Thanks in Advance,



cheers,
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

Sijesh Alayaril wrote:Hi All,

In my application , admin can view all the modules.if some other user login then he should able to see only that modules that is part of that user and roles.How i will achieve this one Spring.Could please give the sample spring configuration for this



Thanks in Advance,



cheers,


Are you being asked these questions in an interview?

Check out Spring Security and their documentation. Makes it very easy to do. But we can't teach you all of Spring Security to answer your question, again, you need to do some work and be more specific to a problem you are having.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Sijesh Alayaril
Ranch Hand

Joined: Jan 13, 2012
Posts: 37
Hi Mark,

Could you please guide me which book is best to look for Spring Security.


Thanks & Regsrds,
Sijesh
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1672
    
    7

There is only one if you want a book that addresses only Spring Security. Otherwise you will get an introduction to it in just about any book on Spring. Start with the free resources though. They have good documentation and samples available. Googling around will also result in a lot of examples and tutorials.

http://static.springsource.org/spring-security/site/


[How To Ask Questions][Read before you PM me]
 
jQuery in Action, 2nd edition
 
subject: How to add role for a user in Spring