Professional Documents
Culture Documents
Liferay Overview - Intalio Conf
Liferay Overview - Intalio Conf
Overview
Presenter: Joseph Shum
Liferay Portal is the world's leading open source enterprise portal solution using the latest in Java and Web 2.0 technologies.
Created in 2000 and open sourced in 2002 First portal to introduce Web OS First portal to deploy AJAX enabled user interfaces Members of the JSR 286 (Portlet Specification) & JSR 314 (Java ServerFaces Specifications) Committees
Active Community
Liferay Portal is the world's leading open source enterprise portal solution using the latest in Java and Web 2.0 technologies. Ready to go
Built in Content Management System (CMS) and Collaboration Suite Out-of-the-box usablilitychoose from over 60 portlets and over 20 themes Out-of-the-box development tools Out-of-the-box support for 22 languages Runs on all major application servers, databases and operating systems (over 700 deployment configurations) Business-friendly MIT License
Liferay Portal is the world's leading open source enterprise portal solution using the latest in Java and Web 2.0 technologies. Easy to use
Award-winning AJAX-enabled user interface (e.g. Web OS) Community-centric services for easy creation of extranets, intranets, and social networks Familiar desktop UI and conventions Delegable granular security and role based authorizations
Liferay Portal is the world's leading open source enterprise portal solution using the latest in Java and Web 2.0 technologies. Technically sound
Service Oriented Architecture (SOA) with web services support LDAP support and integration Portal as a Platform services for rapid portal development and deployment Secure enterprise application integration framework Ready integration:
Pentaho Intalio Terracotta ICEfaces jQuery Business Intelligence Business Process Management Scalability and high availability Rich Internet applications Dynamic user experiences
Active Community
Over 1 Million downloads & over 60,000 downloads per month Over 5800 registered community participants Over 50 active community contributors
Active Community
Liferay Portal is the most widely downloaded, Open Source Portal in the world.
of downloads Liferay
Portal
33%
date
Product Detail
Application Servers Databases Operating Systems
Liferay Portal supports ALL major app servers, databases, and operating systems, with over 700 deployment configurations.
Technologies Used
Apache ServiceMix, Ehcache, Hibernate, Java J2EE/JEE, jBPM, jQuery, ICEfaces JavaScript Framework, Lucene, MuleSource ESB, PHP, Ruby, Seam, Spring Framework & AOP, Struts & Tiles, Tapestry, Velocity
Standards
JSR-286,
JSR-127, JSR-170 Seats on the JSR-286 (Portlet 2.0) and JSF-314 (JSF 2.0) committees AJAX, iCalendar & Microformats, WebDAV OpenSearch, Open platform with support for web services including: JSON, Hessian, Burlap, REST, RMI, WSRP Liferay Portal supports I18N for any language, out-of-the-box, and ships with default translations for 22 languages. Additional languages can be added very easily. Arabic, Catalan (Spain), Chinese (Simplified), Chinese (Traditional), Czech, Dutch, English (US), Finnish, French, German, Greek, Hungarian, Italian, Japanese, Korean, Persian, Portuguese, Russian, Spanish, Swedish, Turkish, Vietnamese
Languages
Out-of-the-Box
Collaboration
Liferay Portal
Intalio Conference
Presentation Outline
What is Liferay Portal? What are the JSR 168 and JSR 286 specs and why do we need them? What does Liferay Portal add on top of the spec implementation? Liferay Portal features
What is a portlet? Portal/Portlet Lifecycle Portlet Mode, Window State, Preferences Portlet development
Liferay Portal is the world's leading open source enterprise portal solution using the latest in Java and Web 2.0 technologies. Runs on all major application servers & servlet containers, databases, and operating systems with over 700 deployment combinations JSR 168 and JSR 286 compliant Out-of-the-box usability with over 60 portlets pre-bundled Built-in Content Management System (CMS) Built-in Collaboration suite Personalized pages for all users
Hot-Deployable Theme/Portlet Architecture with Online Software Catalog Freeform / WebOS layout Just-in-time Portlet rendering Fine-grained permissions system
JSR 168 and JSR 286 are Portlet Specifications They were created out of a need to have a specification for displaying multiple applications on the same page. The specs define the lifecycle of a portlet as well as its characteristics/look and feel. They standardize the way portlets are developed.
Pages
Organizations
Organizational Roles
Pages
Communities
Community Roles
What is a portlet?
A portlet is a web component that processes requests and generates dynamic content. The content generated by a portlet is also called a fragment (e.g. HTML, XHTML, WML) and can be aggregated with other fragments to form a complete document.
What is a portlet?
Portlet Lifecycle
Portlets are different from servlets in that they have a 2 phase commit. With servlets, the service() method processes all requests. With portlets, the processAction() method processes the requests and the render() method draws the contents of the portlet on the page.
Portlet Lifecycle
Portlet Lifecycle
serveResource() Allows a portlet to serve a resource The serveResource() method can be used to implement AJAX use cases.
Liferay Implementation
Portlet Characteristics
Portlets have additional characteristics that make them different from Servlets Portlet Modes Window States Portlet Preferences
Portlet Modes
Each portlet has a current mode, which indicates the function the portlet is performing. All JSR 168 compliant portals should support the View, Edit and Help modes.
Window States
Window states indicate the amount of portal page space that will be assigned to a portlet. All spec compliant portals should support the minimized, maximized and normal window states.
Portlet Preferences
Portlets can be configured to provide a custom view or behavior for different users. For example, a weather portlet can show the temperature in Chicago for one user and the temperature in LA for another user. These configurations are represented as a persistent set of name-value pairs and are referred to as portlet preferences.
Overview recommended best practices for developing portlets and extending Liferay Portal's functionality. Understand the compromises involved in each of the methods. Evaluate how to combine the different methods for the needs of your organization.
Types: Portlets, Themes, Layout Templates Developed as independent software components Distributed and deployed as WAR files Can be organized in plugin repositories Liferay provides the Plugins SDK to help with development of plugins.
Allows management of: Configuration files Custom source code Custom JSPs Modified JSPs
Allows management of: Configuration files Custom source code Custom JSPs Modified JSPs
portal(-ext).properties Main configuration options: deployment, themes, hibernate, cache, instance settings, users, groups, language, session, auth, integration, events, ...
system(-ext).properties Convenient way to provide and extend the Java System properties used by Liferay
The extension points or hooks allow creating custom classes for the most common extensibility needs Configurable through portal.properties Examples: Authentication chain, Upgrade and verification processes, Deployment processes, Database access and caching, User fields generation and validation, session events, permissions, model listeners, ext-spring.xml.
Liferay Portal is distributed with Source Code under the business friendly MIT license. Recommended method: Sponsored Development Alternative: Develop for project and contribute back
Plugins
The Plugins SDK is a simple environment for the development of Liferay plugins. Portlet, theme and layout development used to take place in the ext environment. The ext environment no longer supports portlet and theme development, except for struts portlets and modifying/extending Liferays out-of-the-box portlets. The Plugins SDK is to be used instead to create hot-deployable portlets, themes and layouts.
Plugins
The
Plugins SDK is a simple environment for the development of Liferay plugins. theme and layout development used portlets, themes and layouts.
Portlet,
Plugins
The
Plugins
The
Plugins
The
Plugins
Portlets can make use of any application framework that Liferay supports Struts JSF Spring Tapestry Flex
Plugins
Portlets
Flex
Extension
The Extension Environment allows for complete customization of Liferay. Internal portlets can be modified. Liferay's .jsp pages can be changed. Customizations are kept separate from the Liferay source. The Liferay source code does not have to be modified.
Extension
Developers have a clear upgrade path. The combination of the MIT license and the extension environment means that organization-specific customizations do not need to be contributed back to the Liferay project.
Extension
Extension
Extension
The
Extension
Extension
Portal Architecture