com.atlassian.confluence.admin.actions
Class RaiseSupportRequestAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.confluence.core.ConfluenceActionSupport
          extended by com.atlassian.confluence.admin.actions.ViewSystemInfoAction
              extended by com.atlassian.confluence.admin.actions.RaiseSupportRequestAction
All Implemented Interfaces:
FormAware, WebInterface, MessageHolderAware, 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 RaiseSupportRequestAction
extends ViewSystemInfoAction
implements FormAware

An action to gather and e-mail information about the system to Atlassian. The ViewSystemInfoAction is extended since it provides much of the necessary information. Additional information is retrieved such as which plugins are installed.

It should be noted that the absence of a configured mail server will not prevent e-mails being created. They will still be added to the mail queue. However, the user of the action should be made aware of the situation.

Author:
Paul Curren
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, 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
RaiseSupportRequestAction()
           
 
Method Summary
 java.lang.String doDefault()
          Override the default behaviour to also set any default values for the form.
 java.lang.String execute()
           
 java.lang.String getBaseUrl()
           
 java.lang.String getContactEmail()
           
 java.lang.String getContactName()
           
 java.lang.String getContactNumber()
           
 java.lang.String getDescription()
           
 java.lang.String getExistingRequest()
           
 java.lang.String getServerLogsDirectory()
           
 java.lang.String getSubject()
           
 SupportUtility getSupportUtility()
           
 java.lang.String getToAddresses()
           
 boolean isEditMode()
           
 boolean isIncludeServerLogs()
           
 boolean isMailServerAvailable()
           
 boolean isPermitted()
           
 void setContactEmail(java.lang.String contactEmail)
           
 void setContactName(java.lang.String contactName)
           
 void setContactNumber(java.lang.String contactNumber)
           
 void setDescription(java.lang.String description)
           
 void setExistingRequest(java.lang.String existingRequest)
           
 void setGc(boolean gc)
          Irrelevant to this class.
 void setIncludeServerLogs(boolean includeServerLogs)
           
 void setMailServerManager(com.atlassian.mail.server.MailServerManager mailServerManager)
           
 void setServerLogsDirectory(java.lang.String serverLogsDirectory)
           
 void setSubject(java.lang.String subject)
           
 void setTaskManager(com.atlassian.core.task.MultiQueueTaskManager tm)
           
 void validate()
           
 
Methods inherited from class com.atlassian.confluence.admin.actions.ViewSystemInfoAction
getBuildStats, getDatabaseInfo, getEnabledPlugins, getMemoryStatistics, getModifications, getPluginEnabledAsEnglish, getPluginEnabledAsI18nLabel, getPlugins, getRuntimeEnvironment, getServerId, getServerIdOrEnglishNone, getServerIdOrI18nNone, getServletContext, getSummaryInfo, getSupportEntitlementNumberOrEnglishNone, getSupportEntitlementNumberOrI18nNone, getSystemProperties, getSystemPropertiesHtml, getUsageInfo, isClustered, isDailyBackupEnabled, isPluginEnabled, setClusterManager, setScheduledJobManager, setSettingsManager, setSidManager, setSystemInformationService
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getActionName, getActionName, getAuthenticatedUser, 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, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserByName, getUserFullName, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingHSQL, setApiDateFormatService, setBootstrapManager, setCancel, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionCheck, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSpacePermissionManager, setUserAccessor, setWebInterfaceManager
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RaiseSupportRequestAction

public RaiseSupportRequestAction()
Method Detail

isPermitted

public boolean isPermitted()
Overrides:
isPermitted in class ViewSystemInfoAction

doDefault

public java.lang.String doDefault()
                           throws java.lang.Exception
Override the default behaviour to also set any default values for the form.

Overrides:
doDefault in class ConfluenceActionSupport
Returns:
the action result
Throws:
java.lang.Exception - if something goes wrong

validate

public void validate()
Specified by:
validate in interface MessageHolderAware
Specified by:
validate in interface com.opensymphony.xwork.Validateable
Overrides:
validate in class com.opensymphony.xwork.ActionSupport

execute

public java.lang.String execute()
                         throws java.lang.Exception
Specified by:
execute in interface com.opensymphony.xwork.Action
Overrides:
execute in class ViewSystemInfoAction
Throws:
java.lang.Exception

getBaseUrl

public java.lang.String getBaseUrl()

getToAddresses

public java.lang.String getToAddresses()
Returns:
The system wide support address that has been configured under general configuration

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)

getExistingRequest

public java.lang.String getExistingRequest()

setExistingRequest

public void setExistingRequest(java.lang.String existingRequest)

getContactName

public java.lang.String getContactName()

setContactName

public void setContactName(java.lang.String contactName)

getContactEmail

public java.lang.String getContactEmail()

setContactEmail

public void setContactEmail(java.lang.String contactEmail)

getContactNumber

public java.lang.String getContactNumber()

setContactNumber

public void setContactNumber(java.lang.String contactNumber)

isMailServerAvailable

public boolean isMailServerAvailable()
Returns:
true if a default mail server has been configured.

setGc

public void setGc(boolean gc)
Irrelevant to this class.

Overrides:
setGc in class ViewSystemInfoAction
Parameters:
gc - is always ignored and set to false

setTaskManager

public void setTaskManager(com.atlassian.core.task.MultiQueueTaskManager tm)

getSupportUtility

public SupportUtility getSupportUtility()

isIncludeServerLogs

public boolean isIncludeServerLogs()

setIncludeServerLogs

public void setIncludeServerLogs(boolean includeServerLogs)

getServerLogsDirectory

public java.lang.String getServerLogsDirectory()

setServerLogsDirectory

public void setServerLogsDirectory(java.lang.String serverLogsDirectory)

setMailServerManager

public void setMailServerManager(com.atlassian.mail.server.MailServerManager mailServerManager)

isEditMode

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


Copyright © 2003-2014 Atlassian. All Rights Reserved.