Package de.xima.fc.gui.common.bean
Class SupportBean
- All Implemented Interfaces:
Serializable
- Author:
- XIMA MEDIA GmbH
- See Also:
-
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 -
Method Summary
Modifier and TypeMethodDescriptionList<javax.faces.model.SelectItem>
Creates the body for the support mail.int
Returns a summary of the data send when the user click the submit button.Deprecated.getText()
Deprecated.void
handleFileUpload
(org.primefaces.event.FileUploadEvent event) boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
removeAttachment
(String attachmentName) void
reset()
void
setAgreementAccepted
(boolean agreementAccepted) void
setMailFrom
(String mailFrom) void
setMaxLogsSize
(int maxLogsSize) void
setOtherFiles
(Map<String, byte[]> otherFiles) void
setPreview
(boolean preview) void
setSelectedLogs
(List<String> selectedLogs) void
setSelectedProjects
(List<Projekt> selectedProjects) void
setSendForms
(boolean sendForms) void
setSendLogs
(boolean sendLogs) void
setSessionBean
(SessionBean sessionBean) Deprecated.void
setSubject
(String subject) void
void
setViewBean
(ViewBean viewBean) Deprecated.void
submit()
Sends the support mail and adds an error message if something goes wrong.void
void
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
-
Constructor Details
-
SupportBean
public SupportBean()
-
-
Method Details
-
getMailFrom
-
setMailFrom
-
getSubject
-
setSubject
-
getText
-
setText
-
getMaxLogsSize
public int getMaxLogsSize() -
setMaxLogsSize
public void setMaxLogsSize(int maxLogsSize) -
getSelectedProjects
-
setSelectedProjects
-
getSelectedLogs
-
setSelectedLogs
-
getOtherFiles
-
setOtherFiles
-
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
Returns a summary of the data send when the user click the submit button.- Returns:
- The summary string.
-
getMailBody
Creates the body for the support mail.- Returns:
- The mail body string.
-
isShowSupportSendForms
public boolean isShowSupportSendForms() -
isShowSupportSendLogs
public boolean isShowSupportSendLogs() -
getAvailableProjects
-
getAvailableLogs
-
getSessionBean
Deprecated. -
setSessionBean
Deprecated. -
getViewBean
Deprecated. -
setViewBean
Deprecated. -
updateData
public void updateData() -
updateProjectList
public void updateProjectList() -
handleFileUpload
public void handleFileUpload(org.primefaces.event.FileUploadEvent event) -
removeAttachment
-
submit
public void submit()Sends the support mail and adds an error message if something goes wrong. -
reset
public void reset()
-