Class BlogServiceSession


  • public class BlogServiceSession
    extends Object
    This Service manages document actions (create, move, delete, validate ...) and notify listeners.
    • Constructor Detail

      • BlogServiceSession

        public BlogServiceSession()
    • Method Detail

      • getInstance

        public static BlogServiceSession getInstance()
        Get the unique instance of the service
        Returns:
        The unique instance
      • saveBlogInSession

        public void saveBlogInSession​(javax.servlet.http.HttpSession session,
                                      Blog blog)
        Save an blog in the session of the user
        Parameters:
        session - The session
        blog - The blog to save
      • getBlogFromSession

        public Blog getBlogFromSession​(javax.servlet.http.HttpSession session,
                                       Blog blog)
        Get the current blog form from the session
        Parameters:
        session - The session of the user
        blog -
        Returns:
        The blog form
      • getBlogFromSession

        public Blog getBlogFromSession​(javax.servlet.http.HttpSession session,
                                       int nIdBlog)
        Get the current blog form from the session
        Parameters:
        session - The session of the user
        nIdBlog -
        Returns:
        The blog post
      • removeBlogFromSession

        public void removeBlogFromSession​(javax.servlet.http.HttpSession session,
                                          Blog blog)
        Remove any blog form responses stored in the session of the user
        Parameters:
        session - The session
        blog -
      • removeBlogFromSession

        public void removeBlogFromSession​(javax.servlet.http.HttpSession session,
                                          int idBlog)
        Remove any blog form responses stored in the session of the user
        Parameters:
        session - The session
        idBlog -