Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3951886
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:47:03+00:00 2026-05-20T01:47:03+00:00

I am developing a GWT application which im using Spring Security to handle the

  • 0

I am developing a GWT application which im using Spring Security to handle the authentication. My application will have 5 users each with different roles.

  1. Superuser – This is the site owner and has read write access to everything.
  2. School owner – This is a person who owns school(s) that will use the application. This user has access to all their school(s).
  3. District manager – This is an employee of the site owner and has read access to the schools in that district. (A district is a physical area with a number of schools)
  4. School manager – Manages a particular school and has read and write access to everything on that school. Access is given by the school owner.
  5. Instructor – Has read and write access to only particular areas assigned to him/her by the school manager.

Ive taken a look at different ways to implement such a security model and I’m torn between two ways of solving it using Spring security, first there’s the complex way of doing it by using 4 database ACL tables as explained on denksoft blog

The other way is to use Expression-Based Access Control through Spring security Expression language which is much easier and doesn’t require extra database tables.

MY question is, from what I intend to achieve, which option is better to use and would give better results. I assume using the first option (using database ACL tables) offers more customization. I’m from a RoR background and wonder why i’d need so many tables to achieve this. Is the Expression language option a viable solution for this scenario. And if so is there a nice starting point/tutorial for this? Advice is highly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T01:47:04+00:00Added an answer on May 20, 2026 at 1:47 am

    ACL may be overkill in this situation.

    When checking for authorization, Spring EL should be enough, e.g.:

    @PreAuthorize("hasRole('ROLE_School-owner') or hasRole('ROLE_School-manager')")
    

    If the roles are hierarchical, then things get even easier once you group roles, by using one more level of indirection:

    Group “School owner”: roles ROLE_School-owner + ROLE_School-manager + ROLE_Instructor

    Group “School manager”: roles ROLE_School-manager + ROLE_Instructor

    Then, if you need to check for school manager authorization, you only need to check for that role:

    @PreAuthorize("hasRole('ROLE_School-manager')")
    

    This will also give permission to a user of group “School owner”, since that group also has assigned the role of school manager.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am in the middle of developing my first GWT application which will consume
I would like to have my GWT application use different constants when debugging or
I am developing an application in GWT which needs to call a native C++
I am developing a web-based (Business)application in Java (GWT 2.0.1) where number of users
I am developing an application using SPRING 3.0.4, JPA 2, Hibernate 3.5.5. I an
I am developing smart gwt application, As per smart FAQ we have to give
When developing a new web based application which version of html should you aim
I'm currently in the process of developing a GWT 1.7.1 application that deals with
I am developing a web service in GWT which needs to be able to
I'm developing an application on GlassFish v3 which uses Suns-RI of JavaEE6 and JSF2.0,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.