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, permissionManager, 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 voidcheckSignupAllowed()StringdoDefault()Convenient Action execution method which defaults to returning INPUTStringexecute()StringgetConfirm()StringgetEmail()UserSignupEventgetEventToPublish(String result)Gets the event to publish.StringgetFullName()StringgetLinkLoginURL(javax.servlet.http.HttpServletRequest request)StringgetPassword()booleanisPermitted()voidsetConfirm(String confirm)voidsetEmail(String email)voidsetFullName(String fullName)voidsetPassword(String password)voidsetSignupValidator(SignupValidator signupValidator)voidsetUserFormValidator(UserFormValidator userFormValidator)voidvalidate()-
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, 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, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, 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
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.security.CaptchaAware
mustValidateCaptcha
-
-
-
-
Method Detail
-
validate
public void validate()
- Specified by:
validatein interfaceMessageHolderAware- Specified by:
validatein interfacecom.opensymphony.xwork2.Validateable- Overrides:
validatein classcom.opensymphony.xwork2.ActionSupport
-
checkSignupAllowed
public void checkSignupAllowed()
-
doDefault
public String doDefault() throws Exception
Description copied from class:ConfluenceActionSupportConvenient Action execution method which defaults to returning INPUT- Overrides:
doDefaultin classAbstractLoginSignupAction- Throws:
Exception
-
execute
@XsrfProtectionExcluded public String execute() throws Exception
- Specified by:
executein interfacecom.opensymphony.xwork2.Action- Overrides:
executein classcom.opensymphony.xwork2.ActionSupport- Throws:
Exception
-
getEventToPublish
public UserSignupEvent getEventToPublish(String result)
Description copied from interface:EventedGets the event to publish.- Specified by:
getEventToPublishin 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:
isPermittedin 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)
-
-