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!
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
Comments
Post a Comment