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.

Ready to start?

Let’s Go!

Configuring Your Permissions Scheme

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

Permissions in the Service Layer

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

Creating Permissions Helper Classes

Implementing Permissions Step 3 of 4 You’ve now defined your permissions and made sure resources are added to the database so permissions can be checked. Now you’ll create the helper classes needed...

Read More

Permissions in JSPs

Implementing Permissions Step 4 of 4 User interface components can be wrapped in permission checks pretty easily. In this step, you’ll learn how. First go to the init.jsp in your guestbook-web...

Read More
0 (0 Votes)
Creating a User Interface Previous