Class 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 Detail

      • SessionDataBean

        public SessionDataBean()
    • 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 by Collection.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.