Class BlogServiceSession
java.lang.Object
fr.paris.lutece.plugins.blog.service.BlogServiceSession
This Service manages document actions (create, move, delete, validate ...) and notify listeners.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBlogFromSession(jakarta.servlet.http.HttpSession session, int nIdBlog) Get the current blog form from the sessiongetBlogFromSession(jakarta.servlet.http.HttpSession session, Blog blog) Get the current blog form from the sessiongetDocContentFromSession(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 codevoidremoveBlogFromSession(jakarta.servlet.http.HttpSession session, int idBlog) Remove any blog form responses stored in the session of the uservoidremoveBlogFromSession(jakarta.servlet.http.HttpSession session, Blog blog) Remove any blog form responses stored in the session of the uservoidremoveDocContentFromSession(jakarta.servlet.http.HttpSession session, fr.paris.lutece.api.user.User user) Remove any docContent form responses stored in the session of the uservoidremoveDocContentFromSession(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 uservoidsaveBlogInSession(jakarta.servlet.http.HttpSession session, Blog blog) Save an blog in the session of the uservoidsaveBlogInSession(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
-
Constructor Details
-
BlogServiceSession
public BlogServiceSession()
-
-
Method Details
-
saveBlogInSession
Save an blog in the session of the user- Parameters:
session- The sessionblog- The blog to save
-
getBlogFromSession
Get the current blog form from the session- Parameters:
session- The session of the userblog-- Returns:
- The blog form
-
getBlogFromSession
Get the current blog form from the session- Parameters:
session- The session of the usernIdBlog-- Returns:
- The blog post
-
removeBlogFromSession
Remove any blog form responses stored in the session of the user- Parameters:
session- The sessionblog-
-
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 sessionidBlog-
-
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 sessiondocContent- The docContent to removeuser- The user
-