java - How to create user/roles relation in UML class diagram? -


I have a few weeks searching for a UML class diagram for the project.

System

  • What kind of relationship can I establish between classes?
  • Is this class right?
  • Do I need other classes?

Thanks in advance!

user / roles uml class diagram

I take a shot on it. The session object is a combination union with the user (without the session the user can not have a session, without the user can not have the session.) Users have a combination association with roles (the user can not be without roles) sessions The creator creates the user object, the user constructor creates a role object for each valid role, and stores / dictionary / Array / whatever it puts.

You should not associate directly with sub-classes, because the roles of each type of user are highlighted by the user's way in the valid roles

Whether or not the session reaches legitimate roles.

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -