@ExperimentalApi public class

CurrentUserResource

extends Object
java.lang.Object
   ↳ com.atlassian.jira.rest.v2.issue.CurrentUserResource

@ExperimentalApi

This class is considered usable by external developers but its contracts have not stabilized.

Experimental APIs may be changed at any time before being marked @Internal or @PublicApi.

Class Overview

Currently logged user resource

Summary

Public Constructors
CurrentUserResource(UserService userService, UserUtil userUtil, UserManager userManager, PasswordPolicyManager passwordPolicyManager, EventPublisher eventPublisher, I18nHelper i18n, EmailFormatter emailFormatter, JiraAuthenticationContext authContext, TimeZoneManager timeZoneManager, AvatarService avatarService, JiraBaseUrls jiraBaseUrls)
Public Methods
Response changeMyPassword(PasswordBean passwordBean)
Modify caller password.
Response getUser()
Returns currently logged user.
Response updateUser(UserWriteBean userBean)
Modify currently logged user.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CurrentUserResource (UserService userService, UserUtil userUtil, UserManager userManager, PasswordPolicyManager passwordPolicyManager, EventPublisher eventPublisher, I18nHelper i18n, EmailFormatter emailFormatter, JiraAuthenticationContext authContext, TimeZoneManager timeZoneManager, AvatarService avatarService, JiraBaseUrls jiraBaseUrls)

Public Methods

public Response changeMyPassword (PasswordBean passwordBean)

Modify caller password.

public Response getUser ()

Returns currently logged user. This resource cannot be accessed anonymously.

public Response updateUser (UserWriteBean userBean)

Modify currently logged user. The "value" fields present will override the existing value. Fields skipped in request will not be changed. Only email and display name can be change that way.

Returns
  • a user