jbpm-form-modeler-document 6.2.0-SNAPSHOT

org.jbpm.formModeler.fieldTypes.document.handling
Class FileDownloadHandler

java.lang.Object
  extended by org.jbpm.formModeler.service.bb.mvc.components.handling.BeanHandler
      extended by org.jbpm.formModeler.fieldTypes.document.handling.FileDownloadHandler
All Implemented Interfaces:
Serializable

@Named(value="fdch")
@ApplicationScoped
public class FileDownloadHandler
extends org.jbpm.formModeler.service.bb.mvc.components.handling.BeanHandler

See Also:
Serialized Form

Constructor Summary
FileDownloadHandler()
           
 
Method Summary
 org.jbpm.formModeler.service.bb.mvc.controller.CommandResponse actionDownload(org.jbpm.formModeler.service.bb.mvc.controller.CommandRequest request)
          Action to download the specified file
 boolean isEnabledForActionHandling()
           
 
Methods inherited from class org.jbpm.formModeler.service.bb.mvc.components.handling.BeanHandler
actionVoid, addFieldError, afterInvokeAction, beforeInvokeAction, calculateActionShortcuts, clearFieldErrors, getActionForShortcut, getActionName, getBeanName, getExtraActionParams, getFieldErrors, handle, hasError, isEnableDoubleClickControl, isUseActionShortcuts, setEnabledForActionHandling, setEnableDoubleClickControl, setUseActionShortcuts, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDownloadHandler

public FileDownloadHandler()
Method Detail

actionDownload

public org.jbpm.formModeler.service.bb.mvc.controller.CommandResponse actionDownload(org.jbpm.formModeler.service.bb.mvc.controller.CommandRequest request)
Action to download the specified file

Parameters:
request - A CommandRequest object that contains the the HttpServletRequest, HttpServletResponse, HttpSession and the information about the files uploaded on the current submit
Returns:
A CommandResponse to download the document content if the file exists or an empty response if there is any error.

isEnabledForActionHandling

public boolean isEnabledForActionHandling()
Overrides:
isEnabledForActionHandling in class org.jbpm.formModeler.service.bb.mvc.components.handling.BeanHandler

jbpm-form-modeler-document 6.2.0-SNAPSHOT

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.