-
Nov 2nd, 2012, 02:21 PM
#1
User Management
Hello
I'm new to spring and i have a question
I'm not searching for a out-of-the-box solution but well to understand how does it works
Let's say my website contains 10 pages (from 1 to 10)
The site deal with 3 users types (authentificated) + anonymous let's say A,B,C + anonymous
I'm searching for a way to do something like this
Anonymous can go to page 1,2,3
User with type A : Anonymous's pages + 4,6
User with type B : Anonymous's pages + 4,5,9
User with type C : All the pages
I know that i can use something like if session.getuser.type = A then access else exit when preloading the page but i'm searching for the "best" practise
Maybe a part of the spring framework ...
Thanks in advance for your answers
Ps : sorry for my poor english
-
Nov 4th, 2012, 06:05 AM
#2
You would dive into Spring Security which has some useful tags that help you deciding user roles.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules