Showing posts with label LifeRay. Show all posts
Showing posts with label LifeRay. Show all posts

Saturday, June 19, 2010

Sun Software Product Map - Part II


Sun Java System Portal Server

Sun Java System Portal Server is completed discontinued. 

Sun Portal Server brings me very good memory. This is the very first product we deployed in Philippines when we become Sun Partner 6 years back. Subsequently, we deployed many more instances. It's selling well in Philippines. 


In Singapore, we still have a few Sun Portal Servers running. I deployed 2 instances in S'pore and am currently supporting one of them. 

Goodbye, my dear friend. 






Sun Java System Web Server

Sun Java System Web Server and Web Proxy Server have been rebranded to Oracle iPlanet Web Server and Oracle iPlanet Web Proxy Server.

Welcome back, iPlanet! History of iPlanet here.

iPlanet has come a long way ...

iPlanet ... Sun ONE ... Java Enterprise System ... Sun Java System ... iPlanet



Sun Java System Identity Manager

Sun Java System Identity Manager is now Oracle Waveset. (Waveset IdM was bought over by Sun)

Oracle is keen on pushing it's own Oracle Identity Manager. Thus there is no choice but to discard Sun Identity Manager. Sun Role Manager (bought over from Vaau), which was supposed to be integrated with Sun Identity Manager, is now rebranded as Oracle Identity Analytics. Most likely it will be used to integrate/complement Oracle Identity Manager.

Unlike Sun Portal Server, Oracle Waveset is kept. I can only guess that we have a few local banks currently using it. A huge ministry has just awarded a tender and the key component is Oracle Waveset.

In the Asia region, a few Thai banks are also customers of Oracle Waveset to my knowledge.


.

Thursday, June 10, 2010

jQuery should be easy to implement

The social-network-driven portal based on LifeRay is still under development. (Read here and here)

LifeRay uses jQuery intensively. I was tidying up the Contact Us page yesterday. This page is a static HTML page and has nothing to do with LifeRay.




But in the pursuit for consistent look-and-feel, I decided that validation of the form and display of success/error messages should be the same as what one will experience when he logs into LifeRay portal. So jQuery is the way to go!


The Contact Us form is so simple, yet it took me a long while to make it work using jQuery.





Maybe I'm too old for new technology. Ha! :) I could not find a good example on the web of the 2 things I want to achieve. 

The 2 things are so simple, mind you. 
1. Validate fields once "Submit" button is clicked
2. If the fields are valid, perform a form submission

Difficult? 

I struggled for quite some time and finally found the solution.


The codes below should be good enough for 80% of JavaScript developers and should be able to digest and implement in 5 mins. 


1. jQuery Scripts Download
  • Download the latest copy of jQuery from here. (rename the script as jquery-latest.js)
  • Download the latest copy of  jQuery plugin: Validation from here. (rename the script as jquery.validate.js)

2. Insert the following script between the head HTML tags



That's it. Done!


Do you need to write special code in the form section for jQuery to kick into effect? No.

Take a look at my form. There is no reference to jQuery at all.



The following is what you will see if there is an error.







PS: The tricky part for me is how to perform a form submission. Should be form.submit(); and not $("#myForm").submit();



.

Wednesday, June 2, 2010

Liferay Strange CSS UI Guideline

The social-network-driven portal which we are developing for our customer is about half-done. I'm trying to customize the look-and-feel of the LifeRay Portal Server now.



Pretty bad experience trying to customize LifeRay Portal. There is something I do not like about LifeRay - the definition of CSS styles.


The bad thing is there is a system-wide JSP file where one can define CSS styles - css.jsp. Define CSS styles in a JSP file?!!

That's not all. If you create a portlet, you can define yet another css.jsp within your portlet directory. This is getting crazy!


I have developed on a number of Portal Servers. This is the first time I see CSS styles being defined in a JSP file. This is super unclean and no clear separation of tasks.

There should be a single place where one defines CSS styles. I am not against defining styles in a JSP file (though I really find it really weird). However, if JSP file is used, there should not be any more .css file being defined.


So how did I manage to customize the LifeRay Portal then?

I have actually asked my designer to do the job. I sent him all the .css files I could find so that he can render on his Dreamweaver. However, at times, he'll be stuck. He simply could not locate some CSS styles that have been declared.

Very strange. How can that be? No choice, I need the following:






Firefox with Firebug are the best friends you can ever have. Trust me. With them, that's how I located css.jsp - the evil.


.

Monday, April 19, 2010

How to create a private community in LifeRay?

In some business scenarios, there is a need to create a community that is exclusive to members only.

There is a need to plan carefully. Otherwise, there'll be security loop-holes which we found out recently, due to our carelessness.



Public Community



Private Community (There's a "key" in the icon)

A Private Community, when designed properly, disallows any non-authorized person from entering, even to the extend where the URL is keyed in directly on the browser.



How to create a private community securely then?






2 things to take note of:

1. Ensure the Community Type is PRIVATE
2. Ensure only Private Pages are created


Initially, we thought Private type will be secured enough. We were so wrong! :)

.

Saturday, April 17, 2010

JSRs and Portal

I'm currently on a LifeRay Portal project. We are helping our customer to develop a Sales Commissioning Portal utilizing social-network medium.



Those who develops Portal, especially Java-driven portal, will need to be familiar with a lot of JSRs ( Java Specification Request ).

The more commonly references are:

JSR 168
JSR 286
JSR 170


JSR 286 is an enhancement to JSR 168. Both defines Portlet Specification. There is a good read - a detailed writeup of the differences.


.

Friday, April 9, 2010

Liferay Portal Hierarchy


We just clinched a deal to develop a social-network-driven Sales Commissioning site using LifeRay Portal.

LifeRay Portal hierarchy is built to be flexible. So flexible that one can be overwhelmed as to how to get started with organizing the users.

A bit of reading up helps...







The concepts Liferay uses to organize a portal:

1. Portals are accessed by Users.

2. Users can be collected into User Groups.

3. Users can belong to Organizations.

4. Organizations can be grouped into hierarchies, such as Home Office -> Regional Office -> Satellite Office.

5. Users, Groups, and Organizations can belong to Communities that have a common interest.




Organizations can be members of Communities, Communities can be members of Roles, Users can be members of anything, and so on.


.

Wednesday, March 17, 2010

EOL - Sun Portal Server


Life is full of ups and downs.

Few months back in Nov 2009, I was still in the Philippines preaching Sun Glassfish Web Space Server. (See here)




Now that Oracle has completed its acquisition of Sun, many middleware from Sun are discontinued from further development.

One product that is definitely going to be discontinued is Sun Portal Server or Sun Glassfish Web Space Server.

Oracle already own Oracle Portal Server. After the acquisition of Weblogic, it has another Portal solution in Oracle WebLogic Portal Server. These 2 products then become part of Oracle WebCenter Suite.

It simply cannot maintain another Portal solution.

So what is going to happen to existing customers using Sun Portal solutions?



Simply put: Wait for EOL, then let's upgrade you to Oracle WebCenter Suite.





Oracle WebCenter Suite datasheet can be found here.


Wednesday, November 25, 2009

Content Management Interoperability Services (CMIS)

CMIS is a new standard that uses Web services and Web 2.0 interfaces to enable information sharing across content management repositories from different vendors.

According to TechWorld, this standard will be finalized by early 2010.

Hopefully, we'll be able to enjoy a better integrated ecosystem in the near future. It has really been a nightmare trying to integrate contents from different vendors' CMS.





Something caught my attention when I read the Membership page. LifeRay is not one of the participant; while Sun has one. Hmm... I'm surprised LifeRay has not sent anyone to participate in this open standard.



By the way, you can see which vendor is active from here.

Sunday, November 15, 2009

What do customers look for when they want a Portal solution?


In my conversations with customers, their requirement for a Portal solution is fairly simple.
(OK, in the Asia-South region. I do not know about other region)




Must-have

0. Friendly UI
1. Integrated Content Management Server (CMS)
2. Integrated Document Management Server (DMS)
3. Versioning feature
4. Approval Process
5. Search Engine that can index all types of documents (especially Words and PDF)
6. Document Conversion (see here)
7. LDAP authentication (with their existing infrastructure)


Good-to-have

1. Integrated Email and Calendar Services
2. Instant Messaging
3. Different theme for different department/branch


Notice that they are not very much into Single Sign-On or integration with other backend applications. This, to me, is not appealing at all. There is no stickiness in this solution.

A good Portal solution should integrate with as many useful backend applications as possible. This will make end-users come back again and again.

A Portal should be a one-stop place for everyone.



Friday, November 13, 2009

Sun Glassfish Web Space Server Update 6


Here I am in Philippines ... I am supposed to implement a WAN replication for Sun Directory Servers. But was dragged to help with a pre-sales task.

The customer is interested in Sun Glassfish Web Space Server (aka Portal Server).


Sun Glassfish Web Space Server is now in Update 6. This update has 2 new Add-On features:

1. Call

Call add-on allows portal users to establish voice communication based on SIP protocol

2. IDM Adapter

The IDM Adapter feature provides integration with Sun Identity Manager 8.1. Using this feature, you can provision users on Identity Manager.

Both are pretty exciting!

Read more here.


Sunday, October 11, 2009

Mobile Access is missing from Sun Glassfish Web Space Server


In my previous post on Sun Glassfish Web Space Server, I mentioned that I was glad the Secure Remote Access (SRA) feature from older version of Sun Portal Server has been ported to the latest Web Space Server.

I just realized that another great feature was discarded though. It's Portal Server Mobile Access.



Architectural Diagram of Sun Portal Server 7.2


Mobile Access extends the services and capabilities of Sun Java System Portal Server platform to mobile devices, such as mobile phones and personal digital assistants.

Mobile Access software enables portal site users to obtain the same content that they access using browsers that require HyperText Markup Language (HTML). It supports Sun Java System Portal Server Secure Remote Access software.

The features of the Mobile Access product are integrated seamlessly into Portal Server software.


Read more here.


Mobile Access feature was in-built in Sun Portal Server. It was also fairly easy to implement a Mobile Desktop for remote access. I was part of the Sun Professional Service Team that showcased this capability to a teleco in Philippines 2 years ago.


Monday, September 14, 2009

GateIn Portal





Red Hat recently announced GateIn Portal. The business model is aka Sun's GlassFish Web Space Server. 

Sun : GlassFish Web Space Server (Sun Java Portal Server + LifeRay Portal Server)
Red Hat : GateIn Portal (JBoss Portal + eXo Portal)


On one hand JBoss is specialist in middleware and was able to deliver a scalable portal with enterprise integration needs in mind, on the other end eXo was able to produce a full fledge solution on top of their portal. Read more here.

I would take "full fledge solution" as being more features-rich (especially those of social networking / collaboration  context).

Sun Portal Server was highly scalable. We see it for ourselves as we were part of the Sun Professional Service team that deploy the Portal solution for the Malaysia's largest telecom 3 years ago. 

However, in my own opinion, it is not slick. There is no "wow" factor to buy into a product like Sun Portal Server.

With the launch of GlassFish Web Space Server, the game play is different. When you talk to customers now, it's easier to pursue them into buying.  

I hope the same goes to GateIn Portal. I'll be downloading a copy for evaluation internally.




Tuesday, August 11, 2009

OpenLDAP on Solaris 10 - How To


We have a LifeRay Proof-of-Concept coming up. The customer is a local defense company. Their environment utilizes OpenLDAP at the moment. (Yes, I'm pushing hard for OpenDS deployment soon :>) 



We need LifeRay to authenticate with OpenLDAP.  Thus here I am - helping my team with getting an instance of OpenLDAP up on Solaris 10 x86 OS.



bash-3.00# cat /etc/release 
                        Solaris 10 5/08 s10x_u5wos_10 X86
           Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                             Assembled 24 March 2008

Dependencies (Download from sunfreeware):

1. libiconv-1.11 
2. gcc-3.4.6
3. libgcc-3.4.6
4. db-4.4.20.NC 
5. sasl-2.1.21
6. openssl-0.9.8k
7. libtool-1.5.24
8. make-3.81


Note: Do not install the latest Berkeley DB 4.7.25 unless you know how to patch it. I'll give it a miss here since this OpenLDAP is only for our POC, not for production usage.


Package install for dependencies

bash-3.00# pkgadd -d libiconv-1.11-sol10-x86-local
bash-3.00# pkgadd -d gcc-3.4.6-sol10-x86-local   
bash-3.00# pkgadd -d libgcc-3.4.6-sol10-x86-local
bash-3.00# pkgadd -d db-4.4.20.NC-sol10-x86-local
bash-3.00# pkgadd -d sasl-2.1.21-sol10-x86-local 
bash-3.00# pkgadd -d openssl-0.9.8k-sol10-x86-local 
bash-3.00# pkgadd -d libtool-1.5.24-sol10-x86-local 
bash-3.00# pkgadd -d make-3.81-sol10-x86-local <- required for source compile

Note: When you package-add libgcc-3.4.6-sol10-x86-local, you'll encounter this error. Choose "n" will do.
    The following files are already installed on the system and are being
    used by another package:
      /usr/local/lib/libg2c.so.0.0.0
      /usr/local/lib/libgcc_s.so.1
      /usr/local/lib/libstdc++.so.6.0.3
    
    Do you want to install these conflicting files [y,n,?,q] n
Source Compile OpenLDAP 2.4.16 (Download source from here)

    bash-3.00# cd /openldap/openldap-2.4.16

Environment Setting

    bash-3.00# export CFLAGS="-D_AVL_H" 
    bash-3.00# export CPPFLAGS="-I/usr/local/include –I/usr/local/BerkeleyDB.4.4/include –I/usr/local/include/sasl –I/usr/sfw/include"
    bash-3.00# export LDFLAGS="-L/usr/local/lib –L/usr/local/BerkeleyDB.4.4/lib –L/usr/local/lib/sasl2 –L/usr/sfw/lib" 
    bash-3.00# export CC="/usr/local/bin/gcc"
    bash-3.00# export LD_LIBRARY_PATH=/usr/dt/lib:/usr/openwin/lib:/usr/local/BerkeleyDB.4.4/lib:/usr/local/lib:/usr/sfw/lib
    bash-3.00# export PATH=/usr/sbin:/usr/bin:/usr/local/bin:/usr/sfw/bin:/usr/ccs/bin

    bash-3.00# vi /etc/profile
export LOGNAME PATH <- default
PATH=$PATH:/usr/local/bin:/usr/sfw/bin:/usr/ccs/bin
export PATH
LD_LIBRARY_PATH=/usr/dt/lib:/usr/openwin/lib:/usr/local/BerkeleyDB.4.4/lib:/usr/local/lib:/usr/sfw/lib
export LD_LIBRARY_PATH

Configure

    bash-3.00# ./configure –-prefix=/opt/openldap --enable-monitor --enable-syslog
    bash-3.00# make depend
    bash-3.00# make
    bash-3.00# make test <- MUST complete succesfully; otherwise, do not continue
    bash-3.00# make install

    bash-3.00# vi /opt/openldap/etc/openldap/slapd.conf
include         /opt/openldap/etc/openldap/schema/core.schema <- default
include         /opt/openldap/etc/openldap/schema/cosine.schema
include         /opt/openldap/etc/openldap/schema/inetorgperson.schema

suffix            "dc=sg,dc=com"
rootdn          "cn=Manager,dc=sg,dc=com"
rootpw          secret <- leave as-is
        

Start OpenLDAP
    bash-3.00# /opt/openldap/libexec/slapd    

Stop OpenLDAP
    bash-3.00# /usr/bin/pkill slapd

Tuesday, July 21, 2009

Role concept in Sun Portal Server vs LifeRay Portal Server

I was with a friend today for lunch. After lunch, he asked me to help him with setting up a development environment for Sun Java System Portal Server 7.1. 

His company was engaged by a local Online Ticketing Service Provider for some change requests. The initial contract was to a big MNC, but they did not do a good job. Anyway, to his surprise, this service provider does not have a development environment for his engineers to work with. Thus, no choice... he, being always preaching for best practice, decided to set up the environment in his premise. 

They spent numerous days, but are still not able to get an identical site set up. Thus, he asked for my help.

For your information, my experience with Sun Portal Server dated back to iPlanet Portal Server version 3.  It has been 5 years. Sun Portal Server is now named as GlassFish Web Space Server. This version is not a continuous/enhancement update from previous ones. It is actually "OEM" from LifeRay Portal Server. A few portlets have been ported to Web Space Server, and that's about it. Not too much different from the default LifeRay installation.

So, back to the development environment setup, I advised his engineers on how to migrate the existing Display Profile from the production server. I also explained about the Authentication-less Anonymous Desktop and its associated Display Profile. Basically, just make sure of the following:
  1. Organization Domain is the same 
  2. Portlets to be copied over and deployed on development server
  3. Import display profile for default organization
  4. Import display profile for authless anonymous user
Fairly simple. 

When I was about to leave, one engineer asked whether or not is there a way to hide a certain tab from showing when a particular group of users log in.

He told me it was so easy to achieve this requirement using LifeRay. (Yes, they implement quite a number of LifeRay. But not Sun Portal Server)

What he needs to do in LifeRay is to navigate to Plugin Configuration and then assign the Role appropriately. Done. Single login; Integrated Administrative Module.



Yes, I do agree. I do LifeRay as well, since Sun has moved on to Glassfish Web Space Server. So, that's part of my job scope.

Anyway, I explained that the concept is slightly different in Sun Portal Server. It is basically driven by Display Profile. 

When a user logs in, the Portal Server will check in the following sequence:
  1. Does User Display Profile exist? If yes, render it.
  2. Does Role Display Profile exist? If yes, render it.
  3. Otherwise, render Organization Display Profile.
To fulfill his requirement, what he needs to do is to create a Role Display Profile. How to achieve that is more complicated:

1. Go to Sun Access Manager. 
  • Define a new Role. 
  • Assign users to this new Role.


2. Go to Sun Portal Server Console. 
  • Search for the Role Display Profile. 
  • Customize this Role Display Profile. (By default, without customizing, it will be the same as Organization Display Profile)



FYI, the EOL for Sun Java System Portal Server 7.1 is Nov 2009. If you are using this version of Portal Server and would require upgrade service, do send me an email (cheechong @ azimuthlabs.com.sg).