public class ViewMailAction extends AbstractMailAction
id, localMailContentManager, mail
key, notificationManager, space, spaceManager, themeManager, wikiStyleRenderer
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
ViewMailAction() |
Modifier and Type | Method and Description |
---|---|
String |
execute() |
String[] |
getAttachmentDetails(Attachment attachment)
Used for writing the "do you want to remove?" message.
|
Boolean |
getAttachmentsShowing() |
ThreadNode |
getContainingThread() |
String |
getExcerpt(long mailId) |
List |
getHighlight() |
List |
getLatestVersionsOfAttachments() |
Mail |
getNextMail() |
List |
getParents(int maxParentsToReturn) |
ThreadNode |
getPositionInThread() |
Mail |
getPreviousMail() |
int |
getTotalThreadCount() |
int |
getVisibleThreadCount() |
boolean |
isInThread() |
void |
setAttachmentManager(AttachmentManager attachmentManager) |
void |
setHighlight(List names) |
void |
setShowAttachments(Boolean showAttachments) |
void |
setThreadBuilder(ThreadBuilder threadBuilder) |
void |
validate() |
getBreadcrumb, getId, getMail, getMailHelper, setBreadcrumbGenerator, setId, setLocalMailContentManager
getKey, getPermissionTypes, getSpace, getSpaceKey, getSubscribableName, getThemeManager, hasSpaceIA, isAdminUser, isPermitted, isPersonalSpace, isSuperUser, isUserWatchingSpace, isValidSpaceKey, setKey, setNotificationManager, setSpace, setSpaceManager, setThemeManager, setWikiStyleRenderer
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, isUsingH2, isUsingHSQL, setApiDateFormatService, setBootstrapManager, setCancel, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionCheck, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
public void validate()
validate
in interface MessageHolderAware
validate
in interface com.opensymphony.xwork.Validateable
validate
in class com.opensymphony.xwork.ActionSupport
public void setAttachmentManager(AttachmentManager attachmentManager)
public String execute() throws Exception
execute
in interface com.opensymphony.xwork.Action
execute
in class com.opensymphony.xwork.ActionSupport
Exception
public void setThreadBuilder(ThreadBuilder threadBuilder)
public Mail getNextMail()
public Mail getPreviousMail()
public int getTotalThreadCount()
public int getVisibleThreadCount()
public List getParents(int maxParentsToReturn)
public boolean isInThread()
public ThreadNode getPositionInThread()
public ThreadNode getContainingThread()
public Boolean getAttachmentsShowing()
public void setShowAttachments(Boolean showAttachments)
public String getExcerpt(long mailId)
public List getLatestVersionsOfAttachments()
public List getHighlight()
public void setHighlight(List names)
public String[] getAttachmentDetails(Attachment attachment)
attachment
- the attachment to get the details ofCopyright © 2003–2015 Atlassian. All rights reserved.