public class BlogServiceSession extends Object
Constructor and Description |
---|
BlogServiceSession() |
Modifier and Type | Method and Description |
---|---|
Blog |
getBlogFromSession(javax.servlet.http.HttpSession session,
Blog blog)
Get the current blog form from the session
|
Blog |
getBlogFromSession(javax.servlet.http.HttpSession session,
int idBlog)
Get the current blog form from the session
|
static BlogServiceSession |
getInstance()
Get the unique instance of the service
|
void |
removeBlogFromSession(javax.servlet.http.HttpSession session,
Blog blog)
Remove any blog form responses stored in the session of the user
|
void |
removeBlogFromSession(javax.servlet.http.HttpSession session,
int idBlog)
Remove any blog form responses 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
|
public static BlogServiceSession getInstance()
public void saveBlogInSession(javax.servlet.http.HttpSession session, Blog blog)
session
- The sessionBlog
- The blog to savepublic Blog getBlogFromSession(javax.servlet.http.HttpSession session, Blog blog)
session
- The session of the userpublic Blog getBlogFromSession(javax.servlet.http.HttpSession session, int idBlog)
session
- The session of the userpublic void removeBlogFromSession(javax.servlet.http.HttpSession session, Blog blog)
session
- The sessionpublic void removeBlogFromSession(javax.servlet.http.HttpSession session, int idBlog)
session
- The sessionCopyright © 2020 City of Paris. All rights reserved.