Book Image

Apache OFBiz Development: The Beginner's Tutorial

By : Jonathon Wong, Rupert Howell
Book Image

Apache OFBiz Development: The Beginner's Tutorial

By: Jonathon Wong, Rupert Howell

Overview of this book

<p>Apache OFBiz (Open For Business) is versatile open-source enterprise automation software that powers many small and medium sized businesses around the world. It incorporates a number of mature applications such as ERP, e-Commerce, MRP and CRM.<br /><br />Built around an MVC framework with common logic, data model and process components, Ofbiz allows existing and bespoke applications to be added through a component-based architecture. Ofbiz includes a mature suite of enterprise applications that integrate and automate a company's many business needs.<br />&nbsp;<br />This easy-to-read book will quickly enable newcomers to get hands-on with OFBiz. It provides an overview of the main modules and employs illustrated examples that show readers how to build exemplary business applications rapidly. Covering the main aspects of the Model-View-Controller framework, the reader will gain a working knowledge of Widgets, Entities, and The Service Engine. The authors also describe how to tweak OFBiz, and offer valuable performance and development tips. By navigating through the flow of OFBiz and providing insight into the thousands of examples that already exist in the core code they have made this book a must-have for anyone looking to get started with OFBiz.</p>
Table of Contents (20 chapters)
Apache OFBiz Development
Credits
About the Authors
About the Reviewers
Preface
Simple Method User's Guide

OFBiz Utilities


OFBiz contains a large number of very useful Utility classes that can be called from anywhere throughout the application, including FreeMarker templates.

Some of the most useful ones are contained in the package org.ofbiz.base.util. Some of their uses include String manipulation, validation, encryption, debugging, and date manipulation.

It is worth spending some time becoming familiar with the methods found in these classes. Very often the simple challenges we face have already been overcome by somebodyelse.

The following section is a guide to a few of the most useful and most commonly used methods from some of these Java classes.

UtilMisc

These miscellaneous utility methods are generally to aid List or Map retrieval, iteration or creation.

Map returnMap = UtilMisc.toMap("keyOne", "valueOne");

A map of up to six key value pairs can be created in this way.

List returnList = UtilMisc.toList("valueOne", "valueTwo");

Again a List of up to six values can be created in this way.

UtilValidate...