On 20/05/25 13:54, Lionel SCHWARZ wrote:
Dear all,

The objects I received on calling AnySearchDAO.search(...) only contain 
relationships for which they are source (LEFT) and not the ones for which they 
are target (RIGHT).
I guess it's on purpose, but I would like to know if there is a way to get them 
anyway.
I'm running Syncope 3.0.11 on a SQL database.

Best regards,
Lionel

Hi Lionel.
the relationship filtering happens around [1] so if you want to change this 
behavior, you will need to extend the class and override the getAnyObjectTO() 
method.
Naturally, you will also need to override the bean definition [2].

Please take into account that the Console could not behave as expected, once 
you onboard such changes.

Regards.

[1] 
https://github.com/apache/syncope/blob/3_0_X/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/AnyObjectDataBinderImpl.java#L162-L169
[2] 
https://github.com/apache/syncope/blob/3_0_X/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/ProvisioningContext.java#L751

--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA
https://about.me/ilgrosso

Reply via email to