V
VisionSet
How is this usually done?
My thoughts at the moment are to have a abstract singleton factory for my 3
user roles
these can handle things like login, password change etc and also be a lookup
for the current role.
Have subclasses of swing components that differ only in the things they
allow the user roles to do.
If a user is never going to be allowed to do xyz, is there any point adding
xyz to a component, let alone just setting setEnabled(false) ?
What is the usual OO approach to this task?
My thoughts at the moment are to have a abstract singleton factory for my 3
user roles
these can handle things like login, password change etc and also be a lookup
for the current role.
Have subclasses of swing components that differ only in the things they
allow the user roles to do.
If a user is never going to be allowed to do xyz, is there any point adding
xyz to a component, let alone just setting setEnabled(false) ?
What is the usual OO approach to this task?