フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
satya bhat
customize user registration
2009/09/24 22:23
答え

satya bhat

ランク: New Member

投稿: 18

参加年月日: 2009/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
sudheesh poduval
RE: customize user registration
2009/09/25 0:09
答え

sudheesh poduval

ランク: Junior Member

投稿: 33

参加年月日: 2009/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.
satya bhat
RE: customize user registration
2009/09/28 23:14
答え

satya bhat

ランク: New Member

投稿: 18

参加年月日: 2009/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.
Ahmed Hasan
RE: customize user registration
2009/09/29 7:19
答え

Ahmed Hasan

ランク: Expert

投稿: 304

参加年月日: 2007/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.
satya bhat
RE: customize user registration
2009/09/29 23:04
答え

satya bhat

ランク: New Member

投稿: 18

参加年月日: 2009/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
satya bhat
RE: customize user registration
2009/09/30 1:24
答え

satya bhat

ランク: New Member

投稿: 18

参加年月日: 2009/07/30

最近の投稿

Ahmad,
Have dropped u a detailed mail on the same.

Satya
Ahmed Hasan
RE: customize user registration
2009/09/30 10:13
答え

Ahmed Hasan

ランク: Expert

投稿: 304

参加年月日: 2007/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.
satya bhat
RE: customize user registration
2009/10/06 6:17
答え

satya bhat

ランク: New Member

投稿: 18

参加年月日: 2009/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.
Ahmed Hasan
RE: customize user registration
2009/10/07 13:52
答え

Ahmed Hasan

ランク: Expert

投稿: 304

参加年月日: 2007/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
satya bhat
RE: customize user registration
2009/10/20 5:54
答え

satya bhat

ランク: New Member

投稿: 18

参加年月日: 2009/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
satya bhat
RE: customize user registration
2009/10/20 5:55
答え

satya bhat

ランク: New Member

投稿: 18

参加年月日: 2009/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
Ahmed Hasan
RE: customize user registration
2009/10/22 8:17
答え

Ahmed Hasan

ランク: Expert

投稿: 304

参加年月日: 2007/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.
satya bhat
RE: customize user registration
2009/10/26 5:16
答え

satya bhat

ランク: New Member

投稿: 18

参加年月日: 2009/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
Man V K
RE: customize user registration
2009/12/10 1:15
答え

Man V K

ランク: Regular Member

投稿: 139

参加年月日: 2007/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