Class AbstractViewAttachmentsAction

    • Constructor Detail

      • AbstractViewAttachmentsAction

        public AbstractViewAttachmentsAction()
    • Method Detail

      • setServletRequest

        public void setServletRequest​(javax.servlet.http.HttpServletRequest httpServletRequest)
        Specified by:
        setServletRequest in interface org.apache.struts2.interceptor.ServletRequestAware
      • validateUpload

        protected void validateUpload()
      • execute

        public String execute()
                       throws Exception
        Specified by:
        execute in interface com.opensymphony.xwork2.Action
        Overrides:
        execute in class com.opensymphony.xwork2.ActionSupport
        Throws:
        Exception
      • hasAttachFilePermissions

        public boolean hasAttachFilePermissions()
      • 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()
      • 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()