Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Liferay Beginner's Guide
Liferay Beginner's Guide

Liferay Beginner's Guide: Quick and easy techniques to build, deploy, and maintain your own Liferay portal with this book and ebook

eBook
R$49.99 R$218.99
Paperback
R$272.99
Subscription
Free Trial
Renews at R$50p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

Liferay Beginner's Guide

Chapter 1. Planning Your Portal

In this chapter, we will introduce you to the world's most popular open source portal product. You will get an overview of Liferay's architecture, features, and running environments. You will also learn to prepare the infrastructure for the installation of a Liferay Portal instance.

People use Liferay Portal to set up websites. You can see examples of Liferay Portal in action at the following sites:

By mid-2011, Liferay Portal had been deployed 250,000 times all around the world.

In this book, we will walk through Liferay's functionalities by setting up a website using Liferay Portal. You will learn how Liferay Portal works and how you can take advantage of its features.

In the following sections, we will do some preparation for that website. We will talk about the following topics:

  • Liferay Portal concepts

  • Liferay architecture

  • Pre-requisites for Liferay Portal installation

  • Liferay Portal features

Let us get familiar with our chessboard first and then place the king, queen, rooks, and other pieces, before we start the game.

What is Liferay Portal?


Liferay Portal is a Java web application. In a web application, a user types in a Uniform Resource Locator (URL) string in a browser address box and fires it. The browser sends the URL as a request to a corresponding application server and waits. The application server receives the request and processes data according to parameter values in the received URL. It sends a Hypertext Markup Language (HTML) format file to the requesting browser as a response. The browser interprets the HTML file and renders a webpage to the user. All the typical characteristics of a web application apply to the Liferay Portal.

The following is a deployment diagram for a Liferay Portal instance:

In this deployment diagram, a user accesses a Liferay Portal site with a web browser. Liferay receives the request and sends a request to the Single Sign On (SSO) server for authentication. The SSO server goes to the Lightweight Directory Access Protocol (LDAP) server to check the user's credentials. When that is successful, the SSO server tells Liferay Portal that the user is authenticated. Liferay Portal responds to the user request with a home landing page.

Note

Please note that not all Liferay Portal installations run with SSO. Some Liferay Portal installations are much simpler.

The Liferay Portal also runs portlet artifacts (please read on for an explanation of portlets). It relies on a database server to store data. It uses the mail server to send mails to the portal users. Optionally, Liferay Portal may also use other servers for additional functionalities.

Time for action – browsing sites based on Liferay Portal


The Liferay Inc. company site (http://www.liferay.com/) is based on Liferay Portal. Go to the Liferay company site and notice the Liferay logo, and the blue hue of the page, as shown in the following screenshot:

Now, go to the http://www.sesamestreet.org/ site of Sesame Street. (Turn on your speakers to get the full experience of this site)

This is a very interesting site. I want to stay at the site for a while, even though I am no longer a child! Have you seen any traits of Liferay Portal there? You may not; the design of Liferay's look-and-feel is so flexible that it can be easily customized.

What just happened?

Liferay Portal adopts an architecture that is flexible. It divides a webpage into a theme, a layout template, and portlets. The look-and-feel of Liferay Portal can be completely customized.

Definition of a portal

In our context, a portal is a web portal. A web portal refers to a website that provides a broad array of resources and services, which typically include e-mail, forum, searching, and online shopping. Yahoo! was one of the first portals.

There are also web portals for enterprise use. These portals are called enterprise portals. An enterprise portal provides content and collaboration for the employees of an enterprise. It is set up as an intranet application. Liferay Portal is often customized into an enterprise portal.

Most content at a Liferay Portal site comes from its portlets. A Liferay Portal contains portlets, as a window contains panes. A portlet is different from a pane, in that it consists of text and images.

A portlet works like a servlet. A portal URL request to the application server will invoke one or more portlets. The portlets run and produce HTML markup. Liferay Portal assembles the HTML markup into an HTML file. It returns the HTML file to the requesting browser.

Horizontal vs. vertical portals

Liferay Portal was named a leader in the Magic Quadrant for Horizontal Portals report of Gartner in 2010 (http://www.gartner.com/technology/media-products/reprints/liferay/206214.html). What is a horizontal portal? A horizontal portal covers many areas. It can be used as a platform for multiple social and collaborative purposes. It can also be used by more than one company in the same industry. Liferay Portal is a horizontal portal, because it has a collaborative suite of blogs, wiki, mail, and calendar portlets. Its message board and chat portlets can be used for social activities.

A vertical portal focuses on one functional area. It is a specialized entry point to a specific market, industry, or subject area.

Time for action – comparing Yahoo! and YouTube


Do you have a Yahoo e-mail account? Yahoo was one of the earliest portals on the Internet. Many users are still using the e-mail service provided by Yahoo.

Go to the http://www.yahoo.com/ site. You will find Mail, Autos, Dating, Finance, Games, Health, and Jobs links there. They cover various kinds of fields and industries, as is shown in the following screenshot:

Sometimes, I like watching videos on YouTube for a break. YouTube is a well-known site for videos. Now, go to the site at http://www.youtube.com/. What do you find there? You may have found Browse, Movies, video Upload links, and advertisements. You can also create an account at the YouTube site, as shown in the following screenshot:

You can do a lot of things and get a lot of services at the Yahoo site, while do every video-related thing at the YouTube site.

What just happened?

The Yahoo site is a horizontal portal. It is a platform for multiple social and collaborative purposes. The YouTube site is a specialized entry point for video fans: it is a vertical portal.

Open source vs. commercial portals

A user uses an open source portal product, free of charge. He/she can modify and extend its source code. Liferay Portal is an open source portal. It is distributed under the GNU, Lesser General Public License (LGPL) (http://www.gnu.org/copyleft/lesser.html).

Liferay Portal is available in two versions: Community Edition (CE) and Enterprise Edition (EE). A client can use its community edition, free of charge. If a client wants support from Liferay, Inc., they can buy the Enterprise Edition.

You can study the source code of an open source portal to learn portal technologies (Refer to https://github.com/liferay for the source code of Liferay Portal). A commercial portal product is more expensive than the enterprise version of an open source portal. IBM WebSphere portal and Microsoft SharePoint portal are commercial portal products.

This book is based on Liferay Portal Version 6.0. We will use this CE version to illustrate the features of Liferay Portal and set up a sample website.

Time for action – finding the source code of Liferay Portal


Liferay, Inc. hosts its community edition source code at the SourceForge site (http://sourceforge.net/projects/lportal/).

It also hosts its latest version of source code at its own site at http://www.liferay.com/downloads/liferay-portal/available-releases.

Now, paste the previously-mentioned URL in your browser address box, click on the Enter key, and take a look at those packages.

What just happened?

Every release of Liferay Portal comes with the source code. You can compile and build the portal from the source code, if you choose to do so. You can study the source code to learn how Spring and Hibernate are used. You can modify the source code and re-build the portal if you like.

Note

Please note that Liferay Portal is also bundled in popular open source servlet containers or application servers in every release. It is easier to directly install with these bundles.

These are only some of the advantages of using an open source portal product.

Pop quiz – multiple choices

Which of the following statements are true about Liferay Portal?

a. Liferay Portal is a Java web application

b. Liferay Portal was first developed for a non-profit organization

c. Liferay Portal is an open source portal product

d. All of the above

Liferay Portal architecture


The popularity of Liferay Portal largely comes from its adaptable architecture. There are three aspects to it.

Web service provider

Liferay Portal adopts a Service Oriented Architecture (SOA). Its architectural diagram is as follows:

In this diagram, Liferay Portal handles Hypertext Transfer Protocol (HTTP) requests from a user. The request will first be received by the Struts servlet. This servlet runs and renders portlets. During the process, the code invokes singletons, configured with Spring Application Programming Interface (API) and plain Java objects. It uses the Hibernate API to get data from or enter data into the database. Optionally, it may use the Java Messaging Service (JMS) to send out messages.

On the other hand, Liferay Portal also provides web services for programs running on other servers. The portal uses Apache Axis specification to generate web services. The Axis configuration is specified in the server-config.wsdd file under the portal/tunnel-web/docroot/WEB-INF/ folder. These are a list of Simple Object Access Protocol (SOAP) services. When an external program asks for a web service from the Liferay Portal, the Axis servlet in Liferay Portal will answer it. It will also call singletons initialized through Spring framework and call the plain Java objects. These plain Java objects will use Hibernate API to access the database.

Liferay is flexible

The architecture of Liferay Portal allows it to run on all major application servers and servlet containers, databases, and operating systems. It can be deployed on over 700 infrastructure combinations. For example, you can use MySQL or Oracle; you can run Liferay Portal in Tomcat or WebSphere.

You can plug in Solr for searching and Kaleo for workflow to Liferay Portal.

The portal administrator can apply different themes on different Liferay Portal pages. He can change the layout template of every portal page. By drag-and-drop, he can add portlets onto a portal page.

Liferay is standard compliant

Liferay Portal is compliant with Java and portlet standards. The following standards have been used in the development of Liferay Portal:

  • Java Specification Request (JSR) 127 (JavaServer Faces Specification)

  • JSR 168 (Portlet Specification)

  • JSR 286 (Portlet 2.0 Specification)

  • JSR 170 (Content Repository)

  • JSR 208 (Java Business Integration)

  • Asynchronous JavaScript and XML (AJAX)

  • Web Services for Remote Portlets (WSRP)

Pop quiz – multiple choices

Choose the correct statements:

a. Liferay Portal is a web service producer out-of-the-box

b. Liferay Portal adheres to Portlet 2.0 Specification

c. The development of Liferay Portal started in 2000

d. All of the above

Main Liferay Portal features


Liferay Portal has award-winning features. It's hot-deployable themes, draggable-and-droppable portlets, and fine-grained permissions system, among others, make it an optimal choice among other portal products on the market.

Theme and layout

Liferay Portal themes take care of most of the look-and-feel of a Liferay Portal application. A theme usually contains a company logo, a navigation bar, footer, Cascading Style Sheet (CSS) code, and JavaScript code. A Liferay Portal site can have multiple themes. In this way, a user with proper permissions can dynamically apply a different theme to each portal page, if he/she chooses to do so.

Liferay Portal divides a page area into smaller sections with a layout template. Liferay Portal comes with 10 layout templates. A portal administrator will drag-and-drop one or more portlets into one such smaller section.

The theme and layout template makes a Liferay Portal site flexible. It is easy to change the look-and-feel of a Liferay site with the theme and layout template.

Communities and organizations

Liferay Portal provides communities and organizations for administering users and the sites. A user can belong to communities and/or organizations.

A community is a collection of users with similar characteristics and interests. The portal administrator can create a sub-site with each community.

An organization is a hierarchical collection of users. A user can be a member of multiple organizations.

Either a community or an organization can have public and private web pages. Any user at the Liferay Portal site can access the public pages, while only a member of a community or organization can browse the private pages of his/her community and/or organization.

Content Management System and Web Content Management

Liferay Portal has rich content management features.

The content displayed at a Liferay Portal site can be dynamic or static. The dynamic content can be updated by multiple users at any time. It usually comes from data saved in database tables and is presented with custom portlets. The static content is the files uploaded through the Document library portlet and web content created with the web content portlet.

The following portlets are part of the Content Management System (CMS) of Liferay Portal:

  • Document library portlet

  • Document library display portlet

  • Image gallery portlet

The following portlets take care of Web Content Management (WCM) in Liferay Portal:

  • Web content portlet

  • Web content display portlet

  • Web content list portlet

  • Web content search portlet

The asset publisher portlet displays documents, images, blogs, wikis, message board entries, bookmarks, and web content.

Time for action – watching Liferay Portal portlets in action


The Liferay, Inc. company site is built on Liferay Portal. Now, go to http://www.liferay.com/ and find a portal page similar to the following screenshot:

What are the parts in the rectangles made of? They are all made of the web content display portlet.

What just happened?

The static content at the Liferay, Inc. site is created with the web content portlet (or web content display portlet). It is displayed with the web content display portlet.

The Liferay forum site at http://www.liferay.com/community/forums is made of the messages board portlet, while the Liferay blogs site at http://www.liferay.com/community/blogs is set up with the blogs aggregator portlet and the blogs portlet.

Pop quiz

Which of the following statements are true?

a. In a typical Liferay Portal page, a theme wraps a layout template, which in turn wraps portlets

b. Liferay Portal has powerful web content management features

c. Liferay Portal is pre-installed with more than 60 portlets

d. All of the above

Preparation for Liferay Portal installation


Liferay Portal runs on all major application servers and servlet containers. It works with all the important database servers on the market. Its requirements are minimal on hardware and software.

In this section, we will talk about the running environment for Liferay Portal. We will also install Java Development Kit (JDK), which is the infrastructure for Liferay Portal to operate. We will install MySQL database for Liferay Portal to connect to. This is the preparation for the installation of a Liferay Portal site in Chapter 2, Installing a Liferay Portal Instance.

Hardware requirements

To install Liferay Portal, you need more than 300 MB of disk space and at least 1 GB of Random Access Memory (RAM). The application server or servlet container that houses Liferay Portal runs at a port. You should make sure that other applications on your computer are not using that port.

Liferay Portal is written in Java. It runs on any computer where you can install the Java Runtime Environment (JRE) and an application server or a servlet container. It runs on computers that support either 32-bit JVM or 64-bit JVM.

Some features of Liferay Portal also need a mail server for support.

Time for action – finding RAM information


Assuming that you are using a laptop computer that runs the Windows 7 operating system, carry out the following steps to get the information about RAM:

  1. Click on the Windows icon at the bottom corner on the left-hand side.

  2. Right-click on the Computer link and then click on the Properties link.

  3. Find the RAM information, as shown in the following screenshot:

What just happened?

This machine has 4.00 gigabytes of RAM installed, of which 3.24 gigabytes are available. Because the available memory is larger than is required for running a Liferay Portal instance, we can install a Liferay Portal instance on this laptop computer.

Software requirements

Liferay Portal can be combined with multiple kinds of database servers and application servers.

As a web application, the running environment of Liferay Portal involves a browser, Java Virtual Machine (JVM), a database server, and a mail server.

Note

The Liferay Portal Tomcat bundle comes with a default database called hypersonic , which is an in-memory database. This database is good for non-production use. This means that a reader does not have to install a database server for Liferay Portal, if he/she is running Liferay Portal purely for study purposes.

Operating systems

Liferay Portal can be installed on multiple operating systems. In this book, we will install a Liferay Portal instance in a Windows operating system. The sample site is installed in a Linux operating system.

Java Development Kit

The Java Development Kit (JDK) includes code for the JVM in which Liferay Portal will run.

Let's say that your computer has the following specifications:

  • Windows XP or Windows 7

  • Processor: Intel(R) Core (TM) CPU

  • Installed memory (RAM): 2.00 GB or more

  • System type: 32-bit operating system

Time for action – installing JDK


Carry out the following procedure to install the latest version of JDK on your machine:

  1. Go to http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u26-download-400750.html and find a page with the content, as shown in the following screenshot:

  2. Click on the jdk-6u26-windows-i586.exe link. When a window pops up, click on Run.

  3. Click on Next in the next pop-up window.

  4. Accept the default installation folder and click on Next.

  5. Accept the default installation directory for JRE and click on Next.

  6. When the installation is done, click on Finish.

    Now that the JDK is installed, we set the JAVA_HOME variable and put Java commands on the path. The following is the procedure:

  7. Click on the Windows icon at the bottom corner on the left-hand side of the screen.

  8. Right-click on Computer. Click on Properties | Advanced system settings | Environment variables.

  9. Click on New in the System variables section. Define a JAVA_HOME variable and set its value to C:\Program Files\Java\jdk1.6.0_26:

  10. Edit the Path variable in the System variables section. Add %JAVA_HOME%\bin as a value in the Path variable. It should be separated from other values by a semi-colon. A sample value for the Path variable is as follows:

    %JAVA_HOME%\bin;%ANT_HOME%\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;c:\Program Files\Intel\DMIX;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;c:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\Windows Live\Shared;C:\Program Files\TortoiseSVN\bin
    
  11. Click on OK to save the settings.

  12. Open a Disk Operating System (DOS) interface. On the command line, enter java-version and press Enter.

What just happened?

The previous screenshot confirms that the JDK has been successfully installed!

Application servers and servlet containers

You can download an application server or servlet container from its website and install the Liferay Portal Web Application Archive (WAR) file and dependency Java Archive (JAR) files in it. Alternatively, if Liferay has already bundled Liferay Portal with an application server or servlet container, you can download that bundle, unzip it, and install it.

Liferay Portal supports the following application servers:

  • Apache Geronimo

  • Borland ES

  • JBoss

  • JonAs

  • Jrun

  • OracleAS

  • Orion

  • Pramati

  • RexIP

  • Sun GlassFish

  • Sun JSAS

  • WebLogic

  • WebSphere

Liferay Portal also runs in the following servlet containers:

  • Jetty

  • Resin

  • Tomcat

For every release, Liferay, Inc. installs Liferay Portal in some open source servlet containers and application servers. The resulting packages are called Liferay Portal bundles, which are ZIP files. A user can download one such bundle, unzip it, and install it. The presently-available bundles are as follows:

  • Tomcat bundle

  • Resin bundle

  • JonAs bundle

  • Jetty bundle

  • JBoss bundle

  • Sun Glassfish bundle

  • Apache Geronimo bundle

Database servers

We can connect Liferay Portal to the following database servers:

  • Apache Derby

  • IBM DB2

  • Firebird

  • Hypersonic

  • Informix

  • InterBase

  • JdataStore

  • MySQL

  • Oracle

  • PostgreSQL

  • SAP

  • SQL Server

  • Sybase

In this book, and at the sample site, we will run Liferay Portal with MySQL database. MySQL is the world's most popular open source database. The current version of Liferay Portal requires MySQL version 5.0 or above.

Time for action – installing MySQL database server


If you have not already installed the MySQL database, follow these steps to install the latest version of MySQL Community Server on your computer:

  1. Go to http://dev.mysql.com/downloads/ to download the MySQL database installation package. You will find the page similar to the following screenshot:

  2. Download a mysql-5.5.14-win32.msi file to a local directory. That file is Microsoft Installer (MSI) for MySQL database server.

  3. Double-click on the mysql-5.5.14-win32.msi file. A window pops up. Click on Run.

  4. Click on Next. Check the I accept the terms in the License Agreement and click on Next.

  5. For the setup type, choose Custom and click on Next.

  6. For the installation folder, browse to C:\mysql and click on Next:

  7. Click on Next. Click on Install.

  8. When the installation is done, leave Launch the MySQL Instance Configuration Wizard checked and click on Finish.

  9. Click on Next to configure the MySQL server.

  10. Select Standard Configuration and click on Next.

  11. Input the root password and click on Next.

  12. Click on Execute to perform configuration.

  13. When the configuration is done, click on Finish.

  14. Add C:\mysql\bin as a value in the Path system variable, as we did for Java.

  15. In a DOS window, type mysql –uroot –p on the command line. Press Enter.

What just happened?

The previous screenshot confirms that the MySQL database server has been installed successfully.

Web browser

You can use Firefox (3.0 and above), Internet Explorer (IE) (7.0 and above), Chrome, Safari, and Opera to browse a Liferay Portal site.

The ability of a web browser to access a website depends on the user interface (UI) technologies used in the development of that website. Because Liferay Portal is highly customizable, you may be able to interact with a customized Liferay Portal site with more varieties of browsers on the market.

A Liferay Portal theme decides most of the look-and-feel of a Liferay Portal site. In almost all situations, a client will develop a custom theme for their site. The user interface technologies that they use for their custom theme decide the accessibility of their site.

Liferay 6.0 CE uses Alloy user interface (Alloy UI). Alloy UI has combined the following technologies:

  • Hyper Text Markup Language 5 (HTML5)

  • Cascading Style Sheets Level 3 (CSS3)

  • Yahoo! User Interface Version 3 (YUI3)

HTML 5 defines the HTML elements in a webpage. It is used for the structure of a portal page. CSS3 is used to add styles to document object models (DOM). YUI3, which includes JavaScript API, is used to make the HTML elements dynamic.

HTML 5 is the latest revision of the HTML standard. HTML 5 is still a work in progress. However, Safari, Chrome, Firefox, and Opera already support some of its features in their latest versions. IE 9 will also be available to support some HTML 5 features.

Liferay Portal has a feature to support browsing in iPad and smart phones in its 6.1 CE version. This is achieved by detecting the screen layout of the device with JavaScript code. When the computer screen layout is 960px wide, Liferay Portal knows that it is a desktop computer or iPad in landscape mode; when the screen layout is 320px wide, Liferay Portal knows it is a smart phone in portrait mode. Liferay Portal will apply a corresponding Cascading Style Sheet (CSS) class, and thus adjust the dimensions of an image and other content on the portal page.

Installing OpenOffice

Liferay Portal has a feature to convert web content, wiki articles, and message board content into PDF files and files of other formats. This feature relies on the integration of the OpenOffice application. OpenOffice is an open source office software that consists of a word processor, a spreadsheet program, a drawing tool, and a math program.

Time for action – installing OpenOffice


We install OpenOffice on our computer by carrying out the following steps:

  1. Go to http://www.openoffice.org/ and download the latest version of OpenOffice.org for Windows.

  2. Save the OOo_${VERSION}_Win_x86_install-wJRE_en-US.exe file in a chosen folder.

  3. Double-click on the OOo_${VERSION}_Win_x86_install-wJRE_en-US.exe filename; this triggers the installation process.

  4. Click on Next, when you see the following pop-up window:

  5. Accept the default folder for unpacking and click on Unpack.

  6. Wait for the unpacking process to proceed.

  7. Click on Next when a new installation window shows.

  8. Input username and organization and click on Next.

  9. Use the Typical setup type and click on Next.

  10. Click on Install.

  11. Click on Finish, when the installation wizard is completed.

What just happened?

Congratulations! You have successfully installed OpenOffice on your computer!

Liferay Portal depends on a service provided by OpenOffice to convert files.

Time for action – starting OpenOffice service


To start the OpenOffice service, do the following:

  1. Enter DOS mode.

  2. Go to the C:\Program Files\OpenOffice.org 3\program directory; this is where OpenOffice is installed by default.

  3. Run the following command:

    soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard

A screenshot of the DOS window is as follows:

What just happened?

The previous command means that OpenOffice has started a service with the headless option. Now, this service will accept a request at port 8100. It is waiting for the request from a server, whose Internet Protocol (IP) address is 127.0.0.1, which means the local host.

We can check to see how the OpenOffice service is running.

Time for action – checking the OpenOffice service


To confirm that the OpenOffice service is running, perform the following steps:

  1. Right-click the Windows task bar.

  2. Click on Start Task Manager, and you will find a window similar to the following screenshot:

  3. You can see that the OpenOffice service is shown in the list of running processes in Windows.

  4. In the DOS window, run the netstat -anptcp command, which will show the network activities on the computer. The DOS window will show content similar to the following screenshot:

What just happened?

As you can see, a service is listening at port 8100 for a request from 127.0.0.1.

If you reboot your computer, this service will be stopped and gone, because you started it manually. So, a better choice is to set up this service as a Windows service, which will be started whenever your machine is rebooted.

Archive tools

You may install Liferay Portal in a bundle, such as liferay-portal-tomcat-${version}.zip , on your computer. If it is a Linux machine, you can run the unzip liferay-portal-tomcat-${version}.zip command to extract the files. On a Windows machine, an unzip tool may be already available, or you can download WinRAR at http://download.cnet.com/WinRAR-32-bit/3000-2250_4-10007677.html and install it to explode the ZIP file.

Pop quiz

Which of the following statements about the installation environment for Liferay Portal are true?

a. Liferay Portal can be installed on a laptop computer

b. Liferay Portal comes with a hypersonic in-memory database

c. Liferay Portal depends on Java Virtual Machine

d. All of the above

Summary


In this chapter, we have learned what Liferay Portal is. We now know the following facts about Liferay Portal:

  • Liferay Portal is a Java web application

  • Liferay Portal is a horizontal portal

  • Liferay Portal has award-winning features

In addition, we have talked about the environment for Liferay Portal to run, including hardware and software. We have also installed JDK, MySQL database server, and the OpenOffice application.

Now that the infrastructure is set, we are ready to install a Liferay Portal instance on our computer, which is the topic of Chapter 2,Installing a Liferay Portal Instance.

Left arrow icon Right arrow icon

What you will learn

  • Set up and run Liferay portal in an application server of your choice and configure with MySQL Database Apply a theme to portal pages and change their layouts Create communities, organizations and User groups Add users, create portal pages and apply permissions Create web content and publish content on portal pages Build community pages using out of box and custom portlets Set up social collaboration applications in the portal Configure and run an online store
Estimated delivery fee Deliver to Brazil

Standard delivery 10 - 13 business days

R$63.95

Premium delivery 3 - 6 business days

R$203.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Dec 01, 2011
Length: 396 pages
Edition :
Language : English
ISBN-13 : 9781849517003
Languages :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Brazil

Standard delivery 10 - 13 business days

R$63.95

Premium delivery 3 - 6 business days

R$203.95
(Includes tracking information)

Product Details

Publication date : Dec 01, 2011
Length: 396 pages
Edition :
Language : English
ISBN-13 : 9781849517003
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
R$50 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
R$500 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just R$25 each
Feature tick icon Exclusive print discounts
R$800 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just R$25 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total R$ 640.98
Liferay Portal Systems Development
R$367.99
Liferay Beginner's Guide
R$272.99
Total R$ 640.98 Stars icon
Banner background image

Table of Contents

10 Chapters
Planning Your Portal Chevron down icon Chevron up icon
Installing a Liferay Portal Instance Chevron down icon Chevron up icon
Understanding Portal Basics and Theming Chevron down icon Chevron up icon
Tips and Tricks-Advanced Configuration Chevron down icon Chevron up icon
Building your First Liferay Site Chevron down icon Chevron up icon
Managing Pages, Users, and Permissions Chevron down icon Chevron up icon
Creating and Publishing Content Chevron down icon Chevron up icon
Exploring Communities Chevron down icon Chevron up icon
Setting up an Online Shop Chevron down icon Chevron up icon
Liferay Server Administration Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.8
(5 Ratings)
5 star 20%
4 star 40%
3 star 40%
2 star 0%
1 star 0%
Marc-Andre Rost Oct 02, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
das buchcover stellt den wahrheitsgemäßen inhalt dar. es ist ein buch für den absoluten anfänger, schnell merkt man aber das man mehr informationen zu diesem thema benötigt
Amazon Verified review Amazon
B. Carson Apr 11, 2012
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
I've been working with Liferay 6.1 for about 3 months now and bought this book in the hopes that it would help me understand how to better administer our company's new Liferay portal. While not perfect, it has DEFINITELY helped to fill in many of the knowledge gaps I have in my self-directed learning. I wouldn't let the fact that this book is designed for 6.0 throw off anyone that is working on 6.1. The biggest relevant changes are the placement of some of the icon and menu options and Liferay now uses the word 'Site' instead of 'Community'.Given that I've been working with the portal for a few months, I was able to follow along with the book from cover-to-cover without much issue.I did skip some chapters, mostly the server install & setup chapters in the beginning(already done that), and the shopping portlet & social networking chapters that appear in the end(don't need those features).The chapter on users and permissions was very helpful. I have a much better understanding of how I need to organize our users within our portal.The main criticism I have about this book would be Chapter 7. Kind of an important chapter (Creating and Publishing Content) and whomever wrote was not really in sync with the other authors. It references pages, files, and images that haven't been created. Additionally, there are no files for this chapter in the supplementary book download from packtpub.com either. I couldn't create the content the author intended even if I tried to guess what he/she meant.The rest of the book is readable and should be able to be easily followed by anyone familiar with Liferay 6.0 or 6.1.In summation, good book for liferay 6.x beginner, but buy it at the Kindle price.
Amazon Verified review Amazon
PETER J TOWNSEND Nov 30, 2012
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
As a newcomer to Liferay I am finding this book useful in familiarizing me with the platforms features and capabilities. Would recommend it.
Amazon Verified review Amazon
Ranx0r0x Feb 17, 2012
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
This book isn't bad, per se, and it is fairly clear to read. The problem is that it covers the 6.0 version and not the 6.1 version. That isn't as minor a difference as a "dot" release number would indicate. There are some significant shuffling around of structures between the two versions. Really, the 6.1 version should be the 7.0 version
Amazon Verified review Amazon
Amazon Customer May 02, 2017
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
Some practical scenario not mentioned properly
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela