Class CreateUserAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- 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
public class CreateUserAction extends SearchUsersAction implements Tabbed, Evented<AdminAddedUserEvent>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
confirm
protected String
email
protected String
fullName
protected String
password
static String
SEND_EMAIL
protected boolean
sendEmail
-
Fields inherited from class com.atlassian.confluence.user.actions.AbstractSearchCrowdUsersAction
SHOW_ALL_SEARCH_TERM
-
Fields inherited from class com.atlassian.confluence.user.actions.AbstractUsersAction
user, userKey, username
-
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, systemInformationService, userAccessor, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description CreateUserAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
isPermitted()
void
setConfirm(String confirm)
void
setEmail(String email)
void
setFullName(String fullName)
void
setPassword(String password)
void
setSendEmail(boolean sendEmail)
void
setUserFormValidator(UserFormValidator validator)
void
validate()
-
Methods inherited from class com.atlassian.confluence.user.actions.SearchUsersAction
canAddUsers, doCreateUserForm, doInviteUserForm, doSignUpUserForm, doUserSearch, getBreadcrumb, getEventPublisher, getLoginInfo, isMailServerConfigured, isSendEmailDefault, publishEvent, setBandanaManager, setEventPublisher, setLoginManager, setMailServerExistsCriteria, setSendEmailDefault, setWritableDirectoryExistsCriteria
-
Methods inherited from class com.atlassian.confluence.user.actions.AbstractSearchCrowdUsersAction
getEmailTerm, getFullnameTerm, getLicenseErrorHtml, getOperator, getOperators, getPageRequest, getPageResponse, getResultsPerPage, getResultsPerPageOptions, getSearchTerm, getUsernameTerm, getUserSearchService, isShowAll, isShowUnlicensedUsers, isSupportsSimpleSearch, setEmailTerm, setFullnameTerm, setLicenseService, setOperator, setPageResponse, setResultsPerPage, setSearchTerm, setSelectedTab, setShowUnlicensedUsers, setStartIndex, setUserChecker, setUsernameTerm, setUserSearchService
-
Methods inherited from class com.atlassian.confluence.user.actions.AbstractUsersAction
getRemoteUsername, getUrlEncodeUsername, getUser, getUserKey, getUsername, isLicensedToAddMoreUsers, setUserKey, setUsername
-
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getBootstrapStatusProvider, getCancel, getCancelResult, getConfluenceAccessManager, getContentUiSupport, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocBean, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageJs, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUserAccessor, getUserByName, getUserFullName, getUserHasBrowseUsersPermission, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiDateFormatService, setApiPersonService, setBootstrapManager, setBootstrapStatusProvider, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, useSkipAccessCheck, withServletRequestSupplier
-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors
-
-
-
-
Method Detail
-
validate
public void validate()
- Specified by:
validate
in interfaceMessageHolderAware
- Specified by:
validate
in interfacecom.opensymphony.xwork2.Validateable
- Overrides:
validate
in classAbstractSearchCrowdUsersAction
-
execute
public String execute()
- Specified by:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in classSearchUsersAction
-
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 interfaceTabbed
- Overrides:
getSelectedTab
in classAbstractSearchCrowdUsersAction
-
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)
-
setUserFormValidator
public void setUserFormValidator(UserFormValidator validator)
-
getEventToPublish
public AdminAddedUserEvent getEventToPublish(String result)
Description copied from interface:Evented
Gets the event to publish.- Specified by:
getEventToPublish
in interfaceEvented<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()
- Overrides:
isPermitted
in classSearchUsersAction
-
-