Foren

Storing Users and Roles information in Custom table in Liferay 7.

lokesh gorrela, geändert vor 7 Jahren.

Storing Users and Roles information in Custom table in Liferay 7.

Regular Member Beiträge: 173 Beitrittsdatum: 09.03.16 Neueste Beiträge
Hi All,
I want add/update/delete users and roles information in my custom table. so how can i acheive this in Liferay 7.

Thanks & Regards,
Lokesh.
thumbnail
David H Nebinger, geändert vor 7 Jahren.

RE: Storing Users and Roles information in Custom table in Liferay 7.

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
lokesh gorrela:
I want add/update/delete users and roles information in my custom table. so how can i acheive this in Liferay 7.


Build an SB layer around your custom table. You'll get add/update/delete templates for modifying the table and can flush out your data access layer as necessary to weave in business logic.








Come meet me at the LSNA!
lokesh gorrela, geändert vor 7 Jahren.

RE: Storing Users and Roles information in Custom table in Liferay 7.

Regular Member Beiträge: 173 Beitrittsdatum: 09.03.16 Neueste Beiträge
Hi David,
ok i'll build SB layer for my custom table but how can i write my business logic to add/remove roles and user details to my table.
my table looks like this.
oruId roleId orgId userId

we have implemented a product where we can create instant organization.
at the time of creating organization we will create default roles and users.
and we will map all the details in one table.

here my requirement is to add/remove all the details to my table at the time creating/deleting role.

regards,
Lokesh.
thumbnail
David H Nebinger, geändert vor 7 Jahren.

RE: Storing Users and Roles information in Custom table in Liferay 7.

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
Why?

Your own table can be stuffed to the gills with user and role details, but unless you populate that info into the Liferay tables they're not going to have any effect on permissioning.

And if you're going to populate the Liferay tables so there is an effect on permissioning, why have the separate table for this info?






Come meet me at the LSNA!