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 6235791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:43:51+00:00 2026-05-24T10:43:51+00:00

I am creating an enterprise level application, where there are different types of users.

  • 0

I am creating an enterprise level application, where there are different types of users. Normal User, Organisation Admin, Super Admin. Every user has different roles.

  1. Normal user : access functionality of core application.

  2. Organisation Admin : create user ander its orgnisation.

  3. Super User : Approve user and organisation

How this architecture to be designed? Should the roles to be designed as separate classes. Or using inheritance different types of users to be creaated??

  • 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-24T10:43:52+00:00Added an answer on May 24, 2026 at 10:43 am

    Typically roles aren’t modelled as classes, but they are simply strings. When a user authenticates, a number of these strings are associated with the Security principal of the user.

    These roles can be queried in code, e.g. in the web layer via HttpServletRequest#isUserInRole, in the EJB module via SessionContext.isCallerInRole etc. There are also annotations that declare this dependency on role(s).

    If you thus want to leverage the existing security and role structure, there is nothing for you to design other than defining which roles there are and providing a login module that can fetch the collection of roles for the user who has authenticated.

    For this last thing, you may have to design something, but not necessarily. If you store your users in a directory service (e.g. LDAP), you can just use an LDAP login module. Most application servers or servlet containers (like JBoss AS, Glassfish, Tomcat, etc) provide those by default. If your users are in a DB, a simple table with a foreign key to a user in one column and the role name in another column would do. You can then use a DB login module that uses a simple query to fetch the roles.

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

Sidebar

Related Questions

I work as part of a team creating an enterprise application that will be
I am creating a console application using Enterprise Library my code is something like
I am creating an application for an huge enterprise , I came to know
Team, I'm new to titanium. I'm working on creating enterprise application for iPhone. I
I have .NET enterprise application for work with two different versions. A SQL Compact
I am using Enterprise Library 4.0 and I can't find any documentation on creating
Creating a google map with store locations within 50 miles of user entered address.
I am creating an application where I want to add metadata about table fields
I am creating an installation package for a VB6 application using Visual Studio Installer
I'm using the Enterprise Library Exception handling block in an ASP.NET web application. I

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.