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

  • Home
  • SEARCH
  • 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 8920493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:16:59+00:00 2026-06-15T06:16:59+00:00

As an exercise, I would like to create a forum in Java EE, using

  • 0

As an exercise, I would like to create a forum in Java EE, using JSF.

I’m a total nooby in class diagram.

I can’t figure out if I need to create a class for the administrators.

For example, having a class User, then the admin class by inheritance. In that way, admins could do everything users do.
But my issue is that I want different level of admin.
Let’s say, moderator, super admin etc…
So I could create a role attribute saying which rights within the admin he has.

But in that case, is it useful to create an admin class, I could just make a user class with this role attribute which will say if user or admin and which admin etc.

I’m a bit lost.

  • 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-06-15T06:17:00+00:00Added an answer on June 15, 2026 at 6:17 am

    Why do you need a different class? The most usual approach is just have a User class (call it something else because many DB don’t like it), and each user have several Roles or Permissions.

    That said, most probably you should not deal with this from within your application. Use the JAAS model and let the container deal with; your only use in the application could be assigning roles to users.

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

Sidebar

Related Questions

As an exercise to learn Ruby, I would like to create a script that
The exercise says: Create a Text class that contains a string object to hold
I would like, if for no other reason that an academic exercise, to be
As an exercise, I would like to port some of the functionality of a
I would like to do some exercice and apply DDD to my Domain Model
As a learning exercise i want to create a simple web api and consume
I've got two entities, one named exercise and the other named workout. I would
I'm stuck on a portion of the Java tutorial, specifically this exercise . The
Im making a workout app and just would like to clarify that the way
I am working with a Drupal 6.x system to create exercise / personal training

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.