Class SignUpAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- com.atlassian.confluence.core.ConfluenceActionSupport
-
- com.atlassian.confluence.user.actions.AbstractUsersAction
-
- com.atlassian.confluence.user.actions.AbstractLoginSignupAction
-
- com.atlassian.confluence.user.actions.SignUpAction
-
- All Implemented Interfaces:
Evented<UserSignupEvent>
,WebInterface
,CaptchaAware
,ExternalUserManagementAware
,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 SignUpAction extends AbstractLoginSignupAction implements Evented<UserSignupEvent>, ExternalUserManagementAware, CaptchaAware
A form where new users may create accounts for themselves, given a valid token.- Since:
- 4.1
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.user.actions.AbstractLoginSignupAction
os_destination, signupManager, token, upgradeManager
-
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, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description SignUpAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkSignupAllowed()
String
doDefault()
Convenient Action execution method which defaults to returning INPUTString
execute()
String
getConfirm()
String
getEmail()
UserSignupEvent
getEventToPublish(String result)
Gets the event to publish.String
getFullName()
String
getLinkLoginURL(javax.servlet.http.HttpServletRequest request)
String
getPassword()
boolean
isPermitted()
void
setConfirm(String confirm)
void
setEmail(String email)
void
setFullName(String fullName)
void
setPassword(String password)
void
setPermissionManager(PermissionManager permissionManager)
void
setSignupValidator(SignupValidator signupValidator)
void
setUserFormValidator(UserFormValidator userFormValidator)
void
validate()
void
validateExecute()
void
validateUserDoesNotExist()
-
Methods inherited from class com.atlassian.confluence.user.actions.AbstractLoginSignupAction
getCaptchaManager, getClusterManager, getCurrentYearAsString, getLanguage, getLanguages, getOs_destination, getSignupManager, getSignupURL, getToken, getUpgradeManager, isBrowserLanguageEnabled, isFromNotPermitted, isLogout, isMobileAppWebView, isShowSignUp, setCaptchaManager, setClusterManager, setDarkFeaturesManager, setFromNotPermitted, setLanguage, setLogout, setOs_destination, setSignupManager, setToken, setUpgradeManager, setWritableDirectoryExistsCriteria, shouldRememberMeCheckboxBeOmitted, shouldShowMobileBanner
-
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, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getBootstrapStatusProvider, getCancel, getCancelResult, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, 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, setApiContentUiSupport, setApiDateFormatService, setApiPersonService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, 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 classcom.opensymphony.xwork2.ActionSupport
-
checkSignupAllowed
public void checkSignupAllowed()
-
doDefault
public String doDefault() throws Exception
Description copied from class:ConfluenceActionSupport
Convenient Action execution method which defaults to returning INPUT- Overrides:
doDefault
in classAbstractLoginSignupAction
- Throws:
Exception
-
execute
@XsrfProtectionExcluded public String execute() throws Exception
- Specified by:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in classcom.opensymphony.xwork2.ActionSupport
- Throws:
Exception
-
validateExecute
public void validateExecute()
-
validateUserDoesNotExist
public void validateUserDoesNotExist()
-
getEventToPublish
public UserSignupEvent getEventToPublish(String result)
Description copied from interface:Evented
Gets the event to publish.- Specified by:
getEventToPublish
in interfaceEvented<UserSignupEvent>
- 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 classAbstractUsersAction
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
-
getConfirm
public String getConfirm()
-
setConfirm
public void setConfirm(String confirm)
-
getEmail
public String getEmail()
-
setEmail
public void setEmail(String email)
-
getFullName
public String getFullName()
-
setFullName
public void setFullName(String fullName)
-
getLinkLoginURL
public String getLinkLoginURL(javax.servlet.http.HttpServletRequest request)
-
setUserFormValidator
public void setUserFormValidator(UserFormValidator userFormValidator)
-
setSignupValidator
public void setSignupValidator(SignupValidator signupValidator)
-
setPermissionManager
public void setPermissionManager(PermissionManager permissionManager)
- Overrides:
setPermissionManager
in classConfluenceActionSupport
-
-