concept Liferay permission in category liferay

appears as: Liferay permissions
Liferay in Action: The Official Guide to Liferay Portal Development

This is an excerpt from Manning's book Liferay in Action: The Official Guide to Liferay Portal Development.

Listing 4.11. Defining Liferay permissions

In addition to the MVC portlet itself, Liferay offers a wide range of utilities to assist the developer. The Validator class assists you in performing field validation for forms. AlloyUI tag libraries help you create good-looking, dynamic forms complete with CSS styling and autogenerated JavaScript widgets. Data tables are easy with the search container. Liferay also provides a way to automatically translate language bundles so they can support multiple languages easily. And finally, Liferay permissions are easy to integrate into any application by configuring those permissions in an XML file, which Liferay then reads in order to integrate its full permissions UI with your application.

To configure your portlet to use Liferay permissions, you don’t have to write any code. The only code you’ll ever write with regard to permissions is simple if statements to check permissions. You enable permissions in a portlet by creating two files: portlet.properties and a permissions XML file.