You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@syncope.apache.org by te...@net-c.com on 2020/10/20 10:08:12 UTC

Role layouts does not work when using dynamic membership

Hi,


I use syncope 2.1.7



I defined wizard builder layouts for all of my roles.

For each role I use dynamic membership in order to set the role to users member of some groups.



I see that when I use dynamic role membership, the builder wizard layouts defined for the role are not applied to my users in, but if I set like statically the role to my users then the layouts work properly.



Is it a normal behavior ?



Thanks. 


Re: Role layouts does not work when using dynamic membership

Posted by te...@net-c.com.
Thanks Francesco, much appreciated.


De : Francesco Chicchiriccò <il...@apache.org>
À : user@syncope.apache.org
Sujet : Re: Role layouts does not work when using dynamic membership
Date : 22/10/2020 09:57:42 Europe/Paris

On 22/10/20 09:30, Francesco Chicchiriccò wrote:

Hi,

layout information is fetched by the Realm page [1] via AnyLayoutUtils#fetch [2].



As you can see from [2]:



1. only static Roles (not dynamic Roles) are currently considered

2. the first non-null layout associated to an owned Role is taken



About (1),  I think it would not be difficult to include dynamic Roles as well.

FYI: https://github.com/apache/syncope/commit/d146706121e6fb8d05e8fff09b9ef6e676f5e178

About (2), I don't think it's easy to merge different AnyLayout information coming from different Roles



Hope this clarifies.
Regards.



[1] https://github.com/apache/syncope/blob/syncope-2.1.7/client/console/src/main/java/org/apache/syncope/client/console/panels/Realm.java#L166-L167

[2] https://github.com/apache/syncope/blob/syncope-2.1.7/client/console/src/main/java/org/apache/syncope/client/console/layout/AnyLayoutUtils.java#L73-L96



On 20/10/20 15:36, tempo@net-c.com wrote:

Another thing which could go in the same topic is when a user belongs to multiple roles each having its different layout and domains. 


It seems that only the first role layout (by order in the selection list) is applied anyway the domain where the action is done.


De : tempo@net-c.com
À : user@syncope.apache.org
Sujet : Role layouts does not work when using dynamic membership
Date : 20/10/2020 12:08:12 Europe/Paris

Hi, 


I use syncope 2.1.7



I defined wizard builder layouts for all of my roles.

For each role I use dynamic membership in order to set the role to users member of some groups.



I see that when I use dynamic role membership, the builder wizard layouts defined for the role are not applied to my users in, but if I set like statically the role to my users then the layouts work properly.



Is it a normal behavior ?



Thanks. 

-- 
Francesco Chicchiriccò

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

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/


Re: Role layouts does not work when using dynamic membership

Posted by Francesco Chicchiriccò <il...@apache.org>.
On 22/10/20 09:30, Francesco Chicchiriccò wrote:
> Hi,
> layout information is fetched by the Realm page [1] via AnyLayoutUtils#fetch [2].
>
> As you can see from [2]:
>
> 1. only static Roles (not dynamic Roles) are currently considered
> 2. the first non-null layout associated to an owned Role is taken
>
> About (1),  I think it would not be difficult to include dynamic Roles as well.

FYI: https://github.com/apache/syncope/commit/d146706121e6fb8d05e8fff09b9ef6e676f5e178

> About (2), I don't think it's easy to merge different AnyLayout information coming from different Roles
>
> Hope this clarifies.
> Regards.
>
> [1] https://github.com/apache/syncope/blob/syncope-2.1.7/client/console/src/main/java/org/apache/syncope/client/console/panels/Realm.java#L166-L167
> [2] https://github.com/apache/syncope/blob/syncope-2.1.7/client/console/src/main/java/org/apache/syncope/client/console/layout/AnyLayoutUtils.java#L73-L96
>
> On 20/10/20 15:36, tempo@net-c.com wrote:
>> Another thing which could go in the same topic is when a user belongs to multiple roles each having its different layout and domains.
>>
>> It seems that only the first role layout (by order in the selection list) is applied anyway the domain where the action is done.
>>
>>
>>> De : tempo@net-c.com
>>> À : user@syncope.apache.org
>>> Sujet : Role layouts does not work when using dynamic membership
>>> Date : 20/10/2020 12:08:12 Europe/Paris
>>>
>>> Hi,
>>>
>>> I use syncope 2.1.7
>>>
>>> I defined wizard builder layouts for all of my roles.
>>> For each role I use dynamic membership in order to set the role to users member of some groups.
>>>
>>> I see that when I use dynamic role membership, the builder wizard layouts defined for the role are not applied to my users in, but if I set like statically the role to my users then the layouts work properly.
>>>
>>> Is it a normal behavior ?
>>>
>>> Thanks. 

-- 
Francesco Chicchiriccò

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

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/


Re: Role layouts does not work when using dynamic membership

Posted by Francesco Chicchiriccò <il...@apache.org>.
Hi,
layout information is fetched by the Realm page [1] via AnyLayoutUtils#fetch [2].

As you can see from [2]:

1. only static Roles (not dynamic Roles) are currently considered
2. the first non-null layout associated to an owned Role is taken

About (1),  I think it would not be difficult to include dynamic Roles as well.
About (2), I don't think it's easy to merge different AnyLayout information coming from different Roles

Hope this clarifies.
Regards.

[1] https://github.com/apache/syncope/blob/syncope-2.1.7/client/console/src/main/java/org/apache/syncope/client/console/panels/Realm.java#L166-L167
[2] https://github.com/apache/syncope/blob/syncope-2.1.7/client/console/src/main/java/org/apache/syncope/client/console/layout/AnyLayoutUtils.java#L73-L96

On 20/10/20 15:36, tempo@net-c.com wrote:
> Another thing which could go in the same topic is when a user belongs to multiple roles each having its different layout and domains.
>
> It seems that only the first role layout (by order in the selection list) is applied anyway the domain where the action is done.
>
>
>> De : tempo@net-c.com
>> À : user@syncope.apache.org
>> Sujet : Role layouts does not work when using dynamic membership
>> Date : 20/10/2020 12:08:12 Europe/Paris
>>
>> Hi,
>>
>> I use syncope 2.1.7
>>
>> I defined wizard builder layouts for all of my roles.
>> For each role I use dynamic membership in order to set the role to users member of some groups.
>>
>> I see that when I use dynamic role membership, the builder wizard layouts defined for the role are not applied to my users in, but if I set like statically the role to my users then the layouts work properly.
>>
>> Is it a normal behavior ?
>>
>> Thanks. 

-- 
Francesco Chicchiriccò

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

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/


Re: Role layouts does not work when using dynamic membership

Posted by te...@net-c.com.
Another thing which could go in the same topic is when a user belongs to multiple roles each having its different layout and domains.


It seems that only the first role layout (by order in the selection list) is applied anyway the domain where the action is done.


De : tempo@net-c.com
À : user@syncope.apache.org
Sujet : Role layouts does not work when using dynamic membership
Date : 20/10/2020 12:08:12 Europe/Paris

Hi,


I use syncope 2.1.7



I defined wizard builder layouts for all of my roles.

For each role I use dynamic membership in order to set the role to users member of some groups.



I see that when I use dynamic role membership, the builder wizard layouts defined for the role are not applied to my users in, but if I set like statically the role to my users then the layouts work properly.



Is it a normal behavior ?



Thanks.