Package de.xima.fc.gui.common.bean
Class SupportBean
-
- All Implemented Interfaces:
Serializable
@Named @ViewScoped public class SupportBean extends AJSFContext
- Author:
- XIMA MEDIA GmbH
- 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.common.utils.msg.AJSFContext
localeBean
-
-
Constructor Summary
Constructors Constructor Description SupportBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<javax.faces.model.SelectItem>getAvailableLogs()List<Projekt>getAvailableProjects()StringgetMailBody()Creates the body for the support mail.StringgetMailFrom()intgetMaxLogsSize()Map<String,byte[]>getOtherFiles()StringgetPreviewHeader()Returns a summary of the data send when the user click the submit button.List<String>getSelectedLogs()List<Projekt>getSelectedProjects()SessionBeangetSessionBean()Deprecated.StringgetSubject()StringgetText()ViewBeangetViewBean()Deprecated.voidhandleFileUpload(org.primefaces.event.FileUploadEvent event)booleanisAgreementAccepted()booleanisPreview()booleanisSendForms()booleanisSendLogs()booleanisSendSystemInfo()booleanisShowSupportSendForms()booleanisShowSupportSendLogs()voidremoveAttachment(String attachmentName)voidreset()voidsetAgreementAccepted(boolean agreementAccepted)voidsetMailFrom(String mailFrom)voidsetMaxLogsSize(int maxLogsSize)voidsetOtherFiles(Map<String,byte[]> otherFiles)voidsetPreview(boolean preview)voidsetSelectedLogs(List<String> selectedLogs)voidsetSelectedProjects(List<Projekt> selectedProjects)voidsetSendForms(boolean sendForms)voidsetSendLogs(boolean sendLogs)voidsetSessionBean(SessionBean sessionBean)Deprecated.voidsetSubject(String subject)voidsetText(String text)voidsetViewBean(ViewBean viewBean)Deprecated.voidsubmit()Sends the support mail and adds an error message if something goes wrong.voidupdateData()voidupdateProjectList()-
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, 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, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, errorMsg, errorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg, msg
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.I18nUtils
getFacesContext, getLocale, rbValue, rbValue, rbValue, rbValueOrDefault, rbValueOrDefault
-
-
-
-
Method Detail
-
getMailFrom
public String getMailFrom()
-
setMailFrom
public void setMailFrom(String mailFrom)
-
getSubject
public String getSubject()
-
setSubject
public void setSubject(String subject)
-
getText
public String getText()
-
setText
public void setText(String text)
-
getMaxLogsSize
public int getMaxLogsSize()
-
setMaxLogsSize
public void setMaxLogsSize(int maxLogsSize)
-
isAgreementAccepted
public boolean isAgreementAccepted()
-
setAgreementAccepted
public void setAgreementAccepted(boolean agreementAccepted)
-
isSendForms
public boolean isSendForms()
-
setSendForms
public void setSendForms(boolean sendForms)
-
isSendLogs
public boolean isSendLogs()
-
setSendLogs
public void setSendLogs(boolean sendLogs)
-
isSendSystemInfo
public boolean isSendSystemInfo()
-
isPreview
public boolean isPreview()
-
setPreview
public void setPreview(boolean preview)
-
getPreviewHeader
public String getPreviewHeader()
Returns a summary of the data send when the user click the submit button.- Returns:
- The summary string.
-
getMailBody
public String getMailBody()
Creates the body for the support mail.- Returns:
- The mail body string.
-
isShowSupportSendForms
public boolean isShowSupportSendForms()
-
isShowSupportSendLogs
public boolean isShowSupportSendLogs()
-
getAvailableLogs
public List<javax.faces.model.SelectItem> getAvailableLogs()
-
getSessionBean
@Deprecated public SessionBean getSessionBean()
Deprecated.
-
setSessionBean
@Deprecated public void setSessionBean(SessionBean sessionBean)
Deprecated.
-
getViewBean
@Deprecated public ViewBean getViewBean()
Deprecated.
-
setViewBean
@Deprecated public void setViewBean(ViewBean viewBean)
Deprecated.
-
updateData
public void updateData()
-
updateProjectList
public void updateProjectList()
-
handleFileUpload
public void handleFileUpload(org.primefaces.event.FileUploadEvent event)
-
removeAttachment
public void removeAttachment(String attachmentName)
-
submit
public void submit()
Sends the support mail and adds an error message if something goes wrong.
-
reset
public void reset()
-
-