Package de.xima.fc.gui.common.model.push
Class FacesMessagePushData
java.lang.Object
de.xima.fc.gui.common.model.push.FacesMessagePushData
- All Implemented Interfaces:
Serializable
POJO data model for the push event beans. Represents the data for showing a Faces Message on the client.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFacesMessagePushData
(String summary, String detail, EFacesMessageSeverity severity, boolean saveInSession) Creates a new POJO with the given data. -
Method Summary
Modifier and TypeMethodDescriptionstatic FacesMessagePushData
forFacesMessage
(javax.faces.application.FacesMessage message) static FacesMessagePushData
forFacesMessage
(javax.faces.application.FacesMessage message, boolean saveInSession) boolean
-
Constructor Details
-
FacesMessagePushData
public FacesMessagePushData(String summary, String detail, EFacesMessageSeverity severity, boolean saveInSession) Creates a new POJO with the given data.- Parameters:
summary
- Value returned bygetSummary()
detail
- Value returned bygetDetail()
severity
- Value returned bygetSeverity()
saveInSession
- Value returned byisSaveInSession()
-
-
Method Details
-
getDetail
- Returns:
- The detailed message show by the faces message.
-
getSeverity
- Returns:
- The severity of the faces message.
-
getSummary
- Returns:
- The summary message shown by the faces message.
-
isSaveInSession
public boolean isSaveInSession()- Returns:
true
to save the faces message in the session so that it can be redisplayed when the user reloads the page or navigates to another page (requires an additional AJAX call on the client).
-
forFacesMessage
- Parameters:
message
- Faces message to display.- Returns:
- New push data for displaying the contents of the given faces message.
-
forFacesMessage
public static FacesMessagePushData forFacesMessage(javax.faces.application.FacesMessage message, boolean saveInSession) - Parameters:
message
- Faces message to display.saveInSession
-true
to save the faces message in the session so that it can be redisplayed when the user reloads the page or navigates to another page (requires an additional AJAX call on the client).- Returns:
- New push data for displaying the contents of the given faces message.
-