java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.jira.web.action.admin.user.AddUser
All Implemented Interfaces:
ErrorCollection, I18nHelper, HttpServletVariables, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class AddUser extends JiraWebActionSupport
Responsible for handling the requests to add a new JIRA User.
See Also:
  • Constructor Details

  • Method Details

    • doDefault

      public String doDefault()
      Processes a request to render the input form to fill out the new user's details(username, password, full-name, email ...)
      Overrides:
      doDefault in class webwork.action.ActionSupport
      Returns:
      Action.INPUT the input form to fill out the new user's details(username, password, full-name, email ...)
    • doValidation

      protected void doValidation()
      Overrides:
      doValidation in class webwork.action.ActionSupport
    • doExecute

      protected String doExecute()
      Processes a request to create a user using the specified url parameters.
      Overrides:
      doExecute in class webwork.action.ActionSupport
      Returns:
      if there are input error this will return Action.ERROR; otherwise, it will redirect to the View User page for the created user.
    • createdUsers

      protected List<String> createdUsers()
    • getUsername

      public String getUsername()
    • setUsername

      public void setUsername(String username)
    • getFullname

      public String getFullname()
    • setFullname

      public void setFullname(String fullname)
    • getEmail

      public String getEmail()
    • setEmail

      public void setEmail(String email)
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
    • getPasswordErrors

      public List<String> getPasswordErrors()
    • getPasswordError

      public List<String> getPasswordError()
    • hasPasswordWritableDirectory

      public boolean hasPasswordWritableDirectory()
    • isSendEmail

      public boolean isSendEmail()
    • setSendEmail

      public void setSendEmail(boolean sendEmail)
    • isCreateAnother

      public boolean isCreateAnother()
    • setCreateAnother

      public void setCreateAnother(boolean createAnother)
    • getDirectoryId

      public Long getDirectoryId()
    • setDirectoryId

      public void setDirectoryId(Long directoryId)
    • getDirectories

      public List<com.atlassian.crowd.embedded.api.Directory> getDirectories()
    • getCancelUrl

      public String getCancelUrl()
    • getCanDirectoryUpdatePasswordMap

      public Map<Long,Boolean> getCanDirectoryUpdatePasswordMap()
    • getUserCountWebPanelHtml

      public String getUserCountWebPanelHtml()
    • getWebPanelHtml

      public String getWebPanelHtml()
    • getApplicationAccessWebPanelHtml

      public String getApplicationAccessWebPanelHtml()
    • getSelectedApplications

      public String[] getSelectedApplications()
    • setSelectedApplications

      public void setSelectedApplications(String[] selectedApplications)
    • getHasCreatedUsers

      public boolean getHasCreatedUsers()
    • getCreatedUser

      public String[] getCreatedUser()
    • setCreatedUser

      public void setCreatedUser(String[] createdUser)
    • getSelectedApplicationKeys

      @Nonnull public Set<com.atlassian.application.api.ApplicationKey> getSelectedApplicationKeys()
    • hasOnlyOneApplication

      public boolean hasOnlyOneApplication()
    • getSelectableApplications

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