Fórumok

Accessing User table outside Liferay

Nalini Ramadoss Rajan, módosítva 9 év-val korábban

Accessing User table outside Liferay

New Member Bejegyzés: 1 Csatlakozás dátuma: 2015.04.28. Legújabb bejegyzések
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, módosítva 9 év-val korábban

RE: Accessing User table outside Liferay

Regular Member Bejegyzések: 152 Csatlakozás dátuma: 2014.07.29. Legújabb bejegyzések
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, módosítva 9 év-val korábban

RE: Accessing User table outside Liferay

Regular Member Bejegyzések: 184 Csatlakozás dátuma: 2013.03.01. Legújabb bejegyzések
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, módosítva 8 év-val korábban

RE: Accessing User table outside Liferay

Regular Member Bejegyzések: 198 Csatlakozás dátuma: 2012.12.12. Legújabb bejegyzések
Do we need to to do any setting.
thumbnail
Meera Prince, módosítva 8 év-val korábban

RE: Accessing User table outside Liferay

Liferay Legend Bejegyzések: 1111 Csatlakozás dátuma: 2011.02.08. Legújabb bejegyzések
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, módosítva 8 év-val korábban

RE: Accessing User table outside Liferay

Liferay Legend Bejegyzések: 2416 Csatlakozás dátuma: 2010.12.22. Legújabb bejegyzések
.... and don't forget about the good'ol SOAP API!