Package com.atlassian.jira.rest.v2.issue
Class CurrentUserResource
java.lang.Object
com.atlassian.jira.rest.v2.issue.CurrentUserResource
@Path("myself")
@Consumes("application/json")
@Produces("application/json")
@ExperimentalApi
public class CurrentUserResource
extends Object
Currently logged user resource
- Since:
- 6.1
-
Constructor Summary
ConstructorsConstructorDescriptionCurrentUserResource(UserUtil userUtil, UserManager userManager, PasswordPolicyManager passwordPolicyManager, com.atlassian.event.api.EventPublisher eventPublisher, I18nHelper i18n, EmailFormatter emailFormatter, JiraAuthenticationContext authContext, TimeZoneManager timeZoneManager, AvatarService avatarService, JiraBaseUrls jiraBaseUrls, LoginService loginService, I18nHelper.BeanFactory beanFactory, ApplicationRoleBeanConverter applicationRoleBeanConverter, ApplicationRoleManager applicationRoleManager) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsechangeMyPassword(PasswordBean passwordBean) Modify caller password.jakarta.ws.rs.core.ResponsegetUser()Returns currently logged user.jakarta.ws.rs.core.ResponseupdateUser(UserWriteBean userBean) Modify currently logged user.
-
Constructor Details
-
CurrentUserResource
@Inject public CurrentUserResource(UserUtil userUtil, UserManager userManager, PasswordPolicyManager passwordPolicyManager, com.atlassian.event.api.EventPublisher eventPublisher, I18nHelper i18n, EmailFormatter emailFormatter, JiraAuthenticationContext authContext, TimeZoneManager timeZoneManager, AvatarService avatarService, JiraBaseUrls jiraBaseUrls, LoginService loginService, I18nHelper.BeanFactory beanFactory, ApplicationRoleBeanConverter applicationRoleBeanConverter, ApplicationRoleManager applicationRoleManager)
-
-
Method Details
-
getUser
@GET public jakarta.ws.rs.core.Response getUser()Returns currently logged user. This resource cannot be accessed anonymously. -
updateUser
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
-
changeMyPassword
@PUT @Path("password") public jakarta.ws.rs.core.Response changeMyPassword(PasswordBean passwordBean) Modify caller password.
-