Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Showing Access Level in Class Diagram

I am having an assignment to create a class diagram for a certain software. Now, I identified the important classes and linked them and they are fine.

The thing is that I am having two different classes associated with another same class, but with different access level. For instance, I am having Admin and Clerk classes associated with Video class. The Clerk will be able to only view, whilst Admin is able to view and edit. Can I show this distinction in Class Diagram?

like image 749
Ghasan غسان Avatar asked Nov 03 '22 17:11

Ghasan غسان


2 Answers

Yes, you can show this on a class diagram, if, in fact, the classes are part of the problem domain. If you are modeling these classes as part of the solution domain, then you should not. For more on this topic, please read the excellent article by Leon Starr, called How to Build Articulate Class Models and get Real Benefits from UML.

like image 70
Jim L. Avatar answered Nov 25 '22 09:11

Jim L.


If Admin and Clerk are classes (and not actors), you cloud use something like GenMyModel http://app.genmymodel.com/engine/xaelis/accessLevel.jpg

like image 44
Xaelis Avatar answered Nov 25 '22 08:11

Xaelis