掲示板

customize user registration

thumbnail
14年前 に satya ganesh bhat によって更新されました。

customize user registration

New Member 投稿: 18 参加年月日: 09/07/30 最新の投稿
Hello All,

I am new to liferay . i am using liferay 5.2.3 bundled with tomcat.I need to restrucutre an existing website which is currently not in liferay.In my new website, I need to create a login form and connect it to payment gateway.I have thousands of user data to migrate from the previous site to my website after the completion.please suggest some approach to start with ....

Thanks,
Satya
14年前 に sudheesh poduval によって更新されました。

RE: customize user registration

Junior Member 投稿: 33 参加年月日: 09/05/27 最新の投稿
can you share more details?

#I have thousands of user data to migrate from the previous site to my website after the completion.

where does these users exists currently? Is it in an ldap system?

You can have your new Liferay connected to the old ldap system as well.
Anyway share more details.
thumbnail
14年前 に satya bhat によって更新されました。

RE: customize user registration

New Member 投稿: 18 参加年月日: 09/07/30 最新の投稿
Hi sudheesh,
Thanks for the reply.
The existing users are stored in database.There is no ldap in the existing system.

However, Create Account for our application has many customized attributes with few mappings with additional master tables. Now, we want to develop a Customized Create Account portlet for our site (may be a wizard type portlet). We need some help or guidance for approaching this problem.


Please let me know if you need more details.
thumbnail
14年前 に Ahmed Hasan によって更新されました。

RE: customize user registration

Expert 投稿: 306 参加年月日: 07/04/13 最新の投稿
Dear Satya,

We have done many similar customization in the past.

If you can send more details then we may be of some help to you.

For any help feel free to contact me,

Ahmed Hasan
CTO, TransIT mPower Labs (P) Ltd.
info@mpowerglobal.com
mPower Global
A Liferay expert company.
thumbnail
14年前 に satya bhat によって更新されました。

RE: customize user registration

New Member 投稿: 18 参加年月日: 09/07/30 最新の投稿
Hey,
We need to have a member login(similar to create account but with extra fields) in our website. Also,there is a payment gateway involved.So we need to create our own tables (so that it is easy for us to migrate the data from the current website) alongwith the user table in liferay.
So should we use ext environment or hooks...confused ???
Is there any good docment on this...

Thanks in advance,
Satya
thumbnail
14年前 に satya bhat によって更新されました。

RE: customize user registration

New Member 投稿: 18 参加年月日: 09/07/30 最新の投稿
Ahmad,
Have dropped u a detailed mail on the same.

Satya
thumbnail
14年前 に Ahmed Hasan によって更新されました。

RE: customize user registration

Expert 投稿: 306 参加年月日: 07/04/13 最新の投稿
Thanks for the email.

Let me check. Right now i am in a doing a training on behalf of Sun. I will respond to you once i am free.

Meanwhile, i request you to go thru this wonderful snippet that explains how to extend the liferay table.

For any help feel free to contact me,

Ahmed Hasan
CTO, TransIT mPower Labs (P) Ltd.
info@mpowerglobal.com
mPower Global
A Liferay expert company.
thumbnail
14年前 に satya bhat によって更新されました。

RE: customize user registration

New Member 投稿: 18 参加年月日: 09/07/30 最新の投稿
Hey Thanks for the document..It worked for me..Do you know any document which mentions the tables populated at the time of user creation.We need to import almost 40,000 user data from a database to liferay--mysql database.
thumbnail
14年前 に Ahmed Hasan によって更新されました。

RE: customize user registration

Expert 投稿: 306 参加年月日: 07/04/13 最新の投稿
Hi, we have done this using a java program that accesses the liferay remote service inorder to create the users in the database.

1. download this file and unzip onto a folder.

2. store all the 40,000 users in a local database and give the db setttings in db.properties.

3. run the program that will make the remote api call to create users in the database.

4. it will automatically populate all the related tables.

5. contact me for any help.

Ahmed Hasan
mPower Global
thumbnail
14年前 に satya bhat によって更新されました。

RE: customize user registration

New Member 投稿: 18 参加年月日: 09/07/30 最新の投稿
Hi,
Thanks a lot..will try this...

In the mean time, i am trying to extend the create account portlet so as to store the data in multiple tables.
I used multiple entities in service.xml with reference to User table.
<reference package-path="com.liferay.portal" entity="User" />

I am not sure if i am going the right way. Is there any document which can give me the steps to follow.


Thanks in advance,
Satya
thumbnail
14年前 に satya bhat によって更新されました。

RE: customize user registration

New Member 投稿: 18 参加年月日: 09/07/30 最新の投稿
getting error emoticon

com.liferay.portal.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: Unknown entity: com.liferay.portlet.login.model.impl.ContactPersonsImpl
thumbnail
14年前 に Ahmed Hasan によって更新されました。

RE: customize user registration

Expert 投稿: 306 参加年月日: 07/04/13 最新の投稿
please call me on my mobile - 9880 800 488.

At the moment i am in Kaula Lumpur for a Liferay training and will be back in India next week.

Will talk with you and help you.
thumbnail
14年前 に satya bhat によって更新されました。

RE: customize user registration

New Member 投稿: 18 参加年月日: 09/07/30 最新の投稿
Hi Ahmad,

I tried reacing u at ur cell ...but somehow could not connect emoticon

i have mailed my query to u at info@mpowerglobal.com.
please respond.

Thanks,
Satya
14年前 に Vin k k によって更新されました。

RE: customize user registration

Regular Member 投稿: 138 参加年月日: 07/12/04 最新の投稿
Hi

i tried to create user via api,using the code it works fine

long userId = CounterLocalServiceUtil.increment();
User userToCreate = UserUtil.create(userId);
userToCreate.setContactId(1036);
userToCreate.setReminderQueryQuestion(null);
userToCreate.setReminderQueryAnswer(null);
userToCreate.setAgreedToTermsOfUse(true);
userToCreate.setActive(true);
userToCreate.setFirstName("man");
userToCreate.setMiddleName("");
userToCreate.setLastName("test");
userToCreate.setEmailAddress("test@gmail.com"
userToCreate.setPassword("test123");
userToCreate.setPasswordEncrypted(true);
userToCreate.setPasswordReset(false);
userToCreate.setLoginDate(new Date());
userToCreate.setScreenName("manraf1");
userToCreate.setActive(true);
userToCreate.setModifiedDate(new Date());
userToCreate.setCreateDate(new Date());
userToCreate.setDefaultUser(false);
userToCreate.setGreeting("Hi man123");
userToCreate.setJobTitle("test");
userToCreate.setLanguageId("en_US");
userToCreate.setFailedLoginAttempts(0)

User createdUser = UserLocalServiceUtil.addUser(userToCreate);

i checked the table, it created the record, but using the user id i cannot ligin, can any one suggest me what is the problem.

thanks
vin