Class BlogServiceSession
- java.lang.Object
-
- fr.paris.lutece.plugins.blog.service.BlogServiceSession
-
public class BlogServiceSession extends java.lang.ObjectThis Service manages document actions (create, move, delete, validate ...) and notify listeners.
-
-
Constructor Summary
Constructors Constructor Description BlogServiceSession()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BloggetBlogFromSession(javax.servlet.http.HttpSession session, int nIdBlog)Get the current blog form from the sessionBloggetBlogFromSession(javax.servlet.http.HttpSession session, Blog blog)Get the current blog form from the sessionjava.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 codestatic BlogServiceSessiongetInstance()Get the unique instance of the servicevoidremoveBlogFromSession(javax.servlet.http.HttpSession session, int idBlog)Remove any blog form responses stored in the session of the uservoidremoveBlogFromSession(javax.servlet.http.HttpSession session, Blog blog)Remove any blog form responses stored in the session of the uservoidremoveDocContentFromSession(javax.servlet.http.HttpSession session, fr.paris.lutece.api.user.User user)Remove any docContent form responses stored in the session of the uservoidremoveDocContentFromSession(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 uservoidsaveBlogInSession(javax.servlet.http.HttpSession session, Blog blog)Save an blog in the session of the uservoidsaveBlogInSession(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
-
-
-
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 sessionblog- 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 userblog-- 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 usernIdBlog-- 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 sessionblog-
-
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 sessionidBlog-
-
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 sessiondocContent- The docContent to removeuser- The user
-
-