Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Satish Iyer
Adding bulk user, role, data into liferay from csv file [RESOLVED]
July 8, 2009 3:45 AM
Answer

Satish Iyer

Rank: New Member

Posts: 10

Join Date: June 4, 2009

Recent Posts

Hi,

I would like to extend liferay's functionality using the Service Builder to provide a functionality to upload bulk user, role, group, etc data from csv file(s).

What is the best way to achieve such a functionality?

Particularly, How would I interact with the database to add entries into _user and other corresponding tables?

I'm thinking of using the DBUtil class to update the respective tables.

Looking forward to your help and suggestions in this matter.


Satish
Artur Korol
RE: Adding bulk user, role, data into liferay from csv file
June 13, 2009 1:58 PM
Answer

Artur Korol

Rank: Junior Member

Posts: 85

Join Date: March 2, 2009

Recent Posts

One way to do this is import users from LDAP. Most LDAPs I think support user import (registration) from file.

There are some dissadvantages - LDAP import in Liferay is limited, only a few attributes can be imported, can't setup password etc.

So I'm looking forward for possibility to register users from file as well.

Artur
Satish Iyer
RE: Adding bulk user, role, data into liferay from csv file
June 30, 2009 7:27 AM
Answer

Satish Iyer

Rank: New Member

Posts: 10

Join Date: June 4, 2009

Recent Posts

I implemented a portal application with a service implementation.

The following posts helped me in my endeavor :

1. Using Portal pack and netbeans

2. Joel's notes

I used the UserLocalServiceUtil methods to implement the same.

The manual service builder method (as outlined in the documentation) didn't work for me.
Bernardo Riveira Faraldo
RE: Adding bulk user, role, data into liferay from csv file
July 7, 2009 6:10 AM
Answer

Bernardo Riveira Faraldo

Rank: Regular Member

Posts: 136

Join Date: October 30, 2008

Recent Posts

I implemented it using web service interface, but has lots of limitations and bugs (in 5.2.2)
Satish Iyer
RE: Adding bulk user, role, data into liferay from csv file
July 8, 2009 3:41 AM
Answer

Satish Iyer

Rank: New Member

Posts: 10

Join Date: June 4, 2009

Recent Posts

Bernardo Riveira Faraldo:
I implemented it using web service interface, but has lots of limitations and bugs (in 5.2.2)


I'm using the following version:
Liferay Portal Standard Edition 5.2.3 (Augustine / Build 5203 / May 20, 2009)

This has been built according to the instruction from the development documentation.

I've been able to successfully import users and associate userIds to roleIds and groupIds.

The restrictions are mainly with certain parameters that cannot be passed as null (like openId for example).
Ken Barron
RE: Adding bulk user, role, data into liferay from csv file
December 20, 2011 6:47 AM
Answer

Ken Barron

Rank: New Member

Posts: 5

Join Date: October 5, 2011

Recent Posts

There is a very useful wiki article with code for doing this upload through a batch call (and part of the code could of course be used though an app/service/portlet): http://www.liferay.com/community/wiki/-/wiki/Main/Web+Service+samples

Kudos to the author.