[midPoint] Collections for Role catalog
    Yakov Revyakin 
    yrevyakin at gmail.com
       
    Tue Jul 16 14:31:21 CEST 2024
    
    
  
Some playing shows that the following definition based on ArchetypeType
doesn't work
            <roleCatalog>
                <collection>
                    <identifier>workstationAdminRoles</identifier>
                    <default>true</default>
                    <collectionRef
oid="304cbdd8-1386-401d-8f60-b5c935f71570" relation="org:default"
type="c:ArchetypeType"/>
                </collection>
            </roleCatalog>
because of error:
Caused by: java.lang.ClassCastException: class
com.evolveum.midpoint.xml.ns._public.common.common_3.ArchetypeType cannot
be cast to class
com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectCollectionType
(com.evolveum.midpoint.xml.ns._public.common.common_3.ArchetypeType and
com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectCollectionType
are in unnamed module of loader
org.springframework.boot.loader.LaunchedURLClassLoader @5e955596)
This occurs on Midpoint 4.8.3
If use objectCollection proxy the definition should look like this
            <roleCatalog>
                <collection>
                    <identifier>workstationAdminRoles</identifier>
                    <collectionRef
oid="2613a987-8911-45b7-ae6d-09a93c183f8c" relation="org:default"
type="c:ObjectCollectionType"/>
                </collection>
            <r/oleCatalog>
identifier must be set to something
On Tue, 16 Jul 2024 at 13:51, Yakov Revyakin <yrevyakin at gmail.com> wrote:
> Hi all,
> I'm a bit confused because I'm unsuccessful in adding custom collections
> to roleCatalog in SystemConfiguration.
> For example,
> I'm replacing default collection
>
>             <roleCatalog>
>                 <collection>
>                     <identifier>allRoles</identifier>
>                     <default>true</default>
>                     <collectionIdentifier>allRoles</collectionIdentifier>
>                 </collection>
>             </roleCatalog>
>
> with custom
>
>             <roleCatalog>
>                 <collection>
>                     <default>true</default>
>                     <collectionRef
> oid="304cbdd8-1386-401d-8f60-b5c935f71570" relation="org:default"
> type="c:ArchetypeType"/>
>                 </collection>
>             </roleCatalog>
>
> This results in an empty collection list in the role catalog UI.
> Any other combinations like ref to custom collection which in its turn
> includes filter by archetype have the same "income".
> What is wrong?
>
> Thanks,
> Yakov
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20240716/4ea378e9/attachment.htm>
    
    
More information about the midPoint
mailing list