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.