Hi All,
I need to define security levels in my program.
Just like windows asks admin privilege when we try to install a software.
It's a mechanism of checking privilege before executing a task.
I need to know is, how I can implement this approach in my java program.
A friend of mine who is a PHP developer told me that, In their web apps
they control users activities by giving permissions to run something called actions.
According to him they have implement some db tables which contains all actions & actions have mapped to some groups. those groups add to users according to privileges that user need to grant.
after that if a admin user logs in he will see everything. but if a standard user logs in he won't be able to see any admin pages.
Since PHP has actions, they could do this.
In JAVA, how can I achieve this approach?
Please advise.
Only thing I need to know is how to do this.
Please remember that I'm very new to JAVA & Programming world.