Haha. The subject is a little play on Jorge Ferrer's outstanding blog
Organizations or Communities, which one should I use? The final answer. That cleared up my confusion on the differences between Organizations and Communities. I was hoping somebody could do the same on Roles and User Groups?
To me, they are both groups. Let me guess, they are both stored in the Groups table in the database and both are accessed in the API via the groupId, no?
They are just differenciated by different types/classes/models, no?
You create a Role. You add users to the Role. Then, you associate the Role to one or many portlets.
As a page is being rendered for the user, a page in the user's community/site, a portlet configured to display on the page first inspects the user's associated Roles to see if the user has rights to access the portlet. The portlet compares those user Roles to the Roles that have been defined for itself. If there is a match, then the portlet is rendered. If there is no match, then an access denied message is rendered. (Unless that property has been set to hide access denied messages for portlets. In which case, nothing would be rendered.)
For a User Group, it is pretty much the same thing. You create the User Group. You add users to the User Group. But here you associate User Groups to Pages/Sites(?) rather than portlets.
Does that sound about right? To me they are the same thing. There should be no reason you can't have Roles associated with pages, and just use Roles. Or, have User Groups associated with portlets, and just use User Groups.
I'm just trying to grasp my head around it as my company/team are new to Liferay. We are trying to figure out the best way to build out our Users' structure and groupings and permissions to pages and portlets.
Any input will be greatly appreciated!
Please sign in to flag this as inappropriate.