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

      • create

        CompletionStage<UserKey> create​(UserDetailsForCreation userDetailsForCreation)
        Create a new active user
        Parameters:
        userDetailsForCreation - User Details
        Returns:
        com.atlassian.confluence.api.model.people.UserKey User Key
        Since:
        8.4.0
      • 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
      • changeUserPassword

        CompletionStage<Void> changeUserPassword​(String username,
                                                 String newPass)
        Change the password of the given user.
        Parameters:
        username - The username identifying the given user.
        newPass - New password
        Returns:
        CompletionStage
        Since:
        8.4.0
      • changeMyPassword

        CompletionStage<Void> changeMyPassword​(PasswordChangeDetails passwordChangeDetails)
        Change the password of the current user.
        Parameters:
        passwordChangeDetails - Password change details
        Returns:
        CompletionStage
        Since:
        8.4.0