Book Image

Liferay Portal Systems Development

Book Image

Liferay Portal Systems Development

Overview of this book

Liferay portal is one of the most mature portal frameworks in the market, offering many key business benefits that involve personalization, customization, content management systems, web content management, collaboration, social networking and workflow. If you are a Java developer who wants to build custom web sites and WAP sites using Liferay portal, this book is all you need. Liferay Portal Systems Development shows Java developers how to use Liferay kernel 6.1 and above as a framework to develop custom web and WAP systems which will help you to maximize your productivity gains. Get ready for a rich, friendly, intuitive, and collaborative end-user experience! The clear, practical examples in the sample application that runs throughout this book will enable professional Java developers to build custom web sites, portals, and mobile applications using Liferay portal as a framework. You will learn how to make all of your organization's data and web content easily accessible by customizing Liferay into a single point of access. The book will also show you how to improve your inter-company communication by enhancing your web and WAP sites to easily share content with colleagues.
Table of Contents (17 chapters)
Liferay Portal Systems Development
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface

Rebuilding services


Service-Builder provides the ability to build services and models automatically. However, there are a few scenarios where you need to rebuild services against service.xml. The following is a list of possible use cases:

  • Use case 1: Change package-path to a different value such as com.bookpub.knowledgebase and / or change name-space to another value such as KBM

  • Use case 2: Change the entity name to a different value such as KBArticle

  • Use case 3: Update the columns, finders, orders, relationship, references, and exceptions

  • Use case 4: Update signatures (and add new methods) in local-service-impl and / or finder-impl and / or update constraint hint in portlet-model-hints.xml

  • Use case 5: Use other databases in plugins

In use cases 1 and 2, you should clean up the database and plugin source code and rebuild the services. In use cases 3 and 4, you could simply run the Ant target build-service. In use case 5, you have to use a database other than the default portal database.

What...