|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.dataengine.NavigationManager
Field Summary | |
static String |
className
Class name. |
Constructor Summary | |
NavigationManager()
|
Method Summary | |
static void |
expireOldPages(javax.servlet.http.HttpServletRequest request)
Expire any old pages. |
static NavigationGroup |
getGroup(String sessionId,
String requestId,
String groupId,
javax.servlet.http.HttpServletRequest request)
Gets this navigation group for the specified ids. |
static String |
getGroupId(boolean create,
javax.servlet.http.HttpServletRequest request)
Get the current group id from the request. |
static int |
getGroupIdAsInt(boolean create,
javax.servlet.http.HttpServletRequest request)
Get the current group id from the request. |
static List |
getNavigationKeys(String listKey,
javax.servlet.http.HttpServletRequest request)
Gets a list of keys for navigation objects stored in navigation that have the same navigation list key as the given key. |
static int |
getNextGroupIdAsInt(javax.servlet.http.HttpServletRequest request)
Gets the next group id. |
static int |
getNextPageIdAsInt(javax.servlet.http.HttpServletRequest request)
Gets the next page id. |
static int |
getNextRequestIdAsInt(javax.servlet.http.HttpServletRequest request)
Gets the next group id. |
static String |
getNextSessionId(javax.servlet.http.HttpServletRequest request)
Gets the next group id. |
static NavigationPage |
getPage(String sessionId,
String requestId,
String groupId,
String pageId,
javax.servlet.http.HttpServletRequest request)
Gets this navigation group for the specified ids. |
static String |
getPageId(boolean create,
javax.servlet.http.HttpServletRequest request)
Get the current page id from the request. |
static int |
getPageIdAsInt(boolean create,
javax.servlet.http.HttpServletRequest request)
Get the current page id from the request. |
static int |
getPreviousGroupId(javax.servlet.http.HttpServletRequest request)
Get the group id from the previous request. |
static int |
getPreviousPageId(javax.servlet.http.HttpServletRequest request)
Get the page id from the previous request. |
static int |
getPreviousRequestId(javax.servlet.http.HttpServletRequest request)
Get the request id from the previous request. |
static NavigationRequest |
getRequest(String sessionId,
String requestId,
javax.servlet.http.HttpServletRequest request)
Gets this navigation request for the specified ids. |
static String |
getRequestId(boolean create,
javax.servlet.http.HttpServletRequest request)
Get the current request id from the request. |
static int |
getRequestIdAsInt(boolean create,
javax.servlet.http.HttpServletRequest request)
Get the current request id from the request. |
static NavigationSession |
getSession(String sessionId,
javax.servlet.http.HttpServletRequest request)
Gets this navigation session for the specified id. |
static String |
getSessionId(boolean create,
javax.servlet.http.HttpServletRequest request)
Gets the session id for the given request to use for getting and setting session attributes. |
static void |
initializeNavigationIds(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Initializes the navigation state to the proper session, request, group, and page ids. |
static boolean |
isNewGroupId(javax.servlet.http.HttpServletRequest request)
Test if a new group is desired. |
static boolean |
isNewRequestId(javax.servlet.http.HttpServletRequest request)
Test if a new request is desired. |
static boolean |
isNewSessionId(javax.servlet.http.HttpServletRequest request)
Test if a new session is desired. |
static boolean |
isPageExpired(javax.servlet.http.HttpServletRequest request)
Check if a page is expired. |
static void |
removeNavigationKey(INavigationObject object,
javax.servlet.http.HttpServletRequest request)
Removes the navigation key from the given navigation object. |
static void |
resetGroupId(javax.servlet.http.HttpServletRequest request)
Resets the group id for the given request used to get and set attributes in the request's session and maintain naviation state. |
static void |
resetPageId(javax.servlet.http.HttpServletRequest request)
Resets the page id for the given request used to get and set attributes in the request's session and maintain naviation state. |
static void |
resetRequestId(javax.servlet.http.HttpServletRequest request)
Resets the request id for the given request used to get and set attributes in the request and maintain state navigation. |
static void |
resetSessionId(javax.servlet.http.HttpServletRequest request)
Reset the session id for the given request used to get and set attributes in the request's session and maintain naviation state. |
static boolean |
saveState(javax.servlet.http.HttpServletRequest request)
Saves the current state of navigation. |
static void |
setGroupId(int id,
javax.servlet.http.HttpServletRequest request)
Sets the group id. |
static void |
setGroupId(String id,
javax.servlet.http.HttpServletRequest request)
Sets the group id. |
static void |
setNavigationKey(String key,
INavigationObject object,
javax.servlet.http.HttpServletRequest request)
Sets the navigation key on the given navigation object. |
static void |
setNewGroup(javax.servlet.http.HttpServletRequest request)
Sets a flag in the request that a new group is starting. |
static void |
setNewRequest(javax.servlet.http.HttpServletRequest request)
Sets a flag in the request that a new request is starting. |
static void |
setNewSession(javax.servlet.http.HttpServletRequest request)
Sets a flag in the request that a new session is starting. |
static void |
setPageId(int id,
javax.servlet.http.HttpServletRequest request)
Sets the page id. |
static void |
setPageId(String id,
javax.servlet.http.HttpServletRequest request)
Sets the request id. |
static void |
setRequestId(int id,
javax.servlet.http.HttpServletRequest request)
Sets the request id. |
static void |
setRequestId(String id,
javax.servlet.http.HttpServletRequest request)
Sets the request id. |
static void |
setSessionId(String id,
javax.servlet.http.HttpServletRequest request)
Sets the session id. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String className
Constructor Detail |
public NavigationManager()
Method Detail |
public static void expireOldPages(javax.servlet.http.HttpServletRequest request)
public static NavigationGroup getGroup(String sessionId, String requestId, String groupId, javax.servlet.http.HttpServletRequest request)
public static String getGroupId(boolean create, javax.servlet.http.HttpServletRequest request)
public static int getGroupIdAsInt(boolean create, javax.servlet.http.HttpServletRequest request)
public static List getNavigationKeys(String listKey, javax.servlet.http.HttpServletRequest request)
public static int getNextGroupIdAsInt(javax.servlet.http.HttpServletRequest request)
request
- the HttpServletRequest object that containing the client's requestpublic static int getNextPageIdAsInt(javax.servlet.http.HttpServletRequest request)
request
- the HttpServletRequest object that containing the client's requestpublic static int getNextRequestIdAsInt(javax.servlet.http.HttpServletRequest request)
request
- the HttpServletRequest object that containing the client's requestpublic static String getNextSessionId(javax.servlet.http.HttpServletRequest request)
request
- the HttpServletRequest object that containing the client's requestpublic static NavigationPage getPage(String sessionId, String requestId, String groupId, String pageId, javax.servlet.http.HttpServletRequest request)
public static String getPageId(boolean create, javax.servlet.http.HttpServletRequest request)
public static int getPageIdAsInt(boolean create, javax.servlet.http.HttpServletRequest request)
public static int getPreviousGroupId(javax.servlet.http.HttpServletRequest request)
public static int getPreviousPageId(javax.servlet.http.HttpServletRequest request)
public static int getPreviousRequestId(javax.servlet.http.HttpServletRequest request)
public static NavigationRequest getRequest(String sessionId, String requestId, javax.servlet.http.HttpServletRequest request)
public static String getRequestId(boolean create, javax.servlet.http.HttpServletRequest request)
public static int getRequestIdAsInt(boolean create, javax.servlet.http.HttpServletRequest request)
public static NavigationSession getSession(String sessionId, javax.servlet.http.HttpServletRequest request)
request
- the HttpServletRequest object that contains the
request the client made of the servletpublic static String getSessionId(boolean create, javax.servlet.http.HttpServletRequest request)
create
- whether or not the session id should be created if it doesn't existrequest
- HttpServletRequest
public static void initializeNavigationIds(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public static boolean isNewGroupId(javax.servlet.http.HttpServletRequest request)
request
- the HttpServletRequest object that containing the client's requestpublic static boolean isNewRequestId(javax.servlet.http.HttpServletRequest request)
request
- the HttpServletRequest object that containing the client's requestpublic static boolean isNewSessionId(javax.servlet.http.HttpServletRequest request)
request
- the HttpServletRequest object that containing the client's requestpublic static boolean isPageExpired(javax.servlet.http.HttpServletRequest request)
public static void removeNavigationKey(INavigationObject object, javax.servlet.http.HttpServletRequest request)
public static void resetGroupId(javax.servlet.http.HttpServletRequest request)
request
- HttpServletRequestpublic static void resetPageId(javax.servlet.http.HttpServletRequest request)
request
- HttpServletRequestpublic static void resetRequestId(javax.servlet.http.HttpServletRequest request)
request
- HttpServletRequestpublic static void resetSessionId(javax.servlet.http.HttpServletRequest request)
request
- HttpServletRequestpublic static boolean saveState(javax.servlet.http.HttpServletRequest request)
request
- the HttpServletRequest object that contains the
request the client made of the servlet
public static void setGroupId(int id, javax.servlet.http.HttpServletRequest request)
public static void setGroupId(String id, javax.servlet.http.HttpServletRequest request)
public static void setNavigationKey(String key, INavigationObject object, javax.servlet.http.HttpServletRequest request)
public static void setNewGroup(javax.servlet.http.HttpServletRequest request)
request
- the HttpServletRequest object that containing the client's requestpublic static void setNewRequest(javax.servlet.http.HttpServletRequest request)
request
- the HttpServletRequest object that containing the client's requestpublic static void setNewSession(javax.servlet.http.HttpServletRequest request)
request
- the HttpServletRequest object that containing the client's requestpublic static void setPageId(int id, javax.servlet.http.HttpServletRequest request)
public static void setPageId(String id, javax.servlet.http.HttpServletRequest request)
public static void setRequestId(int id, javax.servlet.http.HttpServletRequest request)
public static void setRequestId(String id, javax.servlet.http.HttpServletRequest request)
public static void setSessionId(String id, javax.servlet.http.HttpServletRequest request)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |