Book Image

Liferay Portal Enterprise Intranets

By : Jonas X. Yuan
Book Image

Liferay Portal Enterprise Intranets

By: Jonas X. Yuan

Overview of this book

<p>Liferay Portal is the world's leading open-source portal platform built on Java and Web 2.0 technologies. Corporations use it to provide a unified web interface to data and tools scattered across many sources. <br />Liferay Portal uses the latest in Java, J2EE, and Web 2.0 technologies to deliver solutions for enterprises across both public and private sectors. Liferay Portal's flexibility allows it to be deployed in a number of different scenarios to meet key business needs. Some of the key business benefits are:</p> <ul> <li>A rich, friendly, intuitive, and collaborative end-user experience</li> <li>A single point of access to all information</li> <li>High adaptability to the demands of fast changing markets</li> <li>Highest value</li> <li>Lowest costs</li> </ul> <p>This book is a complete guide to building an intranet with Liferay (version 4.4)&mdash;assess your needs, install the software, start using it, deploy portlets, customize it per your requirements, and train users. The book focuses on leveraging the Liferay framework by configuring the XML files, without changing the underlying Java code. Each chapter gives practical guidance on how to install, use, and customize Liferay. There are many step-by-step examples for better understanding.</p>
Table of Contents (19 chapters)
Liferay Portal Enterprise Intranets
Credits
About the Author
About the Reviewer
Preface
Index

Preface

When you plan to build an amazing website based on a portal, you may commonly consider a lot of questions. Some of them would look like the following:

  • Are you planning to build a website with an open source enterprise portal solution using SOA framework, ESB and Web 2.0 technologies?

  • Do you want to add collaborative tools, such as Wikis, Blogs, Discussion Forums, Shared Calendar, RSS, mail, Tagging, and instant messaging in the same website?

  • Do you want to manage, publish and maintain web contents and documents in the same website?

  • Are you eager to integrate with LDAP, SSO and third-party systems like JBoss jBPM, Alfresco, Orbeon Forms, and Pentaho BI/Reporting in the same website?

Obviously Liferay would be the best choice in terms of answering the above questions. Liferay Portal is one of the most mature portal frameworks in the market and offers the above basic benefits. Liferay is backed by a comprehensive professional services network and it offers custom development, training, and support across the world.

As the world’s leading open source portal platform, Liferay provides a unified web interface to data and tools scattered across many sources. Within Liferay portal, a portal interface is composed of a number of portlets—self contained interactive elements that are written to a particular standard. Since portlets are developed independently of the portal itself, and loosely coupled with the portal, they are apparently SOA (Service-Oriented Architecture).

Liferay has a wide range of portlets freely available for things like: Blogs, Calendar, Document Library, Image Gallery, Mail, Message Boards, Polls, RSS feeds, Wiki, and many others. Liferay Portal also ships with Liferay Journal CMS (Content Management Systems), which provides basic ECMS (Enterprise Content Management Systems) features. If you need robust enterprise content management system then you can integrate it with Alfresco. Liferay is good portal on top for small team collaboration. The data for events can be specific to a small group within a company. In any organization, some data will be relevant at a team level—and other data, across the whole business. Liferay has very good support for such things.

As the world’s leading open source enterprise portal solution, Liferay portal uses the latest in Java, J2EE, and Web 2.0 technologies in order to deliver solutions to enterprises across both public and private sectors. Meanwhile, Journal CMS publishes, manages, and maintains web content and document libraries. In addition, Collaboration Suite takes advantage of the benefits of virtualized work environment for collaboration.

This book is your complete guide to build an intranet with Liferay—assess your needs, install the software, start using it, deploy portlets, customize as per your requirements and train users. The book focuses on leveraging the Liferay framework by configuring the XML files without changing the underlying java code.

What This Book Covers

Chapter 1 introduces Liferay.

Chapter 2 discusses how to set up the home page and navigate the structure of the intranet.

Chapter 3 investigates security and access model. It describes how to bring to users in the portal: application of full access control security model; administration of users, user groups, organizations and locations; authentication of Liferay portals, and moreover, usage of security permissions and roles.

Chapter 4 describes discussion Forums. Message Board (discussion Forum) provides support for sticky posts, statistics, recent posts, RSS, email-based subscriptions, avatars, threads management, and full fine-grained permissions. Tagging system provides support to tag web content, documents, Message Board threads and more, and dynamically publish content by tags.

Chapter 5 describes Wikis. Liferay Wiki is a straightforward Wiki solution with categories; classic Wiki, HTML, or plain text modes; WYSIWYG editing; page history and versioning; and permissions. Moreover, the Web Form portlet allows a web administrator to define a form to be published in the website; the Polls portlet allows users or administrators to create multiple choice polls that keep track of votes and display results on the page.

Chapter 6 describes Internal Bloggings. Blogs provide features including RSS support, user and guest comments, brows-able categories, tags and labels, and an entry rating system; RSS portlet has subscription ability to frequently read RSS feeds from within the portal framework. Furthermore, WYSIWGs (What You See Is What You Get editors) edit web content, including Blogs’ content.

Chapter 7 introduces Shared Calendars. A calendar portlet provides the ability to display calendar information and to allow users to create, manage, and search for events. Workflow portlet provides the ability to manage instances and tasks, and furthermore, integrate with users, groups and roles. In addition, WSRP proxy portlet, IFrame portlet and Flash portlet are also included as well.

Chapter 8 investigates documents repositories. It does not only introduce document library, images gallery and content management including articles, templates and structure, but it also discusses content publication.

Chapter 9 presents chat and instant messaging. It first introduces chat portlet and its related features, such as AJAX and XMPP servers. Then it introduces mail portlet and its related features, such as IMAP. Finally, it briefly introduces SMS and the usage of SMS text messenger—sending SMS text messages.

Chapter 10 discusses others tools which would be useful to build a personalized web site.

Chapter 11 presents how to roll out to other teams. It principally introduces community administration, community virtual hosting, portal publishing and staging and a set of community tools.

Chapter 12 introduces search functionalities: OpenSearch, Journal content search, sitemaps protocol, Google search and Google maps.

Chapter 13 concludes the book. It mainly describes ongoing admin tasks, including admin portlet, enterprise admin portlet, managing password policies, updating the system–level settings, and monitoring users’ activities, and full integration approach to Liferay, Alfresco, LDAP and SSO.

What You Need for This Book

This book uses Liferay portal version 4.4 and 5.0. with the following settings:

  • MySQL database 5.0

  • Java SE 6.0

  • Liferay portal bundled with Tomcat 6.0

Optionally, you can also work in both Windows and Linux with the following settings:

  • Java SE 5.0

  • Liferay portal bundled with Tomcat 5.5

  • MySQL database 5.0

You can use one of the following options for Servlet containers and full Java EE application servers to install Liferay Portal:

  • Geronimo + Tomcat

  • Glassfish for AIX

  • Glassfish for Linux

  • Glassfish for OSX

  • Glassfish for Solaris

  • Glassfish for Solaris (x86)

  • Glassfish for Windows

  • JBoss + Jetty 4.0

  • JBoss + Tomcat 4.0

  • JBoss + Tomcat 4.2

  • Jetty

  • JOnAS + Jetty

  • JOnAS + Tomcat

  • Pramati

  • Resin

  • Tomcat 5.5 for JDK 1.4

  • Tomcat 5.5 for JDK 5.0

  • Tomcat 6.0

The applications servers (or Servlet containers) that Liferay Portal can run on include:

  • Borland ES 6.5

  • Apache Geronimo 2.x

  • Sun GlassFish 2 UR1

  • JBoss 4.0.x, 4.2.x

  • JOnAS 4.8.x

  • JRun 4 Updater 3

  • OracleAS 10.1.3.x

  • Orion 2.0.7

  • Pramati 5.0

  • RexIP 2.5

  • SUN JSAS 9.1

  • WebLogic 8.1 SP4, 9.2, 10

  • WebSphere 5.1, 6.0.x, 6.1.x

  • Jetty 5.1.10

  • Resin 3.0.19

  • Tomcat 5.0.x/5.5.x/6.0.x

Databases that Liferay portal can run on include:

  • Apache Derby

  • IBM DB2

  • Firebird

  • Hypersonic

  • Informix

  • InterBase

  • JDataStore

  • MySQL

  • Oracle

  • PostgresSQL

  • SAP

  • SQL Server

  • Sybase

Operating systems that Liferay portal can run on include:

  • LINUX (Debian, RedHat, SUSE, Ubuntu, and so on)

  • UNIX (AIX, FreeBSD, HP-UX, OS X, Solaris, and so)

  • WINDOWS

  • MAC OS X

Who is This Book for

This book is for beginners to Liferay and “Do-It-Yourselfers” who want to develop a simple but powerful corporate Intranet. The book assumes technical confidence but does not require specialist administrator or developer skills.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: “We can include other contexts through the use of the include directive.”

A block of code will be set as follows:

<swimlane name="user_admin">
    <assignment class="com.liferay.jbpm.handler.
Identity Assignment Handler"
                                  config-type="field">
      <type>role</type>
      <companyId>liferay.com</companyId>
      <id>1001</id>

New terms and important words are introduced in a bold-type font. Words that you see on the screen, in menus or dialog boxes for example, appear in our text like this: “clicking the Next button moves you to the next screen”.

Note

Important notes appear in a box like this.

Note

Tips and tricks appear like this.

Reader Feedback

Feedback from our readers is always welcome. Let us know what you think about this book, what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply drop an email to , making sure to mention the book title in the subject of your message.

If there is a book that you need and would like to see us publish, please send us a note in the SUGGEST A TITLE form on www.packtpub.com or email .

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer Support

Now that you are the proud owner of a PACKT book, we have a number of things to help you to get the most from your purchase.

Downloading the Example Code for the Book

Visit http://www.packtpub.com/files/code/2721_Code.zip to directly download the example code.

The downloadable files contain instructions on how to use them.

Errata

Although we have taken every care to ensure the accuracy of our contents, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in text or code—we would be grateful if you would report this to us. By doing this you can save other readers from frustration, and help to improve subsequent versions of this book. If you find any errata, report them by visiting http://www.packtpub.com/ support, selecting your book, clicking on the Submit Errata link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata are added to the list of existing errata. The existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Questions

You can contact us at if you are having a problem with some aspect of the book, and we will do our best to address it.