Forums de discussion

Accessing User table outside Liferay

Nalini Ramadoss Rajan, modifié il y a 9 années.

Accessing User table outside Liferay

New Member Envoyer: 1 Date d'inscription: 28/04/15 Publications récentes
Hello everyone,

We have a bundle of mobile apps and a web app all sharing a common user table.

For the web app, we plan to use Liferay. Can we access a table outside the one provided by Liferay as the default User table ? If yes, how ?

Thanks in advance.

Regards,
Nalini
thumbnail
Miroslav Ligas, modifié il y a 9 années.

RE: Accessing User table outside Liferay

Regular Member Publications: 152 Date d'inscription: 29/07/14 Publications récentes
You can do anything. If it's going to be easy and wise I don't think so. Can't you use a LDAP for a common user storage?

Even if you turn the table and let your mobile app access Liferay user table you SHOULD NEVER write into it directly. You could use Liferay API to make a sync job between your app and Liferay.
thumbnail
M J, modifié il y a 9 années.

RE: Accessing User table outside Liferay

Regular Member Publications: 184 Date d'inscription: 01/03/13 Publications récentes
Like Miroslav Ligas said you should use it for read only, Never update the User table with any other app. You can access the user table using jdbc driver.
thumbnail
Vishal Kumar, modifié il y a 8 années.

RE: Accessing User table outside Liferay

Regular Member Publications: 198 Date d'inscription: 12/12/12 Publications récentes
Do we need to to do any setting.
thumbnail
Meera Prince, modifié il y a 8 années.

RE: Accessing User table outside Liferay

Liferay Legend Publications: 1111 Date d'inscription: 08/02/11 Publications récentes
HI
We have many ways to you can connect with Liferay User Table with mobile apps

1) Liferay Mobile SDK there you can find many portal services like add ,delete , update with respect user

http://www.liferaysavvy.com/2014/01/liferay-android-sdk-for-mobile.html

2) you can use JSON Web service URL and call from Http client API and access to read and write operations its depends on role of user if admin can do anything

http://www.liferaysavvy.com/2014/02/working-with-liferay-portal-json-web.html

3) you can use Portal-service.jar in mobile build class path then you can use many services such as user, group but i don't think place such big jar in mobile app build path

4) simple JDBC
thumbnail
Andew Jardine, modifié il y a 8 années.

RE: Accessing User table outside Liferay

Liferay Legend Publications: 2416 Date d'inscription: 22/12/10 Publications récentes
.... and don't forget about the good'ol SOAP API!