com.atlassian.jira.web.action.admin.mail
Class MailServerActionSupport

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.web.action.admin.mail.MailServerActionSupport
All Implemented Interfaces:
ErrorCollection, I18nHelper, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
Direct Known Subclasses:
AddMailServer, DeleteMailServer, DeleteMailServer, UpdateMailServer, ViewMailServers

public class MailServerActionSupport
extends JiraWebActionSupport

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
protected  Long 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
MailServerActionSupport()
           
 
Method Summary
 boolean canManagePopMailServers()
           
 boolean canManageSmtpMailServers()
           
 String doDefault()
           
protected  void doValidation()
           
 String doView()
           
 String getActiveTab()
           
 String getDescription()
           
 String getFrom()
           
 Long getId()
           
 String getJndiLocation()
           
 String getKeyForPrefix(String prefix)
           
 String getMailservertype()
           
 String getName()
           
 String getPassword()
          Returns the password received from the UI if Change Password was selected or present in input hidden, or the one already set for given server Id.
 String getPasswordReuse()
           
 List<com.atlassian.mail.server.PopMailServer> getPopMailServers()
           
 String getPort()
           
 String getPrefix()
           
 String getProtocol()
           
 String getServerName()
           
 List<com.atlassian.mail.server.SMTPMailServer> getSmtpMailServers()
           
 com.atlassian.mail.MailProtocol[] getSupportedClientProtocols(String type)
           
 Long getTimeout()
           
 String getType()
           
 String[] getTypes()
           
 String getUsername()
           
 boolean isChangePassword()
           
 boolean isNoemail()
           
protected  boolean isPop(com.atlassian.mail.server.MailServer mailServer)
           
protected  boolean isSmtp(com.atlassian.mail.server.MailServer mailServer)
           
 boolean isTlsRequired()
           
 boolean isValidMailParameters()
           
 void setChangePassword(boolean changePassword)
           
 void setDescription(String description)
           
 void setFrom(String from)
           
 void setId(Long id)
           
 void setJndiLocation(String jndiLocation)
           
 void setMailservertype(String mailservertype)
           
 void setName(String name)
           
 void setNoemail(boolean noemail)
           
 void setPassword(String password)
           
 void setPort(String port)
           
 void setPrefix(String prefix)
           
 void setProtocol(String protocol)
           
 void setServerName(String serverName)
           
 void setTimeout(Long timeout)
           
 void setTlsRequired(boolean tlsRequired)
           
 void setType(String type)
           
 void setUsername(String username)
           
 
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

id

protected Long id
Constructor Detail

MailServerActionSupport

public MailServerActionSupport()
Method Detail

canManageSmtpMailServers

public boolean canManageSmtpMailServers()

canManagePopMailServers

public boolean canManagePopMailServers()

doView

public String doView()

doDefault

public String doDefault()
                 throws Exception
Overrides:
doDefault in class webwork.action.ActionSupport
Throws:
Exception

isSmtp

protected boolean isSmtp(com.atlassian.mail.server.MailServer mailServer)

isPop

protected boolean isPop(com.atlassian.mail.server.MailServer mailServer)

doValidation

protected void doValidation()
Overrides:
doValidation in class webwork.action.ActionSupport

getPopMailServers

public List<com.atlassian.mail.server.PopMailServer> getPopMailServers()
                                                                throws com.atlassian.mail.MailException
Throws:
com.atlassian.mail.MailException

getSmtpMailServers

public List<com.atlassian.mail.server.SMTPMailServer> getSmtpMailServers()
                                                                  throws com.atlassian.mail.MailException
Throws:
com.atlassian.mail.MailException

getId

public Long getId()

setId

public void setId(Long id)

getName

public String getName()

setName

public void setName(String name)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getTimeout

public Long getTimeout()

setTimeout

public void setTimeout(Long timeout)

getType

public String getType()

setType

public void setType(String type)

getTypes

public String[] getTypes()

getServerName

public String getServerName()

setServerName

public void setServerName(String serverName)

getJndiLocation

public String getJndiLocation()

setJndiLocation

public void setJndiLocation(String jndiLocation)

getUsername

public String getUsername()

setUsername

public void setUsername(String username)

getPassword

@Nullable
public String getPassword()
Returns the password received from the UI if Change Password was selected or present in input hidden, or the one already set for given server Id. Returns null if existing server not found - normal condition outside UpdateServer context.

Returns:
password just set or the existing one if Change Password not selected in the UI

setPassword

public void setPassword(String password)

getPasswordReuse

@Nullable
public String getPasswordReuse()

isChangePassword

public boolean isChangePassword()

setChangePassword

public void setChangePassword(boolean changePassword)

getFrom

public String getFrom()

setFrom

public void setFrom(String from)

getPrefix

public String getPrefix()

setPrefix

public void setPrefix(String prefix)

getPort

public String getPort()

setPort

public void setPort(String port)

getProtocol

public String getProtocol()

setProtocol

public void setProtocol(String protocol)

isTlsRequired

public boolean isTlsRequired()

setTlsRequired

public void setTlsRequired(boolean tlsRequired)

isValidMailParameters

public boolean isValidMailParameters()

getSupportedClientProtocols

public com.atlassian.mail.MailProtocol[] getSupportedClientProtocols(String type)

getKeyForPrefix

public String getKeyForPrefix(String prefix)

isNoemail

public boolean isNoemail()

setNoemail

public void setNoemail(boolean noemail)

getMailservertype

public String getMailservertype()

setMailservertype

public void setMailservertype(String mailservertype)

getActiveTab

public String getActiveTab()


Copyright © 2002-2011 Atlassian. All Rights Reserved.