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, 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 TypeMethodDescriptionabstract String
buildRedirect
(String flowId) Convenient Action execution method which defaults to returning INPUTprotected abstract String
execute()
protected abstract String
com.atlassian.sal.api.ApplicationProperties
protected javax.servlet.http.HttpSession
getId()
com.atlassian.mail.server.MailServer
Build the mail server from the form dataprotected com.atlassian.mail.server.MailServerManager
getName()
getPort()
getToken()
final boolean
Consulted byPermissionCheckInterceptor
.boolean
void
setApplicationProperties
(com.atlassian.sal.api.ApplicationProperties applicationProperties) void
setauthCtxFactory
(ConfluenceAuthenticationContextFactory authCtxFactory) void
setAuthorization
(String authorization) void
setAuthorize
(String authorize) void
setEmailAddress
(String emailAddress) void
void
setFromName
(String fromName) void
setHostname
(String hostname) void
void
setJndiName
(String jndiName) void
setMailServerManager
(com.atlassian.mail.server.MailServerManager mailServerManager) void
void
setoAuth2Service
(OAuth2Service oAuth2Service) CAUTION: Never ever try to rename this method.void
setPassword
(String password) void
void
void
setProtocol
(String protocol) void
setTestConnection
(String testConnection) void
setTlsRequired
(boolean tls) void
void
setUserName
(String userName) void
validate()
protected void
Methods 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, 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
-
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:ConfluenceActionSupport
Consulted byPermissionCheckInterceptor
.- Overrides:
isPermitted
in classConfluenceActionSupport
-
validate
public void validate()- Specified by:
validate
in interfaceMessageHolderAware
- Specified by:
validate
in interfaceorg.apache.struts2.Validateable
- Overrides:
validate
in classorg.apache.struts2.ActionSupport
-
doDefault
Description copied from class:ConfluenceActionSupport
Convenient Action execution method which defaults to returning INPUT- Overrides:
doDefault
in classConfluenceActionSupport
- Throws:
Exception
-
doDefaultInternal
- Throws:
Exception
-
getCurrentSession
protected javax.servlet.http.HttpSession getCurrentSession() -
execute
- Specified by:
execute
in interfaceorg.apache.struts2.action.Action
- Overrides:
execute
in classorg.apache.struts2.ActionSupport
- Throws:
Exception
-
getMailServer
public com.atlassian.mail.server.MailServer getMailServer()Build the mail server from the form data- Returns:
- a
MailServer
instance
-
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
-
getAuthCtxFactory
-
setauthCtxFactory
-
getApplicationProperties
public com.atlassian.sal.api.ApplicationProperties getApplicationProperties() -
setApplicationProperties
public void setApplicationProperties(com.atlassian.sal.api.ApplicationProperties applicationProperties) -
getProtocolList
-
getAuthorizationList
-
buildRedirect
-
validateJNDIScheme
protected void validateJNDIScheme()
-