Forums de discussion
role creation and page permissions - programmatically.
Vasudeva Moorthy Patnaik, modifié il y a 14 années.
role creation and page permissions - programmatically.
New Member Publications: 6 Date d'inscription: 15/10/08 Publications récentes
Hi All,
I understand that we can create new roles and giving page level permission through the gui.
I am curious to know, whether we can create custom roles at the programmatic level and giving page level permissions ( authorisation) at the programmatic level ?
Can anyone throw some light on this ?
Thnx n Regz
Vasu Patnaik.
I understand that we can create new roles and giving page level permission through the gui.
I am curious to know, whether we can create custom roles at the programmatic level and giving page level permissions ( authorisation) at the programmatic level ?
Can anyone throw some light on this ?
Thnx n Regz
Vasu Patnaik.
Vasudeva Moorthy Patnaik, modifié il y a 14 années.
RE: role creation and page permissions - programmatically.
New Member Publications: 6 Date d'inscription: 15/10/08 Publications récentes
Hi All
Any update regarding the above post ? I havent quite figured out yet.
Thanks in advance.
Regards
Vasu Patnaik.
Any update regarding the above post ? I havent quite figured out yet.
Thanks in advance.
Regards
Vasu Patnaik.
Arvind Mishra, modifié il y a 14 années.
RE: role creation and page permissions - programmatically.
Regular Member Publications: 226 Date d'inscription: 13/02/08 Publications récentes
Pages are stored in Layout table .
Tables related to Roles are :
Role_
Roles_Permissions
Users_Roles
Table related to permissions are -
Resource_
ResourceCode
Permission_
To add a Page programmatically - look in to LayoutLocalServiceImpl.java , addLayout()
Tables related to Roles are :
Role_
Roles_Permissions
Users_Roles
Table related to permissions are -
Resource_
ResourceCode
Permission_
To add a Page programmatically - look in to LayoutLocalServiceImpl.java , addLayout()
Arvind Mishra, modifié il y a 14 années.
RE: role creation and page permissions - programmatically.
Regular Member Publications: 226 Date d'inscription: 13/02/08 Publications récentes
To add Role Pragmatically use
RoleLocalServiceImpl.java - addRole()
RoleLocalServiceImpl.java - addRole()
SAKTHI NIVASHAN M S, modifié il y a 14 années.
RE: role creation and page permissions - programmatically.
New Member Publications: 5 Date d'inscription: 27/03/09 Publications récentes
Hi , similarly which method to be called to assign page permission to different roles,
as far as i have gone through the Permission_ table needs resourceid, which is in resource_ table, which in turn needs primary key available in layout table.
i have to add page permission programatically. ( the one available in manage pages -> (page name) -> permission )
can anyone help me on this
as far as i have gone through the Permission_ table needs resourceid, which is in resource_ table, which in turn needs primary key available in layout table.
i have to add page permission programatically. ( the one available in manage pages -> (page name) -> permission )
can anyone help me on this
mohammad azaruddin, modifié il y a 11 années.
RE: role creation and page permissions - programmatically.
Expert Publications: 492 Date d'inscription: 17/09/12 Publications récentes
Syed Nasar, modifié il y a 7 années.
RE: role creation and page permissions - programmatically.
Junior Member Publications: 64 Date d'inscription: 03/09/15 Publications récentes
Hi,
Even I need this to be happen i.e assign page permissions to role programmatically. How can we achieve this?
Even I need this to be happen i.e assign page permissions to role programmatically. How can we achieve this?