cancel
Showing results for 
Search instead for 
Did you mean: 

[REST API] How to overwrite a webobject

Bauke_Roo
Star Contributor
Star Contributor

Hi There,

I'm currently working on fixing the multi-tenant/LDAP issues. I did find a issue in the REST API and I want to fix this.

Is it possible to overwrite a webobject (in my case: UserRootObject.java) in Nuxeo?

Thanks in advance, Bauke Roo

8 REPLIES 8

Vladimir_Pasqui
Star Collaborator
Star Collaborator

Hello,

Bauke_Roo
Star Contributor
Star Contributor

Hi Vladimir,

Vladimir_Pasqui
Star Collaborator
Star Collaborator

Yes exactly, you could override also by adding the same WebObject name to your bean.

Bauke_Roo
Star Contributor
Star Contributor

Hi Vladimir, Thanks I shall try this. The issue is when using both LDAP and multi-tenancy plugin, most parts work, however users can find users from other tenants. This is absolutely a no go for multi-tenancy environments. (user from tenant A finds users from tenants B and C) By changing the classes I mentioned before I add a filter containing the tenantId so users can not find users from other tenants anymore.

Bauke_Roo
Star Contributor
Star Contributor

When I'm done I'll share the code

Vladimir_Pasqui
Star Collaborator
Star Collaborator

Thanks a lot!

Bauke_Roo
Star Contributor
Star Contributor

Hi Vladimir, I've added the code in a jira request I've made, hope you can use this

kartik_sn
Confirmed Champ
Confirmed Champ

Hi Bauke,

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.