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()
String
getMailBody()
Creates the body for the support mail.String
getMailFrom()
int
getMaxLogsSize()
Map<String,byte[]>
getOtherFiles()
String
getPreviewHeader()
Returns a summary of the data send when the user click the submit button.List<String>
getSelectedLogs()
List<Projekt>
getSelectedProjects()
SessionBean
getSessionBean()
Deprecated.String
getSubject()
String
getText()
ViewBean
getViewBean()
Deprecated.void
handleFileUpload(org.primefaces.event.FileUploadEvent event)
boolean
isAgreementAccepted()
boolean
isPreview()
boolean
isSendForms()
boolean
isSendLogs()
boolean
isSendSystemInfo()
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
setText(String text)
void
setViewBean(ViewBean viewBean)
Deprecated.void
submit()
Sends the support mail and adds an error message if something goes wrong.void
updateData()
void
updateProjectList()
-
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
-
updateData
public void updateData()
-
updateProjectList
public void updateProjectList()
-
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.
-
getAvailableLogs
public List<javax.faces.model.SelectItem> getAvailableLogs()
-
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()
-
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.
-
-