Class AbstractViewAttachmentsAction

java.lang.Object
org.apache.struts2.ActionSupport
com.opensymphony.xwork2.ActionSupport
All Implemented Interfaces:
BootstrapAware, WebInterface, MessageHolderAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.Validateable
Direct Known Subclasses:
ViewPageAttachmentsAction

public abstract class AbstractViewAttachmentsAction extends ConfluenceActionSupport implements BootstrapAware
See Also:
  • Field Details

  • Constructor Details

    • AbstractViewAttachmentsAction

      public AbstractViewAttachmentsAction()
  • Method Details

    • withServletRequest

      @Deprecated(forRemoval=true) public void withServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 9.1, no replacement.
    • bootstrap

      @Deprecated(forRemoval=true) public void bootstrap()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 9.4, no replacement.
      Specified by:
      bootstrap in interface BootstrapAware
    • validateUpload

      protected void validateUpload()
    • execute

      public String execute() throws Exception
      Specified by:
      execute in interface org.apache.struts2.action.Action
      Overrides:
      execute in class org.apache.struts2.ActionSupport
      Throws:
      Exception
    • hasAttachFilePermissions

      public boolean hasAttachFilePermissions()
    • getContentEntityObject

      public abstract ContentEntityObject getContentEntityObject()
    • setAttachmentManager

      public void setAttachmentManager(AttachmentManager attachmentManager)
    • getLatestVersionsOfAttachments

      public List<Attachment> getLatestVersionsOfAttachments()
    • getAttachmentDetails

      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
    • getUploadLimit

      public long getUploadLimit()
    • getHighlightParameter

      public String getHighlightParameter()
    • getAllVersions

      public List<Attachment> getAllVersions(Attachment attachment)
    • getMaxAttachments

      public int getMaxAttachments()
    • setFileUploadManager

      public void setFileUploadManager(FileUploadManager fileUploadManager)
    • getHighlight

      public List<String> getHighlight()
    • setHighlight

      public void setHighlight(List<String> names)
    • getSortBy

      public String getSortBy()
    • setSortBy

      public void setSortBy(String sortBy)
    • setLabels

      public void setLabels(String labels)
    • getLabels

      public String getLabels()