public class

ListAttachmentsAction

extends AbstractSpaceAction
implements Evented<T> SpaceAware
java.lang.Object
   ↳ com.opensymphony.xwork.ActionSupport
     ↳ com.atlassian.confluence.core.ConfluenceActionSupport
       ↳ com.atlassian.confluence.spaces.actions.AbstractSpaceAction
         ↳ com.atlassian.confluence.spaces.actions.ListAttachmentsAction

Summary

[Expand]
Inherited Constants
From class com.atlassian.confluence.core.ConfluenceActionSupport
From interface com.opensymphony.xwork.Action
[Expand]
Inherited Fields
From class com.atlassian.confluence.spaces.actions.AbstractSpaceAction
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
Public Constructors
ListAttachmentsAction()
Public Methods
String execute()
AttachmentListViewEvent getEventToPublish(String result)
Gets the event to publish.
String getFileExtension()
String getLabels()
int getLabelsCount()
PaginationSupport getPaginationSupport()
String getSortBy()
boolean isSpaceRequired()
If the action requires that the space be set before being run, then it should return true to this method.
boolean isViewPermissionRequired()
void setFileExtension(String fileExtension)
void setLabels(String labels)
void setSearchManager(SearchManager searchManager)
void setSortBy(String sortBy)
void setStartIndex(int startIndex)
[Expand]
Inherited Methods
From class com.atlassian.confluence.spaces.actions.AbstractSpaceAction
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
From class java.lang.Object
From interface com.atlassian.confluence.event.Evented
From interface com.atlassian.confluence.plugin.descriptor.web.WebInterface
From interface com.atlassian.confluence.spaces.Spaced
From interface com.atlassian.confluence.spaces.actions.SpaceAware
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

Public Constructors

public ListAttachmentsAction ()

Public Methods

public String execute ()

Throws
Exception

public AttachmentListViewEvent getEventToPublish (String result)

Gets the event to publish.

Parameters
result the result of the action executing.
Returns
  • the event. Can be null, in which case no event will be published.

public String getFileExtension ()

public String getLabels ()

public int getLabelsCount ()

public PaginationSupport getPaginationSupport ()

public String getSortBy ()

public boolean isSpaceRequired ()

If the action requires that the space be set before being run, then it should return true to this method. If the action requires a space, but no space is available, then the interceptor will automatically redirect to the 'pagenotfound' result

Returns
  • true if the action requires a space in order to execute

public boolean isViewPermissionRequired ()

public void setFileExtension (String fileExtension)

public void setLabels (String labels)

public void setSearchManager (SearchManager searchManager)

public void setSortBy (String sortBy)

public void setStartIndex (int startIndex)