com.atlassian.confluence.user.actions
Class SiteSupportAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.confluence.core.ConfluenceActionSupport
          extended by 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

Field Summary
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
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
 
Constructor Summary
SiteSupportAction()
           
 
Method Summary
 String doContactAdministrators()
          Send an e-mail to the administrators configured on the wiki
 String doDefault()
          Default webwork action execution method.
 CaptchaManager getCaptchaManager()
           
 String getContactAddress()
           
 String getDescription()
           
 String getMessage()
           
 String getSubject()
           
 String getToDisplayValue()
           
 boolean isAdminstratorEmailAddresses()
           
 boolean isDisplaySupportRequest()
           
 boolean isEditMode()
           
 boolean isMailServerAvailable()
           
 boolean isPermitted()
           
 void 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)
           
 
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
 
Methods inherited from interface com.atlassian.confluence.validation.MessageHolderAware
validate
 

Field Detail

wikiStyleRenderer

protected com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer

captchaManager

protected CaptchaManager captchaManager

taskManager

protected com.atlassian.core.task.MultiQueueTaskManager taskManager
Constructor Detail

SiteSupportAction

public SiteSupportAction()
Method Detail

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.