com.atlassian.jira.plugins.mail.webwork
Class ViewMailServers

java.lang.Object
  extended by webwork.action.ActionSupport
      extended by com.atlassian.jira.action.JiraActionSupport
          extended by com.atlassian.jira.web.action.JiraWebActionSupport
              extended by com.atlassian.jira.plugins.mail.webwork.MailServerActionSupport
                  extended by com.atlassian.jira.plugins.mail.webwork.ViewMailServers
All Implemented Interfaces:
ErrorCollection, I18nHelper, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class ViewMailServers
extends MailServerActionSupport

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.ErrorCollection
ErrorCollection.Reason
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory
 
Field Summary
static String INCOMING_MAIL_ACTION
           
static String INCOMING_MAIL_TAB
           
static String OUTGOING_MAIL_ACTION
           
static String OUTGOING_MAIL_TAB
           
 
Fields inherited from class com.atlassian.jira.plugins.mail.webwork.MailServerActionSupport
id
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ViewMailServers(ServiceManager serviceManager, ConstantsManager constantsManager, ProjectManager projectManager, com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 
Method Summary
protected  ComponentClassManager getComponentClassManager()
           
 org.apache.velocity.tools.generic.EscapeTool getEsc()
           
 String getFileServiceDirectory(JiraServiceContainer service)
           
 String getHandlerType(JiraServiceContainer service)
           
 HelpUtil.HelpPath getHelpPath(String key)
           
 String getInvalidPopSettingsMessage()
           
 Collection<JiraServiceContainer> getMailHandlers()
           
 String getRelatedIssueId(JiraServiceContainer service)
           
 IssueConstant getRelatedIssueType(JiraServiceContainer service)
           
 Project getRelatedProject(JiraServiceContainer service)
           
 String getRelatedProjectKey(JiraServiceContainer service)
           
 com.atlassian.mail.server.MailServer getServer(JiraServiceContainer service)
           
 String getServerDescription(JiraServiceContainer service)
           
 String getServerName(JiraServiceContainer service)
           
 Collection<Pair<String,String>> getServiceParams(JiraServiceContainer service)
           
 boolean isHandlerUsingObsoleteSettings(JiraServiceContainer service)
           
 
Methods inherited from class com.atlassian.jira.plugins.mail.webwork.MailServerActionSupport
canManagePopMailServers, canManageSmtpMailServers, doDefault, doValidation, doView, getActiveTab, getDescription, getFrom, getId, getJndiLocation, getKeyForPrefix, getMailservertype, getName, getPassword, getPasswordSet, getPopMailServers, getPort, getPrefix, getProtocol, getServerName, getSmtpMailServers, getSupportedClientProtocols, getTimeout, getType, getTypes, getUsername, isChangePassword, isNoemail, isPop, isSmtp, isTlsRequired, isValidMailParameters, setChangePassword, setDescription, setFrom, setId, setJndiLocation, setMailservertype, setName, setNoemail, setPassword, setPort, setPrefix, setProtocol, setServerName, setTimeout, setTlsRequired, setType, setUsername
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDmyDateFormatter, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInUser, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirectChecker, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getTimeFormat, getUriValidator, getUserFullName, getUserManager, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, htmlEncode, insertContextPath, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getDelegator, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getRemoteUser, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isIndexing, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doExecute, getCommandName, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, 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.jira.util.ErrorCollection
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
getCommandName, setCommand
 

Field Detail

OUTGOING_MAIL_TAB

public static final String OUTGOING_MAIL_TAB
See Also:
Constant Field Values

INCOMING_MAIL_TAB

public static final String INCOMING_MAIL_TAB
See Also:
Constant Field Values

OUTGOING_MAIL_ACTION

public static final String OUTGOING_MAIL_ACTION
See Also:
Constant Field Values

INCOMING_MAIL_ACTION

public static final String INCOMING_MAIL_ACTION
See Also:
Constant Field Values
Constructor Detail

ViewMailServers

public ViewMailServers(ServiceManager serviceManager,
                       ConstantsManager constantsManager,
                       ProjectManager projectManager,
                       com.atlassian.plugin.PluginAccessor pluginAccessor)
Method Detail

getComponentClassManager

@Nonnull
protected ComponentClassManager getComponentClassManager()

getInvalidPopSettingsMessage

public String getInvalidPopSettingsMessage()

getMailHandlers

public Collection<JiraServiceContainer> getMailHandlers()

getRelatedProject

@Nullable
public Project getRelatedProject(JiraServiceContainer service)

getRelatedProjectKey

@Nullable
public String getRelatedProjectKey(JiraServiceContainer service)

getRelatedIssueId

@Nullable
public String getRelatedIssueId(JiraServiceContainer service)

getRelatedIssueType

@Nullable
public IssueConstant getRelatedIssueType(JiraServiceContainer service)

isHandlerUsingObsoleteSettings

public boolean isHandlerUsingObsoleteSettings(JiraServiceContainer service)

getServiceParams

@Nonnull
public Collection<Pair<String,String>> getServiceParams(JiraServiceContainer service)

getServer

@Nullable
public com.atlassian.mail.server.MailServer getServer(JiraServiceContainer service)

getServerName

@Nullable
public String getServerName(JiraServiceContainer service)

getServerDescription

@Nonnull
public String getServerDescription(JiraServiceContainer service)

getFileServiceDirectory

@Nonnull
public String getFileServiceDirectory(JiraServiceContainer service)

getHandlerType

public String getHandlerType(JiraServiceContainer service)

getEsc

public org.apache.velocity.tools.generic.EscapeTool getEsc()

getHelpPath

public HelpUtil.HelpPath getHelpPath(String key)


Copyright © 2002-2012 Atlassian. All Rights Reserved.