Class CreateUserAction
java.lang.Object
org.apache.struts2.ActionSupport
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
,org.apache.struts2.action.Action
,org.apache.struts2.interceptor.ValidationAware
,org.apache.struts2.Validateable
public class CreateUserAction
extends SearchUsersAction
implements Tabbed, Evented<AdminAddedUserEvent>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.opensymphony.xwork2.interceptor.ValidationAware
com.opensymphony.xwork2.interceptor.ValidationAware.LegacyAdapter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
static final String
protected boolean
Fields inherited from class com.atlassian.confluence.user.actions.SearchUsersAction
crowdDirectoryService
Fields inherited from class com.atlassian.confluence.user.actions.AbstractSearchCrowdUsersAction
SHOW_ALL_SEARCH_TERM
Fields inherited from class com.atlassian.confluence.user.actions.AbstractUsersAction
personService, user, userKey, username
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, confluenceAccessManager, contentUiSupport, eventPublisher, formatSettingsManager, globalSettingsManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, localeManager, loginManager, messageHolder, permissionManager, pluginAccessor, PREVIEW, request, response, spacePermissionManager, strutsHelper, systemInformationService, userAccessor, webInterfaceManager
Fields inherited from class org.apache.struts2.ActionSupport
container
Fields inherited from interface org.apache.struts2.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute()
com.atlassian.crowd.embedded.api.Directory
getEmail()
getEventToPublish
(String result) Gets the event to publish.Returns the key of the tab that should be selected when rendering.boolean
boolean
Consulted byPermissionCheckInterceptor
.void
setConfirm
(String confirm) void
setDirectoryId
(long directoryId) void
void
setFullName
(String fullName) void
setPassword
(String password) void
setSendEmail
(boolean sendEmail) void
setUserAccessor
(UserAccessorInternal userAccessorInternal) void
setUserFormValidator
(UserFormValidator validator) void
validate()
Methods inherited from class com.atlassian.confluence.user.actions.SearchUsersAction
canAddUsers, doCreateUserForm, doInviteUserForm, doSignUpUserForm, doUserSearch, getActiveDirectories, getActiveDirectoriesOptions, getBreadcrumb, getEventPublisher, getLoginInfo, isMailServerConfigured, isSendEmailDefault, publishEvent, setBandanaManager, setCrowdDirectoryService, 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, setApiPersonService, setUserKey, setUsername
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, getActionErrors, getActionMessages, getActionName, getAuthenticatedUser, getBootstrapStatusProvider, getCancelResult, getCurrentRequest, getCurrentResponse, getDateFormatter, getDefaultTimeZone, getFieldErrors, getGlobalSettings, getHelper, getI18n, getLocale, getMessageHolder, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getTimeZone, getUserByName, getUserInterfaceState, getWebInterfaceContext, isAnonymousUser, isEmailVisible, setAccessModeService, setBootstrapStatusProvider, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventPublisher, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSkipIsPermitted, setSpacePermissionManager, setStrutsHelper, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, shouldSkipIsPermitted
Methods inherited from class com.atlassian.confluence.core.AbstractI18nActionSupport
getText, getText, getText, getText, getText, getText, getText, getText, getTextStrict
Methods inherited from class org.apache.struts2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getContainer, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, toLocale
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.struts2.interceptor.ValidationAware
addActionError, addActionMessage, addFieldError, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
-
Field Details
-
SEND_EMAIL
- See Also:
-
password
-
confirm
-
email
-
fullName
-
sendEmail
protected boolean sendEmail
-
-
Constructor Details
-
CreateUserAction
public CreateUserAction()
-
-
Method Details
-
validate
public void validate()- Specified by:
validate
in interfaceMessageHolderAware
- Specified by:
validate
in interfaceorg.apache.struts2.Validateable
- Overrides:
validate
in classAbstractSearchCrowdUsersAction
-
execute
- Specified by:
execute
in interfaceorg.apache.struts2.action.Action
- Overrides:
execute
in classSearchUsersAction
-
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
-
setPassword
-
getEmail
-
setEmail
-
getSendEmail
public boolean getSendEmail() -
setSendEmail
public void setSendEmail(boolean sendEmail) -
getFullName
-
setFullName
-
getConfirm
-
setConfirm
-
getDirectory
public com.atlassian.crowd.embedded.api.Directory getDirectory() -
setDirectoryId
public void setDirectoryId(long directoryId) -
setUserFormValidator
-
setUserAccessor
-
getEventToPublish
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()Description copied from class:ConfluenceActionSupport
Consulted byPermissionCheckInterceptor
.- Overrides:
isPermitted
in classSearchUsersAction
-