@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(UserUtil userUtil, UserManager userManager, PasswordPolicyManager passwordPolicyManager, EventPublisher eventPublisher, I18nHelper i18n, EmailFormatter emailFormatter, JiraAuthenticationContext authContext, TimeZoneManager timeZoneManager, AvatarService avatarService, JiraBaseUrls jiraBaseUrls, LoginService loginService, I18nHelper.BeanFactory beanFactory, JiraAvatarSupport jiraAvatarSupport, ApplicationRoleBeanConverter applicationRoleBeanConverter, ApplicationRoleManager applicationRoleManager)
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 (UserUtil userUtil, UserManager userManager, PasswordPolicyManager passwordPolicyManager, EventPublisher eventPublisher, I18nHelper i18n, EmailFormatter emailFormatter, JiraAuthenticationContext authContext, TimeZoneManager timeZoneManager, AvatarService avatarService, JiraBaseUrls jiraBaseUrls, LoginService loginService, I18nHelper.BeanFactory beanFactory, JiraAvatarSupport jiraAvatarSupport, ApplicationRoleBeanConverter applicationRoleBeanConverter, ApplicationRoleManager applicationRoleManager)

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. Requires user password.

Returns
  • a user