title: Role-based access control in UML
body: <p>I'm trying to figure out what I need to specify in UML for a role-based access control system.
  Basically I have a Database and only specific people are supposed to access specific functions or informations from that database. My academic helper told me to use a role-based access control system and scribbled some stuff onto a paper.</p>
  
  <p><a href="https://i.stack.imgur.com/luP0t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/luP0t.png" alt="enter image description here"></a></p>
  
  <p>On the left you can see the 3 roles, and connected to it the database, both in the model part of the Model-View-Control.
  My question basically: Which functions/variables do I need in the class Role and the role classes so the access control system works and why?
  Generally this is supposed to be written in Java.</p>
  
  <p>EDIT: Each Role has its own login credentials, so they will be identified upon login. With this login they are supposed to get one of those roles, but I don’t know how to give them that role.</p>