public class

AddUser

extends JiraWebActionSupport
java.lang.Object
   ↳ webwork.action.ActionSupport
     ↳ com.atlassian.jira.action.JiraActionSupport
       ↳ com.atlassian.jira.web.action.JiraWebActionSupport
         ↳ com.atlassian.jira.web.action.admin.user.AddUser

Class Overview

Responsible for handling the requests to add a new JIRA User.

Summary

[Expand]
Inherited Constants
From class com.atlassian.jira.web.action.JiraWebActionSupport
From interface webwork.action.Action
[Expand]
Inherited Fields
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
Public Constructors
AddUser(UserService userService, UserManager userManager, WebInterfaceManager webInterfaceManager, EventPublisher eventPublisher, CreateUserApplicationHelper applicationHelper, ApplicationRoleManager roleManager)
Public Methods
String doDefault()
Processes a request to render the input form to fill out the new user's details(username, password, full-name, email ...)
String getApplicationAccessWebPanelHtml()
Map<LongBoolean> getCanDirectoryUpdatePasswordMap()
String getCancelUrl()
String[] getCreatedUser()
List<Directory> getDirectories()
Long getDirectoryId()
String getEmail()
String getFullname()
boolean getHasCreatedUsers()
String getPassword()
List<String> getPasswordErrors()
@Nonnull List<UserApplicationHelper.ApplicationSelection> getSelectableApplications()
@Nonnull Set<ApplicationKey> getSelectedApplicationKeys()
String[] getSelectedApplications()
String getUserCountWebPanelHtml()
String getUsername()
String getWebPanelHtml()
boolean hasOnlyOneApplication()
boolean hasPasswordWritableDirectory()
boolean isCreateAnother()
boolean isSendEmail()
void setCreateAnother(boolean createAnother)
void setCreatedUser(String[] createdUser)
void setDirectoryId(Long directoryId)
void setEmail(String email)
void setFullname(String fullname)
void setPassword(String password)
void setSelectedApplications(String[] selectedApplications)
void setSendEmail(boolean sendEmail)
void setUsername(String username)
Protected Methods
List<String> createdUsers()
String doExecute()
Processes a request to create a user using the specified url parameters.
void doValidation()
[Expand]
Inherited Methods
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
From class java.lang.Object
From interface com.atlassian.jira.util.ErrorCollection
From interface com.atlassian.jira.util.I18nHelper
From interface com.atlassian.jira.web.HttpServletVariables
From interface com.atlassian.jira.web.util.AuthorizationSupport
From interface webwork.action.Action
From interface webwork.action.CommandDriven
From interface webwork.action.IllegalArgumentAware

Public Constructors

public AddUser (UserService userService, UserManager userManager, WebInterfaceManager webInterfaceManager, EventPublisher eventPublisher, CreateUserApplicationHelper applicationHelper, ApplicationRoleManager roleManager)

Public Methods

public String doDefault ()

Processes a request to render the input form to fill out the new user's details(username, password, full-name, email ...)

Returns
  • INPUT the input form to fill out the new user's details(username, password, full-name, email ...)

public String getApplicationAccessWebPanelHtml ()

public Map<LongBoolean> getCanDirectoryUpdatePasswordMap ()

public String getCancelUrl ()

public String[] getCreatedUser ()

public List<Directory> getDirectories ()

public Long getDirectoryId ()

public String getEmail ()

public String getFullname ()

public boolean getHasCreatedUsers ()

public String getPassword ()

public List<String> getPasswordErrors ()

@Nonnull public List<UserApplicationHelper.ApplicationSelection> getSelectableApplications ()

@Nonnull public Set<ApplicationKey> getSelectedApplicationKeys ()

public String[] getSelectedApplications ()

public String getUserCountWebPanelHtml ()

public String getUsername ()

public String getWebPanelHtml ()

public boolean hasOnlyOneApplication ()

public boolean hasPasswordWritableDirectory ()

public boolean isCreateAnother ()

public boolean isSendEmail ()

public void setCreateAnother (boolean createAnother)

public void setCreatedUser (String[] createdUser)

public void setDirectoryId (Long directoryId)

public void setEmail (String email)

public void setFullname (String fullname)

public void setPassword (String password)

public void setSelectedApplications (String[] selectedApplications)

public void setSendEmail (boolean sendEmail)

public void setUsername (String username)

Protected Methods

protected List<String> createdUsers ()

protected String doExecute ()

Processes a request to create a user using the specified url parameters.

Returns
  • if there are input error this will return ERROR; otherwise, it will redirect to the View User page for the created user.

protected void doValidation ()