public class CreateUserAction extends AbstractUsersAction implements Tabbed, Evented<AdminAddedUserEvent>
Modifier and Type | Field and Description |
---|---|
protected String |
confirm |
protected String |
email |
protected String |
fullName |
protected String |
password |
static String |
SEND_EMAIL |
protected boolean |
sendEmail |
user, userKey, username
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
CreateUserAction() |
Modifier and Type | Method and Description |
---|---|
protected void |
addLicensingError() |
boolean |
canAddUsers() |
String |
doDefault()
Default webwork action execution method.
|
String |
execute() |
String |
getConfirm() |
String |
getEmail() |
AdminAddedUserEvent |
getEventToPublish(String result)
Gets the event to publish.
|
String |
getFullName() |
String |
getPassword() |
String |
getSelectedTab()
Returns the key of the tab that should be selected when rendering.
|
boolean |
getSendEmail() |
boolean |
isLicensedToAddMoreUsers() |
boolean |
isMailServerConfigured() |
boolean |
isPermitted() |
boolean |
isSendEmail() |
void |
setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager) |
void |
setConfirm(String confirm) |
void |
setEmail(String email) |
void |
setFullName(String fullName) |
void |
setLicenseService(LicenseService licenseService) |
void |
setMailServerManager(com.atlassian.mail.server.MailServerManager mailServerManager) |
void |
setPassword(String password) |
void |
setSendEmail(boolean sendEmail) |
void |
setUserChecker(UserChecker userChecker) |
void |
setUserFormValidator(UserFormValidator validator) |
void |
setWritableDirectoryExistsCriteria(WritableDirectoryExistsCriteria writableDirectoryExistsCriteria) |
void |
validate() |
getRemoteUsername, getUser, getUserKey, getUsername, isAllowedToAddUsers, setUserKey, setUsername
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserByName, getUserFullName, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSharedMode, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setApiDateFormatService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
public static final String SEND_EMAIL
protected String password
protected String confirm
protected String email
protected String fullName
protected boolean sendEmail
public String doDefault() throws Exception
ConfluenceActionSupport
doDefault
in class ConfluenceActionSupport
Exception
- if something goes wrongpublic void validate()
validate
in interface MessageHolderAware
validate
in interface com.opensymphony.xwork.Validateable
validate
in class com.opensymphony.xwork.ActionSupport
public String execute() throws Exception
execute
in interface com.opensymphony.xwork.Action
execute
in class com.opensymphony.xwork.ActionSupport
Exception
public String getSelectedTab()
Tabbed
e.g. "search" or "create" for the browseusers.vm
getSelectedTab
in interface Tabbed
protected void addLicensingError()
public boolean isLicensedToAddMoreUsers()
public boolean isSendEmail()
public boolean isMailServerConfigured()
public boolean canAddUsers()
public String getPassword()
public void setPassword(String password)
public String getEmail()
public void setEmail(String email)
public boolean getSendEmail()
public void setSendEmail(boolean sendEmail)
public String getFullName()
public void setFullName(String fullName)
public String getConfirm()
public void setConfirm(String confirm)
public void setWritableDirectoryExistsCriteria(WritableDirectoryExistsCriteria writableDirectoryExistsCriteria)
public void setUserChecker(UserChecker userChecker)
public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
public void setUserFormValidator(UserFormValidator validator)
public void setLicenseService(LicenseService licenseService)
public void setMailServerManager(com.atlassian.mail.server.MailServerManager mailServerManager)
public AdminAddedUserEvent getEventToPublish(String result)
Evented
getEventToPublish
in interface Evented<AdminAddedUserEvent>
result
- the result of the action executing.public boolean isPermitted()
isPermitted
in class AbstractUsersAction
Copyright © 2003–2017 Atlassian. All rights reserved.