Class CurrentUser

    • Constructor Detail

      • CurrentUser

        public CurrentUser​(PrivateUser user)
    • Method Detail

      • updateDetails

        public void updateDetails​(UserUpdate userUpdate,
                                  CompletionCallback callback,
                                  FailureCallback failure)
        Requests a bulk change of properties for the current user.
        Parameters:
        userUpdate - New user details.
        callback - A callback to indicate if this operation was successful.
        failure - Failure callback. Called in case of error.
      • addIdentity

        public void addIdentity​(Identity identity,
                                CompletionCallback success,
                                Callback<ConflictUser> conflict,
                                FailureCallback failure)
        Adds Identity for the specified provider.
        Parameters:
        identity - Identity to be added.
        success - A callback to indicate if this operation was successful.
        conflict - Called if there was a conflict.
        failure - Called if operation failed.
      • removeIdentity

        public void removeIdentity​(java.lang.String providerId,
                                   CompletionCallback callback,
                                   FailureCallback failure)
        Removes Identity for the specified provider.
        Parameters:
        providerId - The provider connected to an auth identity on the current user to remove. Valid providerIds are found in IdentityProviderIds in addition to custom providers.
        callback - A callback to indicate if this operation was successful.
        failure - Failure callback. Called in case of error.
      • refresh

        public void refresh​(CompletionCallback callback,
                            FailureCallback failure)
        Refresh current user properties.
        Parameters:
        callback - A callback to indicate if this operation was successful.
        failure - Failure callback. Called in case of error.