public abstract class

AbstractViewAttachmentsAction

extends ConfluenceActionSupport
implements BootstrapAware ServletRequestAware
java.lang.Object
   ↳ com.opensymphony.xwork.ActionSupport
     ↳ com.atlassian.confluence.core.ConfluenceActionSupport
       ↳ com.atlassian.confluence.pages.actions.AbstractViewAttachmentsAction
Known Direct Subclasses
Known Indirect Subclasses

Summary

[Expand]
Inherited Constants
From class com.atlassian.confluence.core.ConfluenceActionSupport
From interface com.opensymphony.xwork.Action
Fields
protected AttachmentManager attachmentManager
protected FileStorer fileStorer
protected List<String> highlight
[Expand]
Inherited Fields
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
Public Constructors
AbstractViewAttachmentsAction()
Public Methods
void bootstrap()
String execute()
String[] getAttachmentDetails(Attachment attachment)
Used for writing the "do you want to remove?" message.
abstract ContentEntityObject getContentEntityObject()
List<String> getHighlight()
String getHighlightParameter()
List<Attachment> getLatestVersionsOfAttachments()
int getMaxAttachments()
MultiPartRequestWrapper getMultiPartRequest()
List getPreviousVersions(Attachment attachment)
String getSortBy()
long getUploadLimit()
boolean hasAttachFilePermissions()
void setAttachmentManager(AttachmentManager attachmentManager)
void setFileUploadManager(FileUploadManager fileUploadManager)
void setHighlight(List<String> names)
void setServletRequest(HttpServletRequest httpServletRequest)
void setSortBy(String sortBy)
Protected Methods
void validateUpload()
[Expand]
Inherited Methods
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
From class java.lang.Object
From interface com.atlassian.confluence.pages.actions.beans.BootstrapAware
From interface com.atlassian.confluence.plugin.descriptor.web.WebInterface
From interface com.opensymphony.webwork.interceptor.ServletRequestAware
From interface com.opensymphony.xwork.Action
From interface com.opensymphony.xwork.LocaleProvider
From interface com.opensymphony.xwork.TextProvider
From interface com.opensymphony.xwork.Validateable
From interface com.opensymphony.xwork.ValidationAware

Fields

protected AttachmentManager attachmentManager

protected FileStorer fileStorer

protected List<String> highlight

Public Constructors

public AbstractViewAttachmentsAction ()

Public Methods

public void bootstrap ()

public String execute ()

Throws
Exception

public 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

public abstract ContentEntityObject getContentEntityObject ()

public List<String> getHighlight ()

public String getHighlightParameter ()

public List<Attachment> getLatestVersionsOfAttachments ()

public int getMaxAttachments ()

public MultiPartRequestWrapper getMultiPartRequest ()

public List getPreviousVersions (Attachment attachment)

public String getSortBy ()

public long getUploadLimit ()

public boolean hasAttachFilePermissions ()

public void setAttachmentManager (AttachmentManager attachmentManager)

public void setFileUploadManager (FileUploadManager fileUploadManager)

public void setHighlight (List<String> names)

public void setServletRequest (HttpServletRequest httpServletRequest)

public void setSortBy (String sortBy)

Protected Methods

protected void validateUpload ()