mmaz
Programmer
- Nov 22, 2000
- 347
Hello,
I have *very* little experience in OOP, but I've managed to build a simple application that lets users manage a directory of companies (in Java). Now, I have to insert authentication functionality.
The user interface will look a little different upon login. If they're administrators, they can insert, modify & delete data. If they're regular users, they can do all these things, but the changes will have to be approved by the administrator. So the administrator interface will have 2 extra buttons, "Approve Change" and "Reject Change".
What would be the best way to achieve this? Should it be something like:
-build 2 button panels, one for Administrators and one for Users
-when user logs in, create User object
-if person is Administrator, use Administrator button panel, else use regular button panel
Does that look okay? Suggestions, anyone?
Thanks,
Marie
I have *very* little experience in OOP, but I've managed to build a simple application that lets users manage a directory of companies (in Java). Now, I have to insert authentication functionality.
The user interface will look a little different upon login. If they're administrators, they can insert, modify & delete data. If they're regular users, they can do all these things, but the changes will have to be approved by the administrator. So the administrator interface will have 2 extra buttons, "Approve Change" and "Reject Change".
What would be the best way to achieve this? Should it be something like:
-build 2 button panels, one for Administrators and one for Users
-when user logs in, create User object
-if person is Administrator, use Administrator button panel, else use regular button panel
Does that look okay? Suggestions, anyone?
Thanks,
Marie