Class AttachedImagesAction

  • 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

    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:
    Serialized Form
    • Constructor Detail

      • AttachedImagesAction

        public AttachedImagesAction()
    • Method Detail

      • validate

        public void validate()
        Specified by:
        validate in interface MessageHolderAware
        Specified by:
        validate in interface com.opensymphony.xwork2.Validateable
        Overrides:
        validate in class com.opensymphony.xwork2.ActionSupport
      • execute

        public String execute()
        Specified by:
        execute in interface com.opensymphony.xwork2.Action
        Overrides:
        execute in class com.opensymphony.xwork2.ActionSupport
      • setAttachmentManager

        public void setAttachmentManager​(AttachmentManager attachmentManager)
      • setThumbnailManager

        public void setThumbnailManager​(ThumbnailManager thumbnailManager)
      • setContentId

        public void setContentId​(long contentId)
      • setContentEntityManager

        public void setContentEntityManager​(ContentEntityManager contentEntityManager)