Results 1 to 2 of 2

Thread: User Management

  1. #1

    Default 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. #2

    Default

    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
  •