Using Resources and Permissions

Your application is a great foundation to build on. What comes next? What if users want a Guestbook that’s limited to certain trusted people? What if you don’t want just any old user to go around editing or deleting people’s Guestbook entries? To do that, you have to implement permissions.

Thankfully, with Liferay DXP you don’t have to write an entire permissions system from scratch: the framework provides a robust and well-tested permissions system that you can implement quickly. You’ll follow Liferay’s well-defined process for implementing permissions, called DRAC:

  • Define all resources and permissions
  • Register all defined resources in the permissions system
  • Associate permissions with resources
  • Check for permission before returning resources

If you get stuck, source code for this step is provided.

Ready to start?

Let’s Go!

« Adding Messages to JSPsDefining Permissions »
Was this article helpful?
1 out of 1 found this helpful