Forum

Accueil » Liferay Portal » English » 3. Development

Vue combinée Vue Plate Arborescence
Sujets [ Précédent | Suivant ]
toggle
Jeffrey Jarin
Portlet Restrictions and Data Restrictions for users
3 septembre 2013 11:47
Réponse

Jeffrey Jarin

Rang: Junior Member

Publications: 30

Date d'inscription: 5 juillet 2013

Publications Récentes

Good day guys,

I just want to ask some suggestions on my requirement as i am not really sure yet on how to implement it-
I need to be able to restrict users from viewing other organizations data

I tried to implement restrictions of portlets using CustomLoginAction via Hook

and I have a Service Builder that has JSONWS that already is working getAllSalesByDay(int filterCode, int providerId)

My problem is that I tried to create the Users in an Organization (Users_Orgs table)- so I have all the users belongs to a certain organization - they will all be using one reusable portlet to display the grid, but im not sure how to implement it right now - my providerId came from the externalDB

I need to be able to linked my providerId(external Database) to the OrgId(Liferay Database)
I was thinking to use custom attribute or expando but im not really familiar yet of the two

Thanks in advance

jeff
Zsigmond Rab
RE: Portlet Restrictions and Data Restrictions for users
10 septembre 2013 12:06
Réponse

Zsigmond Rab

LIFERAY STAFF

Rang: Liferay Master

Publications: 644

Date d'inscription: 4 janvier 2010

Publications Récentes

HI Jeffrey,

sorry, but it's not that clear for me how many questions you have. Are you wondering about how to implement a portlet to give different view of organization's data for different users? If so, you should use the permission system.

For the other thing, to store an new field to the organizations, the expando can be a good solution.

Regards,
Zsigmond
Jeffrey Jarin
RE: Portlet Restrictions and Data Restrictions for users
12 septembre 2013 08:27
Réponse

Jeffrey Jarin

Rang: Junior Member

Publications: 30

Date d'inscription: 5 juillet 2013

Publications Récentes

Thanks Zsigmond i have already implemented this, buy using custom field and retrieve it in my service builder impl class through expando table