public class AddUser extends JiraWebActionSupport
JiraWebActionSupport.MessageType
ErrorCollection.Reason
I18nHelper.BeanFactory
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters
log
Constructor and Description |
---|
AddUser(UserService userService,
UserUtil userUtil,
UserManager userManager,
com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
String |
doDefault()
Processes a request to render the input form to fill out the new user's details(username, password, full-name,
email ...)
|
protected String |
doExecute()
Processes a request to create a user using the specified url parameters.
|
protected void |
doValidation() |
Map<Long,Boolean> |
getCanDirectoryUpdatePasswordMap() |
String |
getConfirm() |
List<com.atlassian.crowd.embedded.api.Directory> |
getDirectories() |
Long |
getDirectoryId() |
String |
getEmail() |
String |
getFullname() |
String |
getPassword() |
List<WebErrorMessage> |
getPasswordErrors() |
String |
getUserCountWebPanelHtml() |
String |
getUsername() |
String |
getWebPanelHtml() |
boolean |
hasPasswordWritableDirectory() |
boolean |
hasReachedUserLimit() |
boolean |
isSendEmail() |
void |
setConfirm(String confirm) |
void |
setDirectoryId(Long directoryId) |
void |
setEmail(String email) |
void |
setFullname(String fullname) |
void |
setPassword(String password) |
void |
setSendEmail(boolean sendEmail) |
void |
setUsername(String username) |
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addMessageToResponse, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getTimeFormat, getUriValidator, getUserFullName, getUserManager, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, hasGlobalPermission, hasIssuePermission, hasIssuePermission, hasPermission, hasProjectPermission, hasProjectPermission, htmlEncode, insertContextPath, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, urlEncode
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getDelegator, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getRemoteUser, getResourceBundle, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUntransformedRawText, getUserPreferences, getWatcherManager, hasAnyErrors, isIndexing, isKeyDefined, removeKeyOrAddError
addError, addErrorMessage, getCommandName, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addError, addErrorMessage, addErrorMessages, addErrors, hasAnyErrors, setErrorMessages
public AddUser(UserService userService, UserUtil userUtil, UserManager userManager, com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager, com.atlassian.event.api.EventPublisher eventPublisher)
public String doDefault()
doDefault
in class webwork.action.ActionSupport
Action.INPUT
the input form to fill out the new user's details(username, password, full-name, email
...)protected void doValidation()
doValidation
in class webwork.action.ActionSupport
protected String doExecute()
doExecute
in class webwork.action.ActionSupport
Action.ERROR
; otherwise, it will redirect to the View User
page for the created user.public boolean hasReachedUserLimit()
public String getUsername()
public void setUsername(String username)
public String getFullname()
public void setFullname(String fullname)
public String getEmail()
public void setEmail(String email)
public String getPassword()
public void setPassword(String password)
public List<WebErrorMessage> getPasswordErrors()
public boolean hasPasswordWritableDirectory()
public boolean isSendEmail()
public void setSendEmail(boolean sendEmail)
public String getConfirm()
public void setConfirm(String confirm)
public Long getDirectoryId()
public void setDirectoryId(Long directoryId)
public List<com.atlassian.crowd.embedded.api.Directory> getDirectories()
public String getUserCountWebPanelHtml()
public String getWebPanelHtml()
Copyright © 2002-2015 Atlassian. All Rights Reserved.