Using Resources and Permissions

You now have an application that uses the database for data storage. This is a great foundation to build on. What comes next? What if users want a Guestbook that’s limited to certain trusted people? To do that, you have to implement permissions.

Thankfully, with Liferay Portal 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

Ready to start?

Let’s Go!

Defining Permissions

Implementing Permissions Step 1 of 4 Liferay Portal’s permissions framework is configured declaratively, like Service Builder. You define all your permissions in an XML file that by convention is...

Read More

Registering Your Defined Permissions

Implementing Permissions Step 2 of 4 The last step introduced the concept of resources. Resources are data stored with your entities that define how they can be accessed. For example, when the...

Read More

Assigning Permissions to Resources

Implementing Permissions Step 3 of 4 You’ve now defined your permissions and registered them in the container and in the database so permissions can be checked. Now you’ll create a UI for users to...

Read More

Checking for Permission in JSPs

Implementing Permissions Step 4 of 4 You’ve already seen how user interface components can be wrapped in permission checks pretty easily. In this step, you’ll implement the rest. Checking...

Read More
0 (0 Votes)
Adding Messages to JSPs Previous