Skip to content

new connector ver, tweak live sync #151

Merged
merged 1 commit into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,62 @@
<fetchStrategy>explicit</fetchStrategy>
</attribute>

<association>
<ref>ri:subjects</ref>
<inbound>
<expression>
<assignmentTargetSearch>
<targetType>c:OrgType</targetType>
<filter>
<q:equal>
<q:path>name</q:path>
<expression>
<script>
<code>
def groupName;
if (entitlement!=null){
def attrs = entitlement.getAttributes();
pcvi = attrs.asPrismContainerValue().getItems();

for (obj in pcvi){
if (obj.isSingleValue()){

if("uid".equals(obj?.getElementName().toString())){

groupName = obj?.getValue()?.getRealValue()

//TODO remove log
log.info("The group name: " +groupName)

return groupName
}
}
}

}

return groupName;
</code>
</script>
</expression>
</q:equal>
</filter>
</assignmentTargetSearch>
</expression>
<target>
<path>assignment</path>
</target>
</inbound>
<kind>account</kind>
<intent>default</intent>
<direction>subjectToObject</direction>
<associationAttribute>ri:members</associationAttribute>
<valueAttribute>icfs:uid</valueAttribute>
<shortcutAssociationAttribute>ri:member_of</shortcutAssociationAttribute>
<shortcutValueAttribute>icfs:uid</shortcutValueAttribute>
<explicitReferentialIntegrity>false</explicitReferentialIntegrity>
</association>

<correlation>
<correlators>
<items>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
oid="5a821505-7318-4364-9a2f-501b8bf30b44">
<name>Groups: Group Livesync</name>
<description>Grouper live synchronization task for groups. It will poll changelog and pull in changes</description>
<taskIdentifier>1494860533840-0-1</taskIdentifier>
oid="552112fc-9546-4e63-a170-339d99a3455e">
<name>Grouper Livesync</name>
<description>Grouper live synchronization task for groups and users. It will poll changelog and pull in changes</description>
<ownerRef oid="00000000-0000-0000-0000-000000000002"/>
<dependent>1494860534232132-0-1</dependent>
<executionStatus>running</executionStatus>
<executionStatus>runnable</executionStatus>
<category>Recomputation</category>
<indestructible>true</indestructible>
<objectRef oid="fb0bbf07-e33f-4ddd-85a1-16a7edc237f2" type="c:ResourceType"/>
<binding>tight</binding>
<schedule>
<recurrence>recurring</recurrence>
Expand All @@ -22,10 +19,8 @@
<liveSynchronization>
<resourceObjects>
<resourceRef oid="fb0bbf07-e33f-4ddd-85a1-16a7edc237f2"/>
<objectclass>GroupObjectClass</objectclass>
</resourceObjects>
</liveSynchronization>
</work>
</activity>
</task>

Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<progress>33</progress>
<binding>loose</binding>
<schedule>
<interval>900</interval>
<interval>1200</interval>
</schedule>
<activity>
<work>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<progress>98</progress>
<binding>loose</binding>
<schedule>
<interval>900</interval>
<interval>1200</interval>
</schedule>
<activity>
<work>
Expand Down