I need to implement a authorization system where permission is individual, so each user can access specific pages and specific functions, eg .:
User A -> Customer page (Read, Create, Update, Delete), Products page (Read, Create, Update, Delete)
User B -> Customer page (Read, Create), Products page (Read,Delete)
User C -> Manufacturers page (Read,Create)
Admin User -> ALL
Also I would like to have profiles with pre-determined permissions but the user could have more permissions than these profiles. I'm trying to use JAAS for this, but it is complicated to understand where the roles and groups would, also I need to control access to screens via database, every tutorial I see for JAAS uses the web.xml and Roles like Groups(ADMIN, USER, GUEST, ETC) so I can not do this dynamically and individual for the user.
Any suggestions or example?