Class AttachedImagesAction

java.lang.Object
org.apache.struts2.ActionSupport
com.opensymphony.xwork2.ActionSupport
All Implemented Interfaces:
Beanable, 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

public class AttachedImagesAction extends ConfluenceActionSupport implements Beanable

Simple Action to retrieve the details of a ContentEntityObject's image attachments.

Since it is purpose built for the editor, it's possible this action should be moved to an editor actions package.

Warning: Think twice before removing or replacing this action. At the time of 4.0, this action was significantly faster than the equivalent REST resource /content/{id}/attachments.json

See Also:
  • Constructor Details

    • AttachedImagesAction

      public AttachedImagesAction()
  • Method Details

    • validate

      public void validate()
      Specified by:
      validate in interface MessageHolderAware
      Specified by:
      validate in interface org.apache.struts2.Validateable
      Overrides:
      validate in class org.apache.struts2.ActionSupport
    • isPermitted

      public boolean isPermitted()
      Description copied from class: ConfluenceActionSupport
      Overrides:
      isPermitted in class ConfluenceActionSupport
    • execute

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

      public Object getBean()
      Specified by:
      getBean in interface Beanable
    • setAttachmentManager

      public void setAttachmentManager(AttachmentManager attachmentManager)
    • setThumbnailManager

      public void setThumbnailManager(ThumbnailManager thumbnailManager)
    • setContentId

      public void setContentId(long contentId)
    • setContentEntityManager

      public void setContentEntityManager(ContentEntityManager contentEntityManager)