Package de.xima.fc.gui.common.bean
Class NotificationBean
- java.lang.Object
- 
- de.xima.fc.gui.common.utils.msg.I18nUtils
- 
- de.xima.fc.gui.common.utils.msg.MessageUtils
- 
- de.xima.fc.gui.common.utils.msg.AMessaging
- 
- de.xima.fc.gui.common.utils.msg.AJSFContext
- 
- de.xima.fc.gui.common.bean.NotificationBean
 
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 @Named @SessionScoped public class NotificationBean extends AJSFContext Bean that stores all faces messages that should be redisplayed in the notification history to the top right.Also checks messages targetted at a specific client ID and displays those messages as a global growl if certain criteria are met. - Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class de.xima.fc.gui.common.utils.msg.AJSFContextAJSFContext.RedirectOptions, AJSFContext.RedirectOptionsBuilder
 
- 
 - 
Field Summary- 
Fields inherited from class de.xima.fc.gui.common.utils.msg.AJSFContextlocaleBean
 
- 
 - 
Constructor SummaryConstructors Constructor Description NotificationBean()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSessionMessage()Saves the given message in the session.voidaddSessionMessages(List<? extends TargettedFacesMessage> messages)Saves the given FacesMessages in the session.List<SessionFacesMessage>getSessionFacesMessages()StringgetSessionFacesMessagesJson()voidonMessages(MessageListenerEvent event)Callback forMessageListenercomponent that saves the given FacesMessages in the session.javax.faces.application.FacesMessagetransformMessage(MessageListenerTransformParams params)Transforms messages.- 
Methods inherited from class de.xima.fc.gui.common.utils.msg.AJSFContextdestroySessionBean, 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.MessageUtilsaddErrorMsg, 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- 
addSessionMessagepublic void addSessionMessage() Saves the given message in the session.
 - 
addSessionMessagespublic void addSessionMessages(List<? extends TargettedFacesMessage> messages) Saves the given FacesMessages in the session.- Parameters:
- messages- Message to be saved.
 
 - 
getSessionFacesMessagespublic List<SessionFacesMessage> getSessionFacesMessages() - Returns:
- A list of messages currently saved in the session.
 
 - 
getSessionFacesMessagesJsonpublic String getSessionFacesMessagesJson() - Returns:
- A list of messages currently saved in the session, serialized as a JSON array.
 
 - 
onMessagespublic void onMessages(MessageListenerEvent event) Callback forMessageListenercomponent that saves the given FacesMessages in the session.- Parameters:
- event- Message event that occurred.
 
 - 
transformMessagepublic javax.faces.application.FacesMessage transformMessage(MessageListenerTransformParams params) Transforms messages. For file uploads, shows the general warning when there is a validation error.- Parameters:
- params- Parameters with the message to transform.
- Returns:
- The transformed message.
 
 
- 
 
-