フォーラム

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

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
L P Bharat
How to migrate existing database to liferay's database
2009/02/26 1:38
答え

L P Bharat

ランク: Junior Member

投稿: 38

参加年月日: 2008/08/20

最近の投稿

Hi

I have recently migrated a legacy application to liferay. This legacy system has almost 1000 users and now i need to create liferay's user account for these 1000 users.

Is there a way to create account for these users in liferay using some script or something?

Regards,
Lok
kameshwar singh
RE: How to migrate existing database to liferay's database
2009/02/27 4:28
答え

kameshwar singh

ランク: New Member

投稿: 14

参加年月日: 2008/10/21

最近の投稿

Hi All,

I am also facing the same problem,

Please help me out all liferay developers.
Minhchau Dang
RE: How to migrate existing database to liferay's database
2009/02/27 10:21
答え

Minhchau Dang

LIFERAY STAFF

ランク: Expert

投稿: 349

参加年月日: 2007/10/22

最近の投稿

You can't do it via a shell script, as far as I know.

If your server is online, you can write a standalone client application which utilizes Liferay SOAP API in order to make service layer calls to the UserService of a running Liferay instance. This is pretty straightforward, provided you know how to use SOAP. This is the route I recommend that you take.

If your server is offline, you will need to write a standalone client application which calls the Liferay service layer methods to create your users. This is not very straightforward and requires more familiarity with the way Liferay. If you satisfy this prerequisite (namely, you're experienced with Liferay), you can see an example of how Liferay does this by looking at how we run the service tests in our portal-impl test suite.

Finally, you can just write a portlet. Portlets have direct access to the UserLocalServiceUtil methods with no additional fuss, since you're running within the portal instance rather than making calls against it. Just write your portlet so that it runs the import code when the portlet is rendered, make sure to add some logic to make sure it never runs twice, and then add the portlet to an administrative page in your portal.