Interface GroupAction

    • Method Detail

      • onMembersAdded

        void onMembersAdded​(@NotNull
                            @NotNull Group group,
                            @NotNull
                            @NotNull java.lang.Iterable<java.lang.String> memberIds,
                            @NotNull
                            @NotNull java.lang.Iterable<java.lang.String> failedIds,
                            @NotNull
                            @NotNull Root root,
                            @NotNull
                            @NotNull NamePathMapper namePathMapper)
                     throws RepositoryException
        Multiple members were added to the Group. The members are provided as an iterable of their string-based IDs, as some members may no longer or not yet exist. Implementations may perform specific modifications or validations.
        Parameters:
        group - The Group to which the members were added.
        memberIds - An Iterable of the member IDs.
        root - The root associated with the user manager.
        namePathMapper -
        Throws:
        RepositoryException - If an error occurs.
      • onMembersAddedContentId

        void onMembersAddedContentId​(@NotNull
                                     @NotNull Group group,
                                     @NotNull
                                     @NotNull java.lang.Iterable<java.lang.String> memberContentIds,
                                     @NotNull
                                     @NotNull java.lang.Iterable<java.lang.String> failedIds,
                                     @NotNull
                                     @NotNull Root root,
                                     @NotNull
                                     @NotNull NamePathMapper namePathMapper)
                              throws RepositoryException
        Multiple members were added to the Group during XML group import. The members are provided as an iterable of their string-based content IDs (UUIDs), as these members do not exist yet (group imported before users). Implementations may track such content ids for later processing once the user identified by the content id is added.

        Implementations may perform specific modifications or validations.

        Parameters:
        group - The Group to which the members were added.
        memberContentIds - An Iterable of the member content IDs (UUIDs).
        root - The root associated with the user manager.
        namePathMapper -
        Throws:
        RepositoryException - If an error occurs.
      • onMembersRemoved

        void onMembersRemoved​(@NotNull
                              @NotNull Group group,
                              @NotNull
                              @NotNull java.lang.Iterable<java.lang.String> memberIds,
                              @NotNull
                              @NotNull java.lang.Iterable<java.lang.String> failedIds,
                              @NotNull
                              @NotNull Root root,
                              @NotNull
                              @NotNull NamePathMapper namePathMapper)
                       throws RepositoryException
        Multiple members were removed from the Group. The members are provided as an iterable of their string-based IDs, as some members may no longer or not yet exist. Implementations may perform specific modifications or validations.
        Parameters:
        group - The Group from which the members were removed.
        memberIds - An Iterable of the member IDs.
        root - The root associated with the user manager.
        namePathMapper -
        Throws:
        RepositoryException - If an error occurs.