Liferay Portal’s data can be retrieved using its APIs. It’s important, however, to understand how data is used amid all of Liferay Portal’s constructs. At a basic level, all the data is represented by an object model. This is retrieved from the database and automatically mapped from SQL to the model by Service Builder. Using Model Listeners, you can listen for events on these models and take action when they are stored or retrieved.

All data in Liferay Portal is scoped to a context: a site, a page, or global. When storing data in your application, you should therefore take advantage of scope so your application integrates well with the system and users can add your application in whatever scope they need it.

Read on to learn how to do both of these things.

Data Scopes

Apps in Liferay Portal can restrict their data to specific scopes. Scopes provide a context for the application’s data. For example, a site-scoped app can display its data across a single site. For...

Read More
0 (0 Votes)
Business Logic with Service Builder Previous