Class MoveAttachmentAction

java.lang.Object
org.apache.struts2.ActionSupport
All Implemented Interfaces:
BootstrapAware, PageAware, WebInterface, BreadcrumbAware, ContentDetailAction, 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 MoveAttachmentAction extends AbstractPageAwareAction implements BootstrapAware, ContentDetailAction, BreadcrumbAware
See Also:
  • Field Details

  • Constructor Details

    • MoveAttachmentAction

      public MoveAttachmentAction()
  • Method Details

    • setAttachmentManager

      public void setAttachmentManager(AttachmentManager attachmentManager)
    • setPageManager

      public void setPageManager(PageManager pageManager)
    • setLinkManager

      public void setLinkManager(LinkManager linkManager)
    • setNewPageTitle

      public void setNewPageTitle(String newPageTitle)
    • setNewComment

      public void setNewComment(String newComment)
    • setNewContentType

      public void setNewContentType(String contentType)
    • setNewParentPage

      public void setNewParentPage(String newParentPage)
    • setNewFileName

      public void setNewFileName(String fileName)
    • bootstrap

      public void bootstrap()
      Specified by:
      bootstrap in interface BootstrapAware
    • 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 AbstractPageAwareAction
    • 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
    • getAvailableSpaces

      public List getAvailableSpaces()
      Overwrites the superclass function in order to list all spaces including the current.
      Returns:
      List of available spaces
    • setIsFromPageView

      public void setIsFromPageView(boolean isFromPageView)
    • getIsFromPageView

      public boolean getIsFromPageView()
    • getRedirectPage

      public String getRedirectPage()
    • getNewFileName

      public String getNewFileName()
    • getNewParentPage

      public String getNewParentPage()
    • getNewComment

      public String getNewComment()
    • getSuggestedContentToBeRefactored

      public Collection<ContentEntityObject> getSuggestedContentToBeRefactored()
    • getAttachment

      public Attachment getAttachment()
    • getNewContentType

      public String getNewContentType()
    • getAttachmentBean

      public AttachmentBean getAttachmentBean()
    • getNewAttachmentBean

      public AttachmentBean getNewAttachmentBean()
    • setFileName

      public void setFileName(String fileName)
    • setVersion

      public void setVersion(int version)
    • getWebInterfaceContext

      public WebInterfaceContext getWebInterfaceContext()
      Description copied from interface: WebInterface
      Returns a context which can be passed to web items when rendering them.

      Typically, Struts actions will implement this to provide extra details in the context such as content objects, and so on.

      Specified by:
      getWebInterfaceContext in interface WebInterface
      Overrides:
      getWebInterfaceContext in class ConfluenceActionSupport
    • setBreadcrumbGenerator

      public void setBreadcrumbGenerator(BreadcrumbGenerator breadcrumbGenerator)
    • getBreadcrumb

      public Breadcrumb getBreadcrumb()
      Description copied from interface: BreadcrumbAware
      Returns the breadcrumb to be shown when the action is accessed.
      Specified by:
      getBreadcrumb in interface BreadcrumbAware
      Returns:
      Breadcrumb