Tech Coder Volunteer Needed to help with Liferay 6.1 Upgrade

thumbnail
Daniel M Ingram, modified 11 Years ago at 8/24/12 12:52 AM
Created 11 Years ago at 7/8/12 9:05 PM

Tech Coder Volunteer Needed to help with Liferay 6.1 Upgrade

Posts: 3268 Join Date: 4/20/09 Recent Posts
Dear All,

Attempts to upgrade to Liferay 6.1 have so far met with somewhat annoying expenses and less progress than I would have hoped.

However, some good things have happened.

A German programmer named Daniel Brietner did some coding and finally wrote me the following email:

"Hi Daniel,

What I did

I created two portlets:

An export portlet and an import portlet. The export portlet is to be used in Liferay 5.2, the import portlet works with Liferay 6.1.
The export portlet reads all users and roles from the liferay database and puts it into a datafile (content.csv).
This file should be stored on a USB stick or so because it will be used with the import portlet.
The import portlet only consists of an upload button and does nothing else but to read in the data file and to create the users and roles.

What Chris Stavros should do

1) Deploy export portlet to Liferay 5.2, click the button and save the data file

2) Deploy import portlet to Liferay 6.1 , upload the data file.

That´s all ;)

After that you should take a look at the portal to verify that all data is uploaded correctly.

This is something you can do again and again: Create a new data file and upload to it 6.1 and you should have all the new users.

What needs to be done in the future

My concept was to read in all the data you want to migrate (all users with all their data - names, email adresses etc etc etc) and put it into a text file.
This is exactly what needs to be done by whoever is going to finish this.
The person who is implementing it, should get a list of all entities to transform and then create the code to transform those entities to pure text and create the code to transform the lines of text into 6.1 entities and to store them.

1) Make a list of everything that you want to be migrated

2) Send this list to a liferay developer of your choice and tell him: We need every bit of data. Please call every getter of the entities you need to migrate and store the data into the csv file.
Then also create the code to read in the datafile in Liferay 6.1 and create the entities from new. Apply all data you´ve read in from Liferay 5.2.

export:

Please take a look at ModelToCSVFactory.java and create a Converter for every entity. Call the Converter in DownloadRessourcesServlet, convert the ressources and add the csv lines to the resulting file

import:

Take a look at the ImportConverterFactory - it will show you how to read in the data and how to create the entities.


I think this is all ... emoticon"

I have the two portlets he wrote, if anyone is interested in helping with this. Chris Stavros owns Omegabit that hosts this place.

What we need to be migrated is basically everything: Discussion, Wiki, Users, Roles, Permission, Theme, etc.

The portlets to migrate users is just the first step.

Any coders out there interested in helping with this? Otherwise, current projections are it will cost me a few grand, which I don't really want to spend on that at the moment, having other house projects (such as air conditioner that just died, concrete driveway that desperately needs repair, etc.) that really need the cash applied to them at this time.

Advantages of Liferay 6.1: many, among other things being able to open the wiki up a lot to outside input and collaboration.

Anyway, let me know if you are a coder or know of a coder who can help.

Thanks very much for considering this,

Daniel
Founder and Funder of the DhO
thumbnail
Lee G Moore, modified 11 Years ago at 7/24/12 11:45 PM
Created 11 Years ago at 7/24/12 11:45 PM

RE: Tech Coder Volunteer Needed to help with Liferay 6.1 Upgrade

Posts: 18 Join Date: 7/4/09 Recent Posts
Hi Daniel,

I've been doing Java work the last year or so. I'm not as fluent as I am in .NET but I could probably help with it, as long as it doesn't take too long to get a staged environment setup that I can play with and debug in (or to be able to deploy easily to test changes without hurting the site)

I'm really surprised Liferay doesn't support an upgrade path rather than users having to write their own portlet to export from the old version and another portlet to import to the new. This can't be the first Liferay site that needs to preserve their data as they upgrade.

Give me a call tomorrow (or a time I can call you) if you want to discuss it further.

Lee
443 302-9209

Breadcrumb