com.atlassian.confluence.mail.archive.actions
Class AbstractMailAccountAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.confluence.core.ConfluenceActionSupport
          extended by com.atlassian.confluence.spaces.actions.AbstractSpaceAction
              extended by com.atlassian.confluence.mail.archive.actions.AbstractMailAccountAction
All Implemented Interfaces:
WebInterface, Spaced, BreadcrumbAware, MessageHolderAware, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, Serializable
Direct Known Subclasses:
AddMailAccountAction, EditMailAccountAction

public abstract class AbstractMailAccountAction
extends AbstractSpaceAction
implements BreadcrumbAware

See Also:
Serialized Form

Field Summary
protected  String confirm
           
protected  String description
           
protected  String hostname
           
protected  MailAccountManager mailAccountManager
           
protected  String name
           
protected  String password
           
protected  MailPollResult pollResult
           
protected  int port
           
protected  String protocol
           
protected  boolean secure
           
protected  String testConnection
           
protected  String username
           
 
Fields inherited from class com.atlassian.confluence.spaces.actions.AbstractSpaceAction
key, notificationManager, space, spaceManager, themeManager, wikiStyleRenderer
 
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, 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
AbstractMailAccountAction()
           
 
Method Summary
protected  MailAccount createMailAccountFromFormData()
           
 Breadcrumb getBreadcrumb()
          Returns the breadcrumb to be shown when the action is accessed.
 String getConfirm()
           
 String getDescription()
           
 String getHostname()
           
 String getName()
           
 String getPassword()
           
protected  List<String> getPermissionTypes()
           
 MailPollResult getPollResult()
           
 int getPort()
           
 String getProtocol()
           
 String getTestConnection()
           
 String getUsername()
           
abstract  boolean isEditAction()
           
 boolean isSecure()
           
 void setBreadcrumbGenerator(BreadcrumbGenerator breadcrumbGenerator)
           
 void setConfirm(String confirm)
           
 void setDescription(String description)
           
 void setHostname(String hostname)
           
 void setMailAccountManager(MailAccountManager mailAccountManager)
           
 void setName(String name)
           
 void setPassword(String password)
           
 void setPollResult(MailPollResult pollResult)
           
 void setPort(int port)
           
 void setProtocol(String protocol)
           
 void setSecure(boolean secure)
           
 void setTestConnection(String testConnection)
           
 void setUsername(String username)
           
 void validate()
           
 
Methods inherited from class com.atlassian.confluence.spaces.actions.AbstractSpaceAction
getKey, getSpace, getSpaceKey, getSubscribableName, getThemeManager, hasSpaceIA, isAdminUser, isPermitted, isPersonalSpace, isSuperUser, isUserWatchingSpace, isValidSpaceKey, setKey, setNotificationManager, setSpace, setSpaceManager, setThemeManager, setWikiStyleRenderer
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getContext, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, 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, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mailAccountManager

protected MailAccountManager mailAccountManager

name

protected String name

description

protected String description

hostname

protected String hostname

protocol

protected String protocol

username

protected String username

password

protected String password

port

protected int port

secure

protected boolean secure

confirm

protected String confirm

testConnection

protected String testConnection

pollResult

protected MailPollResult pollResult
Constructor Detail

AbstractMailAccountAction

public AbstractMailAccountAction()
Method Detail

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

getPermissionTypes

protected List<String> getPermissionTypes()
Overrides:
getPermissionTypes in class AbstractSpaceAction

setMailAccountManager

public void setMailAccountManager(MailAccountManager mailAccountManager)

isEditAction

public abstract boolean isEditAction()

getName

public String getName()

setName

public void setName(String name)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getHostname

public String getHostname()

setHostname

public void setHostname(String hostname)

getProtocol

public String getProtocol()

setProtocol

public void setProtocol(String protocol)

getUsername

public String getUsername()

setUsername

public void setUsername(String username)

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

getPort

public int getPort()

setPort

public void setPort(int port)

isSecure

public boolean isSecure()

setSecure

public void setSecure(boolean secure)

getConfirm

public String getConfirm()

setConfirm

public void setConfirm(String confirm)

getTestConnection

public String getTestConnection()

setTestConnection

public void setTestConnection(String testConnection)

getPollResult

public MailPollResult getPollResult()

setPollResult

public void setPollResult(MailPollResult pollResult)

setBreadcrumbGenerator

public void setBreadcrumbGenerator(BreadcrumbGenerator breadcrumbGenerator)

createMailAccountFromFormData

protected MailAccount createMailAccountFromFormData()

getBreadcrumb

public Breadcrumb getBreadcrumb()
Description copied from interface: BreadcrumbAware
Returns the breadcrumb to be shown when the action is accessed.

Specified by:
getBreadcrumb in interface BreadcrumbAware
Returns:
Breadcrumb


Copyright © 2003–2015 Atlassian. All rights reserved.