Class BlogServiceSession


  • public class BlogServiceSession
    extends java.lang.Object
    This Service manages document actions (create, move, delete, validate ...) and notify listeners.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Blog getBlogFromSession​(javax.servlet.http.HttpSession session, int nIdBlog)
      Get the current blog form from the session
      Blog getBlogFromSession​(javax.servlet.http.HttpSession session, Blog blog)
      Get the current blog form from the session
      java.util.List<DocContent> getDocContentFromSession​(javax.servlet.http.HttpSession session, fr.paris.lutece.api.user.User user)
      Get the current list of docContent form from the session that contains the user's access code
      static BlogServiceSession getInstance()
      Get the unique instance of the service
      void removeBlogFromSession​(javax.servlet.http.HttpSession session, int idBlog)
      Remove any blog form responses stored in the session of the user
      void removeBlogFromSession​(javax.servlet.http.HttpSession session, Blog blog)
      Remove any blog form responses stored in the session of the user
      void removeDocContentFromSession​(javax.servlet.http.HttpSession session, fr.paris.lutece.api.user.User user)
      Remove any docContent form responses stored in the session of the user
      void removeDocContentFromSession​(javax.servlet.http.HttpSession session, DocContent docContent, fr.paris.lutece.api.user.User user)
      Remove a docContent form response stored in the session of the user
      void saveBlogInSession​(javax.servlet.http.HttpSession session, Blog blog)
      Save an blog in the session of the user
      void saveBlogInSession​(javax.servlet.http.HttpSession session, DocContent docContent, fr.paris.lutece.api.user.User user)
      Save docContent in session when the user is in the process of creating a new blog
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 -
      • saveBlogInSession

        public void saveBlogInSession​(javax.servlet.http.HttpSession session,
                                      DocContent docContent,
                                      fr.paris.lutece.api.user.User user)
        Save docContent in session when the user is in the process of creating a new blog
        Parameters:
        session - The session
      • getDocContentFromSession

        public java.util.List<DocContent> getDocContentFromSession​(javax.servlet.http.HttpSession session,
                                                                   fr.paris.lutece.api.user.User user)
        Get the current list of docContent form from the session that contains the user's access code
        Parameters:
        session - The session of the user
        Returns:
        The docContent form
      • removeDocContentFromSession

        public void removeDocContentFromSession​(javax.servlet.http.HttpSession session,
                                                fr.paris.lutece.api.user.User user)
        Remove any docContent form responses stored in the session of the user
        Parameters:
        session - The session
      • removeDocContentFromSession

        public void removeDocContentFromSession​(javax.servlet.http.HttpSession session,
                                                DocContent docContent,
                                                fr.paris.lutece.api.user.User user)
        Remove a docContent form response stored in the session of the user
        Parameters:
        session - The session
        docContent - The docContent to remove
        user - The user