Class CreateUserAction

All Implemented Interfaces:
Tabbed, Evented<AdminAddedUserEvent>, WebInterface, BreadcrumbAware, MessageHolderAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.Validateable

public class CreateUserAction extends SearchUsersAction implements Tabbed, Evented<AdminAddedUserEvent>
See Also:
  • Field Details

    • SEND_EMAIL

      public static final String SEND_EMAIL
      See Also:
    • password

      protected String password
    • confirm

      protected String confirm
    • email

      protected String email
    • fullName

      protected String fullName
    • sendEmail

      protected boolean sendEmail
  • Constructor Details

    • CreateUserAction

      public CreateUserAction()
  • Method Details

    • validate

      public void validate()
      Specified by:
      validate in interface MessageHolderAware
      Specified by:
      validate in interface org.apache.struts2.Validateable
      Overrides:
      validate in class AbstractSearchCrowdUsersAction
    • execute

      public String execute()
      Specified by:
      execute in interface org.apache.struts2.action.Action
      Overrides:
      execute in class SearchUsersAction
    • getSelectedTab

      public String getSelectedTab()
      Description copied from interface: Tabbed
      Returns the key of the tab that should be selected when rendering.

      e.g. "search" or "create" for the browseusers.vm

      Specified by:
      getSelectedTab in interface Tabbed
      Overrides:
      getSelectedTab in class AbstractSearchCrowdUsersAction
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
    • getEmail

      public String getEmail()
    • setEmail

      public void setEmail(String email)
    • getSendEmail

      public boolean getSendEmail()
    • setSendEmail

      public void setSendEmail(boolean sendEmail)
    • getFullName

      public String getFullName()
    • setFullName

      public void setFullName(String fullName)
    • getConfirm

      public String getConfirm()
    • setConfirm

      public void setConfirm(String confirm)
    • getDirectory

      public com.atlassian.crowd.embedded.api.Directory getDirectory()
    • setDirectoryId

      public void setDirectoryId(long directoryId)
    • setUserFormValidator

      public void setUserFormValidator(UserFormValidator validator)
    • setUserAccessor

      public void setUserAccessor(UserAccessorInternal userAccessorInternal)
    • getEventToPublish

      public AdminAddedUserEvent getEventToPublish(String result)
      Description copied from interface: Evented
      Gets the event to publish.
      Specified by:
      getEventToPublish in interface Evented<AdminAddedUserEvent>
      Parameters:
      result - the result of the action executing.
      Returns:
      the event. Can be null, in which case no event will be published.
    • isPermitted

      public boolean isPermitted()
      Description copied from class: ConfluenceActionSupport
      Overrides:
      isPermitted in class SearchUsersAction