com.atlassian.confluence.pages.actions
Class AbstractViewAttachmentsAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.confluence.core.ConfluenceActionSupport
          extended by com.atlassian.confluence.pages.actions.AbstractViewAttachmentsAction
All Implemented Interfaces:
WebInterface, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, java.io.Serializable
Direct Known Subclasses:
ViewDraftAttachmentsAction, ViewPageAttachmentsAction

public abstract class AbstractViewAttachmentsAction
extends ConfluenceActionSupport

See Also:
Serialized Form

Field Summary
protected  AttachmentManager attachmentManager
           
protected  java.util.List highlight
           
 
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, log, permissionManager, permitted, 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
AbstractViewAttachmentsAction()
           
 
Method Summary
 java.lang.String execute()
           
 java.lang.String[] getAttachmentDetails(Attachment attachment)
          Used for writing the "do you want to remove?" message.
abstract  ContentEntityObject getContentEntityObject()
           
 java.util.List getHighlight()
           
 java.lang.String getHighlightParameter()
           
 java.util.List getLatestVersionsOfAttachments()
           
 int getMaxAttachments()
           
protected  com.opensymphony.webwork.dispatcher.multipart.MultiPartRequestWrapper getMultiPartRequest()
           
 java.util.List getPreviousVersions(Attachment attachment)
           
 java.lang.String getSortBy()
           
 long getUploadLimit()
           
abstract  boolean hasAttachFilePermissions()
           
 void setAttachmentManager(AttachmentManager attachmentManager)
           
 void setFileUploadManager(FileUploadManager fileUploadManager)
           
 void setHighlight(java.util.List names)
           
 void setSortBy(java.lang.String sortBy)
           
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getBootstrapManager, getCancelResult, getDateFormatter, getDefaultResourceBundle, getEventManager, getFriendlyDateFormatter, getGlobalHelper, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getNiceContentType, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, getSpaceHelper, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserFullName, getUserInterfaceState, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermitted, isPermittedAsString, isPrintableVersion, isUsingHSQL, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setPermissionCheck, setPermissionManager, setPreviousLoginDate, setSettingsManager, 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, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attachmentManager

protected AttachmentManager attachmentManager

highlight

protected java.util.List highlight
Constructor Detail

AbstractViewAttachmentsAction

public AbstractViewAttachmentsAction()
Method Detail

getMultiPartRequest

protected com.opensymphony.webwork.dispatcher.multipart.MultiPartRequestWrapper getMultiPartRequest()

execute

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

hasAttachFilePermissions

public abstract boolean hasAttachFilePermissions()

getContentEntityObject

public abstract ContentEntityObject getContentEntityObject()

setAttachmentManager

public void setAttachmentManager(AttachmentManager attachmentManager)

getLatestVersionsOfAttachments

public java.util.List getLatestVersionsOfAttachments()

getAttachmentDetails

public java.lang.String[] getAttachmentDetails(Attachment attachment)
Used for writing the "do you want to remove?" message.

Parameters:
attachment - the attachment to get the details of
Returns:
an array of the attachment's name (XML-escaped) and its version number

getUploadLimit

public long getUploadLimit()

getHighlightParameter

public java.lang.String getHighlightParameter()

getPreviousVersions

public java.util.List getPreviousVersions(Attachment attachment)

getMaxAttachments

public int getMaxAttachments()

setFileUploadManager

public void setFileUploadManager(FileUploadManager fileUploadManager)

getHighlight

public java.util.List getHighlight()

setHighlight

public void setHighlight(java.util.List names)

getSortBy

public java.lang.String getSortBy()

setSortBy

public void setSortBy(java.lang.String sortBy)


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.