Class SiteSupportAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- com.atlassian.confluence.core.ConfluenceActionSupport
-
- com.atlassian.confluence.user.actions.SiteSupportAction
-
- All Implemented Interfaces:
FormAware
,WebInterface
,CaptchaAware
,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 SiteSupportAction extends ConfluenceActionSupport implements CaptchaAware, FormAware
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected CaptchaManager
captchaManager
protected com.atlassian.core.task.MultiQueueTaskManager
taskManager
protected com.atlassian.renderer.WikiStyleRenderer
wikiStyleRenderer
-
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, systemInformationService, userAccessor, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description SiteSupportAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
doContactAdministrators()
Send an e-mail to the administrators configured on the wikiString
doDefault()
Convenient Action execution method which defaults to returning INPUTCaptchaManager
getCaptchaManager()
String
getContactAddress()
String
getDescription()
String
getMessage()
String
getSubject()
String
getToDisplayValue()
boolean
isAdminstratorEmailAddresses()
boolean
isDisplaySupportRequest()
boolean
isEditMode()
boolean
isMailServerAvailable()
boolean
isPermitted()
void
setActionRateLimiterSiteSupport(ActionRateLimiter actionRateLimiterSiteSupport)
Setting ActionRateLimitervoid
setCaptchaManager(CaptchaManager captchaManager)
void
setContactAddress(String contactAddress)
void
setDescription(String description)
void
setMailServerManager(com.atlassian.mail.server.MailServerManager mailServerManager)
void
setSubject(String subject)
void
setTaskManager(com.atlassian.core.task.MultiQueueTaskManager tm)
void
setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)
void
validate()
-
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, setBootstrapStatusProvider, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, useSkipAccessCheck, withServletRequestSupplier
-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, 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
-
-
-
-
Field Detail
-
wikiStyleRenderer
protected com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer
-
captchaManager
protected CaptchaManager captchaManager
-
taskManager
protected com.atlassian.core.task.MultiQueueTaskManager taskManager
-
-
Method Detail
-
setActionRateLimiterSiteSupport
public void setActionRateLimiterSiteSupport(ActionRateLimiter actionRateLimiterSiteSupport)
Setting ActionRateLimiter- Parameters:
actionRateLimiterSiteSupport
-- Since:
- 8.7
-
getMessage
public String getMessage()
- Returns:
- a message suitable for display as the site error message
-
isDisplaySupportRequest
public boolean isDisplaySupportRequest()
- Returns:
- true if the support request component of the Site Support screen should be displayed to the user.
-
isAdminstratorEmailAddresses
public boolean isAdminstratorEmailAddresses()
- Returns:
- true if there is at least one administrator configured in the system with an e-mail address
-
isMailServerAvailable
public boolean isMailServerAvailable()
- Returns:
- true if a default mail server has been configured.
-
getToDisplayValue
public String getToDisplayValue()
-
getSubject
public String getSubject()
-
setSubject
public void setSubject(String subject)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
isEditMode
public boolean isEditMode()
- Specified by:
isEditMode
in interfaceFormAware
-
doContactAdministrators
public String doContactAdministrators()
Send an e-mail to the administrators configured on the wiki
-
doDefault
public String doDefault() throws Exception
Description copied from class:ConfluenceActionSupport
Convenient Action execution method which defaults to returning INPUT- Overrides:
doDefault
in classConfluenceActionSupport
- Throws:
Exception
-
getContactAddress
public String getContactAddress()
-
setContactAddress
public void setContactAddress(String contactAddress)
-
setWikiStyleRenderer
public void setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)
-
setCaptchaManager
public void setCaptchaManager(CaptchaManager captchaManager)
-
getCaptchaManager
public CaptchaManager getCaptchaManager()
-
setTaskManager
public void setTaskManager(com.atlassian.core.task.MultiQueueTaskManager tm)
-
setMailServerManager
public void setMailServerManager(com.atlassian.mail.server.MailServerManager mailServerManager)
-
isPermitted
public boolean isPermitted()
- Overrides:
isPermitted
in classConfluenceActionSupport
- Returns:
- true for all users including the anonymous user.
-
validate
public void validate()
- Specified by:
validate
in interfaceMessageHolderAware
- Specified by:
validate
in interfacecom.opensymphony.xwork2.Validateable
- Overrides:
validate
in classcom.opensymphony.xwork2.ActionSupport
- Since:
- 8.7
-
-