I am planning my first decent sized
Java application. Since I am relatively new to OOP, I have a couple of questions. Many of the features in my application depend on knowing who the user is and their access level to screens and menu options. I need to create a menu system so that a user can only see their menu options. In addition, the user access level will determine how much of the screens they have access to that they will be able to use. For example two users may be able to use a data entry screen, but only one can actually save changes made.
My question is, how I set up a user object so that it is floating out there and when I need to know the user's security level, I grab the user object and ask it about its security clearance. I'm not sure that passing the user object all over the application is a very "Object oriented" way to perform this task. How should I set this up? Thank you very much!