Class AttachmentsPage
java.lang.Object
com.webmethods.caf.faces.bean.BaseFacesBean
com.webmethods.caf.faces.bean.BaseFacesSessionBean
com.webmethods.caf.faces.bean.BaseViewBean
com.webmethods.caf.faces.bean.BaseCompositeViewControlPageBean
com.webmethods.caf.faces.component.attachments.view.AttachmentsPage
- All Implemented Interfaces:
IPageFlowScopeAdapter
,ICompositeViewControlPageBean
,IPostPageComponentPhaseListener
,Serializable
,EventListener
,PhaseListener
,HttpSessionBindingListener
- Direct Known Subclasses:
AttachmentsListPage
public class AttachmentsPage
extends BaseCompositeViewControlPageBean
implements IPostPageComponentPhaseListener
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.webmethods.caf.faces.bean.BaseViewBean
BaseViewBean.ClientIdsContentProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
protected String
protected String
protected String
protected org.apache.commons.fileupload.FileItem
protected org.apache.commons.fileupload.FileItem
protected org.apache.commons.fileupload.FileItem
protected IAttachmentsProvider
protected SelectableListTableContentProvider
protected CharacterEncodingSelectItemGroupProvider
protected Validator
protected String
protected String
protected Long
protected String
protected Boolean
protected String
protected org.apache.commons.fileupload.FileItem
protected String
Fields inherited from class com.webmethods.caf.faces.bean.BaseCompositeViewControlPageBean
fCompositeNamingContainer
Fields inherited from class com.webmethods.caf.faces.bean.BaseViewBean
clientIds, initialized
Fields inherited from class com.webmethods.caf.faces.bean.BaseFacesSessionBean
fExpireWithPageFlow
Fields inherited from class com.webmethods.caf.faces.bean.BaseFacesBean
DATA_BINDING_CLIENTS, EMPTY_RESOURCES, OUTCOME_ERROR, OUTCOME_OK, resourcesProviders
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAction Event Handler for the control with id='addAttachmentsButton'protected void
Clients should overwrite this method to perform custom actions after an action method is invoked.void
fileContentTypeValidator
(FacesContext context, UIComponent component, Object value) Validator for checking the content type of a fileorg.apache.commons.fileupload.FileItem
org.apache.commons.fileupload.FileItem
org.apache.commons.fileupload.FileItem
org.apache.commons.fileupload.FileItem
boolean
void
void
Action Event Handler for the control with id='removeSelectedAttachments'void
Sets the CSV of mime types that are allowed to be added to the attachment providervoid
setAcceptContentTypesMessage
(String acceptMessage) Sets the Message to display of the accept content type validation failsvoid
setAcceptFileExtensions
(String acceptFileExtensions) Sets the CSV of file extensions that are allowed to be added to the attachment providervoid
setAcceptFileExtensionsMessage
(String acceptMessage) Sets the Message to display of the accept file extensions validation failsvoid
setAddEncoding1
(String addEncoding1) void
setAddEncoding2
(String addEncoding2) void
setAddEncoding3
(String addEncoding3) void
setAddFileItem1
(org.apache.commons.fileupload.FileItem addFileItem1) void
setAddFileItem2
(org.apache.commons.fileupload.FileItem addFileItem2) void
setAddFileItem3
(org.apache.commons.fileupload.FileItem addFileItem3) void
setAttachmentsProvider
(IAttachmentsProvider attachmentsProvider) void
setCustomValidator
(Validator customValidator) void
setDefaultEncoding
(String defaultEncoding) void
setDownloadTargetWindow
(String downloadTargetWindow) void
setMaxFileSize
(Long maxFileSize) void
setMaxFileSizeMessage
(String maxFileSizeMessage) void
setReadOnly
(boolean readOnly) void
setUpdateEncoding
(String updateEncoding) void
setUpdateFileItem
(org.apache.commons.fileupload.FileItem updateFileItem) void
setUpdateURI
(String updateURI) Action Event Handler for the control with id='updateAttachmentButton'Methods inherited from class com.webmethods.caf.faces.bean.BaseCompositeViewControlPageBean
findComponentInRoot, getClientIds, getCompositeViewAbsoluteControlId, getCompositeViewControlId, getCompositeViewNamingContainer, getPropertyOrBindingValue, setCompositeViewNamingContainer
Methods inherited from class com.webmethods.caf.faces.bean.BaseViewBean
afterApplyRequestValues, afterPhase, afterProcessValidations, afterRenderResponse, afterRestoreView, afterUpdateModelValues, beforeApplyRequestValues, beforeInvokeApplication, beforePhase, beforeProcessValidations, beforeRenderResponse, beforeRestoreView, beforeUpdateModelValues, callInitialize, findComponent, getApplicationScope, getPhaseId, getRealPath, getRequestParam, getRequestScope, getSessionScope, gotoPage, gotoPage, initialize, isAsyncRequest, preRenderResponse, release, resetPageFlowStorage, streamFileDataToResponse
Methods inherited from class com.webmethods.caf.faces.bean.BaseFacesSessionBean
getExpireWithPageFlow, setExpireWithPageFlow, valueBound, valueUnbound
Methods inherited from class com.webmethods.caf.faces.bean.BaseFacesBean
createMethodBinding, createMethodExpression, createValueBinding, createValueExpression, createValueExpression, error, error, error, error, error, getBean, getFacesContext, getLocale, getResourceInputStream, getResources, getResourcesProvider, getRootCause, getStackTrace, getTreeAttribute, isUserInRole, log, log, log, putTreeAttribute, resetDataBindingClients, resolveDataBinding, resolveDataBinding, resolveExpression, setValue
-
Field Details
-
fAttachmentsTableContentProvider
-
fCharacterEncodingSelectItemGroupProvider
protected transient CharacterEncodingSelectItemGroupProvider fCharacterEncodingSelectItemGroupProvider -
fAddFileItem1
protected transient org.apache.commons.fileupload.FileItem fAddFileItem1 -
fAddEncoding1
-
fAddFileItem2
protected transient org.apache.commons.fileupload.FileItem fAddFileItem2 -
fAddEncoding2
-
fAddFileItem3
protected transient org.apache.commons.fileupload.FileItem fAddFileItem3 -
fAddEncoding3
-
fUpdateURI
-
fUpdateFileItem
protected transient org.apache.commons.fileupload.FileItem fUpdateFileItem -
fUpdateEncoding
-
fAcceptContentTypes
-
fAcceptContentTypesMessage
-
fAcceptFileExtensions
-
fAcceptFileExtensionsMessage
-
fMaxFileSize
-
fMaxFileSizeMessage
-
fCustomValidator
-
fDefaultEncoding
-
fAttachmentsProvider
-
fReadOnly
-
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 classBaseViewBean
-
getPostPagePhaseId
- Specified by:
getPostPagePhaseId
in interfaceIPostPageComponentPhaseListener
-
postPageAfterPhase
- Specified by:
postPageAfterPhase
in interfaceIPostPageComponentPhaseListener
-
postPageBeforePhase
- Specified by:
postPageBeforePhase
in interfaceIPostPageComponentPhaseListener
-
getDownloadTargetWindow
-
setDownloadTargetWindow
-
getAttachmentsProvider
- Returns:
- the attachmentsProvider
-
setAttachmentsProvider
- Parameters:
attachmentsProvider
- the attachmentsProvider to set
-
getAttachmentsTableContentProvider
- Returns:
- the attachmentsTableContentProvider
-
removeSelectedAttachments_action
Action Event Handler for the control with id='removeSelectedAttachments' -
getDefaultEncoding
- Returns:
- the defaultEncoding
-
setDefaultEncoding
- Parameters:
defaultEncoding
- the defaultEncoding to set
-
getUpdateEncoding
- Returns:
- the updateEncoding
-
setUpdateEncoding
- 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
- Returns:
- the updateURI
-
setUpdateURI
- Parameters:
updateURI
- the updateURI to set
-
getAddEncoding1
- Returns:
- the addEncoding1
-
setAddEncoding1
- Parameters:
addEncoding1
- the addEncoding1 to set
-
getAddEncoding2
- Returns:
- the addEncoding2
-
setAddEncoding2
- Parameters:
addEncoding2
- the addEncoding2 to set
-
getAddEncoding3
- Returns:
- the addEncoding3
-
setAddEncoding3
- 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
-
addAttachmentsButton_action
Action Event Handler for the control with id='addAttachmentsButton' -
updateAttachmentButton_action
Action Event Handler for the control with id='updateAttachmentButton' -
getAcceptContentTypes
- Returns:
- the accept content types value
-
setAccept
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
- Returns:
- the accept content types message
-
setAcceptContentTypesMessage
Sets the Message to display of the accept content type validation fails- Parameters:
accept
- the csv of mimetypes to allow to be added
-
getAcceptFileExtensions
- Returns:
- the accept content types value
-
setAcceptFileExtensions
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
- Returns:
- the accept file extensions message
-
setAcceptFileExtensionsMessage
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
- Returns:
- the maxFileSize
-
setMaxFileSize
- Parameters:
maxFileSize
- the maxFileSize to set
-
getMaxFileSizeMessage
- Returns:
- the maxFileSizeMessage
-
setMaxFileSizeMessage
- Parameters:
maxFileSizeMessage
- the maxFileSizeMessage to set
-
getCustomValidator
- Returns:
- the customValidator
-
setCustomValidator
- Parameters:
customValidator
- the customValidator to set
-
fileContentTypeValidator
Validator for checking the content type of a file
-