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 nIdBlog)
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 userblog - public Blog getBlogFromSession(javax.servlet.http.HttpSession session, int nIdBlog)
session - The session of the usernIdBlog - public void removeBlogFromSession(javax.servlet.http.HttpSession session,
Blog blog)
session - The sessionblog - public void removeBlogFromSession(javax.servlet.http.HttpSession session,
int idBlog)
session - The sessionidBlog - Copyright © 2020 City of Paris. All rights reserved.