All Implemented Interfaces:
IPageFlowScopeAdapter, ICompositeViewControlPageBean, IPostPageComponentPhaseListener, Serializable, EventListener, PhaseListener, HttpSessionBindingListener
Direct Known Subclasses:
AttachmentsListPage

public class AttachmentsPage extends BaseCompositeViewControlPageBean implements IPostPageComponentPhaseListener
See Also:
  • Field Details

    • fAttachmentsTableContentProvider

      protected SelectableListTableContentProvider fAttachmentsTableContentProvider
    • fCharacterEncodingSelectItemGroupProvider

      protected transient CharacterEncodingSelectItemGroupProvider fCharacterEncodingSelectItemGroupProvider
    • fAddFileItem1

      protected transient org.apache.commons.fileupload.FileItem fAddFileItem1
    • fAddEncoding1

      protected transient String fAddEncoding1
    • fAddFileItem2

      protected transient org.apache.commons.fileupload.FileItem fAddFileItem2
    • fAddEncoding2

      protected transient String fAddEncoding2
    • fAddFileItem3

      protected transient org.apache.commons.fileupload.FileItem fAddFileItem3
    • fAddEncoding3

      protected transient String fAddEncoding3
    • fUpdateURI

      protected transient String fUpdateURI
    • fUpdateFileItem

      protected transient org.apache.commons.fileupload.FileItem fUpdateFileItem
    • fUpdateEncoding

      protected transient String fUpdateEncoding
    • fAcceptContentTypes

      protected String fAcceptContentTypes
    • fAcceptContentTypesMessage

      protected String fAcceptContentTypesMessage
    • fAcceptFileExtensions

      protected String fAcceptFileExtensions
    • fAcceptFileExtensionsMessage

      protected String fAcceptFileExtensionsMessage
    • fMaxFileSize

      protected Long fMaxFileSize
    • fMaxFileSizeMessage

      protected String fMaxFileSizeMessage
    • fCustomValidator

      protected Validator fCustomValidator
    • fDefaultEncoding

      protected String fDefaultEncoding
    • fAttachmentsProvider

      protected IAttachmentsProvider fAttachmentsProvider
    • fReadOnly

      protected Boolean fReadOnly
    • fDownloadTargetWindow

      protected String fDownloadTargetWindow
  • Constructor Details

    • AttachmentsPage

      public AttachmentsPage()
  • Method Details

    • afterInvokeApplication

      protected void afterInvokeApplication()
      Description copied from class: BaseViewBean
      Clients should overwrite this method to perform custom actions after an action method is invoked.
      Overrides:
      afterInvokeApplication in class BaseViewBean
    • getPostPagePhaseId

      public PhaseId getPostPagePhaseId()
      Specified by:
      getPostPagePhaseId in interface IPostPageComponentPhaseListener
    • postPageAfterPhase

      public void postPageAfterPhase(PhaseEvent e)
      Specified by:
      postPageAfterPhase in interface IPostPageComponentPhaseListener
    • postPageBeforePhase

      public void postPageBeforePhase(PhaseEvent e)
      Specified by:
      postPageBeforePhase in interface IPostPageComponentPhaseListener
    • getDownloadTargetWindow

      public String getDownloadTargetWindow()
    • setDownloadTargetWindow

      public void setDownloadTargetWindow(String downloadTargetWindow)
    • getAttachmentsProvider

      public IAttachmentsProvider getAttachmentsProvider()
      Returns:
      the attachmentsProvider
    • setAttachmentsProvider

      public void setAttachmentsProvider(IAttachmentsProvider attachmentsProvider)
      Parameters:
      attachmentsProvider - the attachmentsProvider to set
    • getAttachmentsTableContentProvider

      public SelectableListTableContentProvider getAttachmentsTableContentProvider()
      Returns:
      the attachmentsTableContentProvider
    • removeSelectedAttachments_action

      public String removeSelectedAttachments_action()
      Action Event Handler for the control with id='removeSelectedAttachments'
    • getDefaultEncoding

      public String getDefaultEncoding()
      Returns:
      the defaultEncoding
    • setDefaultEncoding

      public void setDefaultEncoding(String defaultEncoding)
      Parameters:
      defaultEncoding - the defaultEncoding to set
    • getUpdateEncoding

      public String getUpdateEncoding()
      Returns:
      the updateEncoding
    • setUpdateEncoding

      public void setUpdateEncoding(String updateEncoding)
      Parameters:
      updateEncoding - the updateEncoding to set
    • getUpdateFileItem

      public org.apache.commons.fileupload.FileItem getUpdateFileItem()
      Returns:
      the updateFileItem
    • setUpdateFileItem

      public void setUpdateFileItem(org.apache.commons.fileupload.FileItem updateFileItem)
      Parameters:
      updateFileItem - the updateFileItem to set
    • getUpdateURI

      public String getUpdateURI()
      Returns:
      the updateURI
    • setUpdateURI

      public void setUpdateURI(String updateURI)
      Parameters:
      updateURI - the updateURI to set
    • getAddEncoding1

      public String getAddEncoding1()
      Returns:
      the addEncoding1
    • setAddEncoding1

      public void setAddEncoding1(String addEncoding1)
      Parameters:
      addEncoding1 - the addEncoding1 to set
    • getAddEncoding2

      public String getAddEncoding2()
      Returns:
      the addEncoding2
    • setAddEncoding2

      public void setAddEncoding2(String addEncoding2)
      Parameters:
      addEncoding2 - the addEncoding2 to set
    • getAddEncoding3

      public String getAddEncoding3()
      Returns:
      the addEncoding3
    • setAddEncoding3

      public void setAddEncoding3(String addEncoding3)
      Parameters:
      addEncoding3 - the addEncoding3 to set
    • getAddFileItem1

      public org.apache.commons.fileupload.FileItem getAddFileItem1()
      Returns:
      the addFileItem1
    • setAddFileItem1

      public void setAddFileItem1(org.apache.commons.fileupload.FileItem addFileItem1)
      Parameters:
      addFileItem1 - the addFileItem1 to set
    • getAddFileItem2

      public org.apache.commons.fileupload.FileItem getAddFileItem2()
      Returns:
      the addFileItem2
    • setAddFileItem2

      public void setAddFileItem2(org.apache.commons.fileupload.FileItem addFileItem2)
      Parameters:
      addFileItem2 - the addFileItem2 to set
    • getAddFileItem3

      public org.apache.commons.fileupload.FileItem getAddFileItem3()
      Returns:
      the addFileItem3
    • setAddFileItem3

      public void setAddFileItem3(org.apache.commons.fileupload.FileItem addFileItem3)
      Parameters:
      addFileItem3 - the addFileItem3 to set
    • isReadOnly

      public boolean isReadOnly()
      Returns:
      the readOnly
    • setReadOnly

      public void setReadOnly(boolean readOnly)
      Parameters:
      readOnly - the readOnly to set
    • getAvailableCharacterEncodings

      public ISelectItemGroupProvider getAvailableCharacterEncodings()
    • addAttachmentsButton_action

      public String addAttachmentsButton_action()
      Action Event Handler for the control with id='addAttachmentsButton'
    • updateAttachmentButton_action

      public String updateAttachmentButton_action()
      Action Event Handler for the control with id='updateAttachmentButton'
    • getAcceptContentTypes

      public String getAcceptContentTypes()
      Returns:
      the accept content types value
    • setAccept

      public void setAccept(String acceptContentTypes)
      Sets the CSV of mime types that are allowed to be added to the attachment provider
      Parameters:
      accept - the csv of mime types to allow to be added
    • getAcceptContentTypesMessage

      public String getAcceptContentTypesMessage()
      Returns:
      the accept content types message
    • setAcceptContentTypesMessage

      public void setAcceptContentTypesMessage(String acceptMessage)
      Sets the Message to display of the accept content type validation fails
      Parameters:
      accept - the csv of mimetypes to allow to be added
    • getAcceptFileExtensions

      public String getAcceptFileExtensions()
      Returns:
      the accept content types value
    • setAcceptFileExtensions

      public void setAcceptFileExtensions(String acceptFileExtensions)
      Sets the CSV of file extensions that are allowed to be added to the attachment provider
      Parameters:
      accept - the csv of file extensions to allow to be added
    • getAcceptFileExtensionsMessage

      public String getAcceptFileExtensionsMessage()
      Returns:
      the accept file extensions message
    • setAcceptFileExtensionsMessage

      public void setAcceptFileExtensionsMessage(String acceptMessage)
      Sets the Message to display of the accept file extensions validation fails
      Parameters:
      accept - the csv of file extensions to allow to be added
    • getMaxFileSize

      public Long getMaxFileSize()
      Returns:
      the maxFileSize
    • setMaxFileSize

      public void setMaxFileSize(Long maxFileSize)
      Parameters:
      maxFileSize - the maxFileSize to set
    • getMaxFileSizeMessage

      public String getMaxFileSizeMessage()
      Returns:
      the maxFileSizeMessage
    • setMaxFileSizeMessage

      public void setMaxFileSizeMessage(String maxFileSizeMessage)
      Parameters:
      maxFileSizeMessage - the maxFileSizeMessage to set
    • getCustomValidator

      public Validator getCustomValidator()
      Returns:
      the customValidator
    • setCustomValidator

      public void setCustomValidator(Validator customValidator)
      Parameters:
      customValidator - the customValidator to set
    • fileContentTypeValidator

      public void fileContentTypeValidator(FacesContext context, UIComponent component, Object value)
      Validator for checking the content type of a file