|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ideo.sweetdevria.page.PageManager
public class PageManager
This class provides an easy and fast interaction easing the management of the pages. The pages are related to a user, defined by its session.
SessionRegistry
,
PageRegistry
Constructor Summary | |
---|---|
PageManager()
|
Method Summary | |
---|---|
static void |
cleanPages(javax.servlet.http.HttpSession _session)
|
static java.util.Map |
createPages(javax.servlet.http.HttpSession _session)
|
static IModel |
getModel(javax.servlet.http.HttpServletRequest _request,
java.lang.String modelId)
|
static IModel |
getModel(javax.servlet.http.HttpSession _session,
java.lang.String _idPage,
java.lang.String modelId)
|
static Page |
getPage(javax.servlet.http.HttpServletRequest _request)
Return the page corresponding to the request given in parameter |
static Page |
getPage(javax.servlet.http.HttpSession _session)
Return the current page corresponding to the session given in parameter |
static Page |
getPage(javax.servlet.http.HttpSession _session,
java.lang.String _idPage)
Return the page corresponding to the session given in parameter and this specific id |
static void |
removePage(javax.servlet.http.HttpSession _session,
java.lang.String _idPage)
|
static void |
savePages(javax.servlet.http.HttpSession _session,
java.util.Map _pages)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageManager()
Method Detail |
---|
public static void cleanPages(javax.servlet.http.HttpSession _session)
_session
- public static Page getPage(javax.servlet.http.HttpSession _session)
_session
- the session from which the page will be extracted
public static Page getPage(javax.servlet.http.HttpServletRequest _request)
_request
- the request from which the page will be extracted
public static IModel getModel(javax.servlet.http.HttpSession _session, java.lang.String _idPage, java.lang.String modelId)
public static IModel getModel(javax.servlet.http.HttpServletRequest _request, java.lang.String modelId)
public static Page getPage(javax.servlet.http.HttpSession _session, java.lang.String _idPage)
_session
- the session from which the page will be extracted_idPage
- the id corresponding to the page to get
java.lang.NullPointerException
- if one of the arguments is nullpublic static void removePage(javax.servlet.http.HttpSession _session, java.lang.String _idPage)
public static java.util.Map createPages(javax.servlet.http.HttpSession _session)
public static void savePages(javax.servlet.http.HttpSession _session, java.util.Map _pages)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |