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, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, java.io.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, 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
 java.lang.String doContactAdministrators()
          Send an e-mail to the administrators configured on the wiki
 CaptchaManager getCaptchaManager()
           
 java.lang.String getContactAddress()
           
 java.lang.String getDescription()
           
 java.lang.String getMessage()
           
 java.lang.String getSubject()
           
 java.lang.String getToDisplayValue()
           
 boolean isAdminstratorEmailAddresses()
           
 boolean isDisplaySupportRequest()
           
 boolean isEditMode()
           
 boolean isMailServerAvailable()
           
 boolean isPermitted()
           
 void setCaptchaManager(CaptchaManager captchaManager)
           
 void setContactAddress(java.lang.String contactAddress)
           
 void setDescription(java.lang.String description)
           
 void setSubject(java.lang.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, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getActionName, getBootstrapManager, getCancelResult, getContext, getDateFormatter, getDefaultResourceBundle, getDocLink, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, 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, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, 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
 

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 java.lang.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 java.lang.String getToDisplayValue()

getSubject

public java.lang.String getSubject()

setSubject

public void setSubject(java.lang.String subject)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

isEditMode

public boolean isEditMode()
Specified by:
isEditMode in interface FormAware

doContactAdministrators

public java.lang.String doContactAdministrators()
Send an e-mail to the administrators configured on the wiki


getContactAddress

public java.lang.String getContactAddress()

setContactAddress

public void setContactAddress(java.lang.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)

isPermitted

public boolean isPermitted()
Overrides:
isPermitted in class ConfluenceActionSupport
Returns:
true for all users including the anonymous user.


Copyright © 2003-2010 Atlassian. All Rights Reserved.