Can I access to the GateIn permission system in my portlets?
I explain, I have a system with doctors and nurses, and I have a portlet who enable to view a patient and edit him, BUT only doctors can edit a patient, a nurse can only view informations.
Is it possible?
The authorization in GateIn is based on group/membership. In your case, you could define a 'Hospital' group and set respectively 'doctor_membership', 'nurse_membership' memberships on doctors, nurse. The UserACL provides method hasPermission(String permissionExpression) that allows you to check access/edit permission for 'Hospital' 's member