Package de.xima.fc.gui.bean.application
Class DownloadBean
-
- All Implemented Interfaces:
Serializable
@Named @RequestScoped public class DownloadBean extends FCContextBean
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
AJSFContext.RedirectOptions, AJSFContext.RedirectOptionsBuilder
-
-
Field Summary
-
Fields inherited from class de.xima.fc.gui.bean.FCContextBean
systemUC
-
-
Constructor Summary
Constructors Constructor Description DownloadBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends IFileDataEntity<?>>
org.primefaces.model.StreamedContentdownload(IFileProviding<?,T> resource)
org.primefaces.model.StreamedContent
downloadFromFile(File resourceFile)
org.primefaces.model.StreamedContent
downloadFromURL(URL resourceURL)
-
Methods inherited from class de.xima.fc.gui.bean.FCContextBean
getNavigationBean, getSessionBean, isSetupUser, redirectToDashboard, setNavigationBean, setSessionBean, switchMainView, switchMainView, switchSubView, switchSubView
-
Methods inherited from class de.xima.fc.gui.bean.ABackendJSFContext
ec, findEntityContext, isDetached, isHasDB
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
destroySessionBean, encodeURL, findBean, findBean, findBean, findBean, findBean, findBean, findBean, findCurrentView, findUserContext, getBeanName, getBeanName, getContext, getCurrentViewBean, getLocaleBean, getRequest, getResponse, getSession, getSession, getSessionAttribute, isMasterServerContext, loadLazy, redirect, redirect, redirect, redirect, redirectToDashboard, redirectToDashboard, setLocaleBean, setSessionAttribute, uc
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.MessageUtils
addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsgFromString, addErrorMsgFromString, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsgFromString, addInfoMsgFromString, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addMsg, addMsg, addMsg, addMsg, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg
-
-
-
-
Method Detail
-
download
public <T extends IFileDataEntity<?>> org.primefaces.model.StreamedContent download(IFileProviding<?,T> resource) throws javax.faces.event.AbortProcessingException
- Throws:
javax.faces.event.AbortProcessingException
-
downloadFromURL
public org.primefaces.model.StreamedContent downloadFromURL(URL resourceURL) throws javax.faces.event.AbortProcessingException
- Throws:
javax.faces.event.AbortProcessingException
-
downloadFromFile
public org.primefaces.model.StreamedContent downloadFromFile(File resourceFile) throws javax.faces.event.AbortProcessingException
- Throws:
javax.faces.event.AbortProcessingException
-
-