Announcement Announcement Module
Collapse
No announcement yet.
User Management Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    You would dive into Spring Security which has some useful tags that help you deciding user roles.

    Comment

    Working...
    X