Class AbstractSetupEmailAction
java.lang.Object
org.apache.struts2.ActionSupport
com.opensymphony.xwork2.ActionSupport
com.atlassian.confluence.core.AbstractI18nActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.setup.actions.AbstractSetupEmailAction
- All Implemented Interfaces:
WebInterface,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
- Direct Known Subclasses:
CreateMailServerAction,EditMailServerAction
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.opensymphony.xwork2.interceptor.ValidationAware
com.opensymphony.xwork2.interceptor.ValidationAware.LegacyAdapter -
Field Summary
FieldsFields 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, systemInformationService, userAccessor, webInterfaceManagerFields inherited from class org.apache.struts2.ActionSupport
containerFields inherited from interface org.apache.struts2.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringbuildRedirect(String flowId) Convenient Action execution method which defaults to returning INPUTprotected abstract Stringexecute()protected abstract Stringcom.atlassian.sal.api.ApplicationPropertiesprotected javax.servlet.http.HttpSessiongetId()com.atlassian.mail.server.MailServerBuild the mail server from the form dataprotected com.atlassian.mail.server.MailServerManagergetName()getPort()getToken()final booleanConsulted byPermissionCheckInterceptor.booleanvoidsetApplicationProperties(com.atlassian.sal.api.ApplicationProperties applicationProperties) voidsetAuthorization(String authorization) voidsetAuthorize(String authorize) voidsetEmailAddress(String emailAddress) voidvoidsetFromName(String fromName) voidsetHostname(String hostname) voidvoidsetJndiName(String jndiName) voidsetMailServerManager(com.atlassian.mail.server.MailServerManager mailServerManager) voidvoidsetoAuth2Service(OAuth2Service oAuth2Service) CAUTION: Never ever try to rename this method.voidsetPassword(String password) voidvoidvoidsetProtocol(String protocol) voidsetTestConnection(String testConnection) voidsetTlsRequired(boolean tls) voidvoidsetUserName(String userName) voidvalidate()protected voidMethods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, 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, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, shouldSkipIsPermittedMethods inherited from class com.atlassian.confluence.core.AbstractI18nActionSupport
getText, getText, getText, getText, getText, getText, getText, getText, getTextStrictMethods 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, toLocaleMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.struts2.interceptor.ValidationAware
addActionError, addActionMessage, addFieldError, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
-
Field Details
-
OAUTH_FLOW_SESSION_KEY
- See Also:
-
BASIC_AUTH_KEY
- See Also:
-
protocol
-
-
Constructor Details
-
AbstractSetupEmailAction
public AbstractSetupEmailAction()
-
-
Method Details
-
isPermitted
public final boolean isPermitted()Description copied from class:ConfluenceActionSupportConsulted byPermissionCheckInterceptor.- Overrides:
isPermittedin classConfluenceActionSupport
-
validate
public void validate()- Specified by:
validatein interfaceMessageHolderAware- Specified by:
validatein interfaceorg.apache.struts2.Validateable- Overrides:
validatein classorg.apache.struts2.ActionSupport
-
doDefault
Description copied from class:ConfluenceActionSupportConvenient Action execution method which defaults to returning INPUT- Overrides:
doDefaultin classConfluenceActionSupport- Throws:
Exception
-
doDefaultInternal
- Throws:
Exception
-
getCurrentSession
protected javax.servlet.http.HttpSession getCurrentSession() -
execute
- Specified by:
executein interfaceorg.apache.struts2.action.Action- Overrides:
executein classorg.apache.struts2.ActionSupport- Throws:
Exception
-
getMailServer
public com.atlassian.mail.server.MailServer getMailServer()Build the mail server from the form data- Returns:
- a
MailServerinstance
-
executeInternal
- Throws:
Exception
-
getName
-
setName
-
getEmailAddress
-
setEmailAddress
-
getFromName
-
setFromName
-
getPrefix
-
setPrefix
-
getUserName
-
setUserName
-
getPassword
-
setPassword
-
getHostname
-
getPort
-
setPort
-
setHostname
-
isTlsRequired
public boolean isTlsRequired() -
setTlsRequired
public void setTlsRequired(boolean tls) -
getJndiName
-
setJndiName
-
getId
-
setId
-
setProtocol
-
getProtocol
-
setAuthorization
-
getAuthorization
-
setToken
-
getToken
-
setFlowId
-
getFlowId
-
getAuthorize
-
setAuthorize
-
setTestConnection
-
getTestConnection
-
setMailServerManager
public void setMailServerManager(com.atlassian.mail.server.MailServerManager mailServerManager) -
getMailServerManager
protected com.atlassian.mail.server.MailServerManager getMailServerManager() -
getOAuth2Service
-
setoAuth2Service
CAUTION: Never ever try to rename this method. Otherwise, the oAuth2Service Spring bean won't be injected.- Parameters:
oAuth2Service- the bean to be injected
-
getApplicationProperties
public com.atlassian.sal.api.ApplicationProperties getApplicationProperties() -
setApplicationProperties
public void setApplicationProperties(com.atlassian.sal.api.ApplicationProperties applicationProperties) -
getIncomingProtocolList
-
getAuthorizationList
-
buildRedirect
-
validateJNDIScheme
protected void validateJNDIScheme()
-