Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Drew Blessing
Portlet Permissions
September 29, 2011 7:04 PM
Answer

Drew Blessing

Rank: Junior Member

Posts: 79

Join Date: January 27, 2011

Recent Posts

I'm fairly new to Liferay development and I'm having trouble wrapping my head around permissions. I've read quite a few articles and even read parts of a book that discussed permissions. Yet, I'm still out in the cold.

My portlet is in the Control Panel and is based on Entities. So let's say I have Entity 1, Entity 2, and Entity 3, of which each has its own attributes such as Name, Server Name, Location, etc. First, I need a global permission (probably VIEW and ADD**) that I can define as a role-based permission. Then, I need to be able to define permissions on each of the Entities separately. This would be similar to the permissions you can set on any portlet with permissions for UPDATE and DELETE. However, instead of at the portlet level I need them at the "entity" level.

Can any give me some guidance on this? Seems to be a fairly complex permissions scheme and is by far the toughest part of my development process. I appreciate the help.

** It probably wouldn't hurt to have an UPDATE and DELETE permission that can be defined as a role-based permission so that a person could potentially be given global UPDATE and DELETE permissions.
Drew Blessing
RE: Portlet Permissions
September 29, 2011 7:07 PM
Answer

Drew Blessing

Rank: Junior Member

Posts: 79

Join Date: January 27, 2011

Recent Posts

* Shameless plug * - I'm asking this question to help on a community portlet I'm developing and releasing for free. If you think you'd be interested in contributing further to this project, I welcome any input. The source is available in beta right now and I'd love to collaborate with other devs to make this even better for the community. Permissions is the biggest gaping hole right now.

The portlet shows user's course enrollments from Moodle (and Sakai and Blackboard in future versions). If you want more info about my portlet and what it does, see the project home at http://portal.gnenc.org/my-courses-portlet