Details about Site roles - Adding and getting


Related to Site Roles we can use UserGroupRoleLocalServiceUtil method.

To add site role to the user we can use UserGroupRoleLocalServiceUtil .addUserGroupRoles(long userId, long groupId, long[] roleIds)

To get site role for the user we can use getUserGroupRoles(long userId, long groupId);

Also there are several methods to Delete site roles and to check the site roles.

All these implementation we can check in the UserGroupRoleLocalServiceImpl .

Comments

Popular posts from this blog

Theme display in javascript

How to know which liferay version we are using

Viewing the SQL Query in liferay : debugging the SQL Query in Hibernate