com.atlassian.confluence.user.actions
Class SiteSupportAction
java.lang.Object
com.opensymphony.xwork.ActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.user.actions.SiteSupportAction
- All Implemented Interfaces:
- FormAware, WebInterface, CaptchaAware, MessageHolderAware, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, Serializable
public class SiteSupportAction
- extends ConfluenceActionSupport
- implements CaptchaAware, FormAware
- See Also:
- Serialized Form
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, log, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager |
Fields inherited from class com.opensymphony.xwork.ActionSupport |
LOG |
Fields inherited from interface com.opensymphony.xwork.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getActionName, getActionName, getBootstrapManager, getCancel, getCancelResult, getContext, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDocLink, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserFullName, getUserInterfaceState, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingHSQL, setBootstrapManager, setCancel, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionCheck, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setUserAccessor, setWebInterfaceManager |
Methods inherited from class com.opensymphony.xwork.ActionSupport |
addActionError, addActionMessage, addFieldError, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
wikiStyleRenderer
protected com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer
captchaManager
protected CaptchaManager captchaManager
taskManager
protected com.atlassian.core.task.MultiQueueTaskManager taskManager
SiteSupportAction
public SiteSupportAction()
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 interface FormAware
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
- Default webwork action execution method.
- Overrides:
doDefault
in class ConfluenceActionSupport
- Returns:
- the action result
- Throws:
Exception
- if something goes wrong
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 class ConfluenceActionSupport
- Returns:
- true for all users including the anonymous user.
Copyright © 2003-2013 Atlassian. All Rights Reserved.