Interface RemotePersonService

  • All Known Implementing Classes:
    RemotePersonServiceImpl

    public interface RemotePersonService
    PersonService implementation that communicates with Confluence remotely using the Confluence REST API.

    Provides promise returning equivalents for the methods in PersonService.

    • Method Detail

      • disable

        CompletionStage<Void> disable​(String username)
        Disable the given User identified by username. This method is idempotent i.e. if the user is already disabled then no action will be taken.
        Parameters:
        username - The username identifying the given user.
        Since:
        8.2.0
      • enable

        CompletionStage<Void> enable​(String username)
        Enable the given User identified by username. This method is idempotent i.e. if the user is already enabled then no action will be taken.
        Parameters:
        username - The username identifying the given user.
        Since:
        8.2.0
      • addMembership

        CompletionStage<Void> addMembership​(String username,
                                            String groupName)
        Add the given User identified by username to the given Group identified by groupName. This method is idempotent i.e. if the membership already exists then no action will be taken.
        Parameters:
        username - The username identifying the given user.
        groupName - The group name identifying the given group.
        Returns:
        CompletionStage
        Since:
        8.2.0
      • removeMembership

        CompletionStage<Void> removeMembership​(String username,
                                               String groupName)
        Remove the given User identified by username from the given Group identified by groupName. This method is idempotent i.e. if the membership is not present then no action will be taken.
        Parameters:
        username - The username identifying the given user.
        groupName - The group name identifying the given group.
        Returns:
        CompletionStage
        Since:
        8.2.0