Package de.xima.fc.security.session
Class SessionDataBean
- java.lang.Object
-
- de.xima.fc.security.session.SessionDataBean
-
- All Implemented Interfaces:
Serializable
@Named @SessionScoped public class SessionDataBean extends Object implements Serializable
Simple bean for storing and accessing data in an HTTP session.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SessionDataBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addInitViewMessage(ViewMessage message)
Adds a view message that is to be displayed upon view initialization.List<ViewMessage>
removeInitViewMessages(IView view)
Removes all view messages that are to be displayed upon initialization of the given view.
-
-
-
Method Detail
-
addInitViewMessage
public boolean addInitViewMessage(ViewMessage message)
Adds a view message that is to be displayed upon view initialization. View messages are useful for displaying information to users after redirection.- Parameters:
message
- to be displayed upon view initialization- Returns:
true
(as specified byCollection.add
)
-
removeInitViewMessages
public List<ViewMessage> removeInitViewMessages(IView view)
Removes all view messages that are to be displayed upon initialization of the given view. View messages are useful for displaying information to users after redirection.- Parameters:
view
- to get messages for that are to be displayed upon the views initialization.- Returns:
- a list of all messages that are to be displayed upon initialization of the given view. These messages are removed from the session data after method execution.
-
-