Class BlogServiceSession

java.lang.Object
fr.paris.lutece.plugins.blog.service.BlogServiceSession

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getBlogFromSession(jakarta.servlet.http.HttpSession session, int nIdBlog)
    Get the current blog form from the session
    getBlogFromSession(jakarta.servlet.http.HttpSession session, Blog blog)
    Get the current blog form from the session
    getDocContentFromSession(jakarta.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
    void
    removeBlogFromSession(jakarta.servlet.http.HttpSession session, int idBlog)
    Remove any blog form responses stored in the session of the user
    void
    removeBlogFromSession(jakarta.servlet.http.HttpSession session, Blog blog)
    Remove any blog form responses stored in the session of the user
    void
    removeDocContentFromSession(jakarta.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(jakarta.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(jakarta.servlet.http.HttpSession session, Blog blog)
    Save an blog in the session of the user
    void
    saveBlogInSession(jakarta.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 Details

    • BlogServiceSession

      public BlogServiceSession()
  • Method Details

    • saveBlogInSession

      public void saveBlogInSession(jakarta.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(jakarta.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(jakarta.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(jakarta.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(jakarta.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(jakarta.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 List<DocContent> getDocContentFromSession(jakarta.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(jakarta.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(jakarta.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