Interface AutoMembershipConfig

    • Method Detail

      • getName

        String getName()
        Returns the name of the sync handler for which this configuration takes effect.
        Returns:
        the sync handler name.
        See Also:
        PARAM_SYNC_HANDLER_NAME
      • getAutoMembership

        @NotNull
        @NotNull Set<String> getAutoMembership​(@NotNull
                                               @NotNull Authorizable authorizable)
        Returns the group ids which the given synchronized external user/group should automatically be added as member.
        Parameters:
        authorizable - An external identity that has been synchronized into the repository.
        Returns:
        A set of group ids which define the automatic membership for the given authorizable.
      • getAutoMembers

        Iterator<Authorizable> getAutoMembers​(@NotNull
                                              @NotNull UserManager userManager,
                                              @NotNull
                                              @NotNull Group group)
        Best-effort attempt to retrieve all automatically defined members of the given Group.
        Parameters:
        userManager - The user manager associated with the given group.
        group - The target group for which the known automatically added synced identities should be retrieved.
        Returns:
        An iterator of synced external identities. If the given group is not configured to hold any automatic members or if the implementation is not able to determined the members an empty iterator is returned.
        See Also:
        DynamicMembershipProvider.getMembers(Group, boolean)