Class AttachmentSearchAction

java.lang.Object
org.apache.struts2.ActionSupport
All Implemented Interfaces:
Beanable, PageAware, 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 AttachmentSearchAction extends AbstractPageAwareAction implements Beanable
Finds all the attachments on the selected page that match the provided filetype(s). Assumes the provided filetype(s) are always in lower case, however the attachments are case-insensitive.
See Also:
  • Constructor Details

    • AttachmentSearchAction

      public AttachmentSearchAction()
  • Method Details

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

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

      public void setAttachmentManager(AttachmentManager attachmentManager)
    • setFileTypes

      public void setFileTypes(String[] filetypes)