Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-3042

Catch-all objectSynchronization configuration...

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.4 (Heisenberg)
    • Fix Version/s: distant future
    • Component/s: None
    • Labels:
      None

      Description

      Use case: I have 26 objectType configurations (accounts, entitlements, generics), and all of them have also objectSynchronization parts with proper conditions to set kind/intent when synchronizing.

      If I want to have also "universal" entitlement configuration like this:

              <objectType>
                  <kind>entitlement</kind>
                  <intent>group</intent>
                  <description>Common Groups (available for all account types)</description>
                  <default>true</default>
                  <objectClass>ri:groupOfUniqueNames</objectClass>
      	</objectType>
      

      for all other associations (e.g. groups created outside midPoint by administrators).
      So I need something like this:

              	<objectSynchronization>
                          <name>Group (all others; assumed in ou=System,ou=Groups,...)</name>
                          <objectClass>ri:groupOfUniqueNames</objectClass>
                          <kind>entitlement</kind>
                          <intent>group</intent>
      	            <enabled>true</enabled>
                          <condition>
                              <script>
                                  <code>... WHAT HERE ??? ...</code>
                              </script>
                          </condition>
      		</objectSynchronization>
      

      But how to define the condition there? It should be "all except the others", but as the synchronization configuration is evaluated in random order, the conditions must be mutually exclusive, but how to create "default"?
      Maybe we need something like catch-all which would be evaluated if no other condition matched...

        Attachments

          Activity

            People

            • Assignee:
              semancik Radovan Semancik
              Reporter:
              vix Ivan Noris
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: