Business Logic with Service Builder

Once you’ve defined your application’s entities and ran Service Builder to generate your service and persistence layers, you can begin adding business logic. Each entity generated by Service Builder contains a model implementation, local service implementation, and optionally a remote service implementation class. Your application’s business logic can be implemented in these classes. The generated service layer contains default methods for CRUD operations, but often times it’s necessary to implement additional methods. Once you’ve added your business logic, running Service Builder again regenerates your application’s interfaces and makes your new logic available for invocation.

In this section of tutorials, you’ll learn about creating and invoking your application’s local services, finding and invoking Liferay’s services, and customizing Liferay services.

Creating Local Services

The heart of your service is its *LocalServiceImpl class. This class is your entity’s local service extension point. Local services can be invoked within your application or by other Liferay...

Read More

Invoking Local Services

In this tutorial, you’ll learn about the differences between local and remote services, and when you should invoke local services rather than their remote service counterparts. Once Service Builder...

Read More

Finding and Invoking Liferay Services

In this tutorial, you’ll learn how to search for portal services and portlet services. You can find Liferay’s services by searching for them in the Javadocs:...

Read More
0 (0 Votes)
Connecting Service Builder to External Data Sources Previous