com.atlassian.jira.web.action.util.portal
Class PortalPageSessionUtil

java.lang.Object
  extended by com.atlassian.jira.web.action.util.portal.PortalPageSessionUtil

public class PortalPageSessionUtil
extends java.lang.Object

Class that abstracts away the details of where the PortalPage id is stored in the session.

Since:
v3.13

Method Summary
static java.lang.Long getPageIdFromSession(java.util.Map session)
          Return the current pageId as currently stored in the session.
static boolean isConfiguringFromSession(java.util.Map session)
           
static void resetPortalPageSessionState(java.util.Map session)
          Called to reset the PortalPage information that is contained within the session
static void setConfiguringInSession(java.util.Map session, boolean configuring)
           
static void setPageIdInSession(java.util.Map session, java.lang.Long portalPageId)
          Sets the passed pageId in the session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPageIdFromSession

public static java.lang.Long getPageIdFromSession(java.util.Map session)
Return the current pageId as currently stored in the session.

Parameters:
session - the session to get pageId from.
Returns:
the pageId in the session or null if it does not exist.

setPageIdInSession

public static void setPageIdInSession(java.util.Map session,
                                      java.lang.Long portalPageId)
Sets the passed pageId in the session.

Parameters:
session - the HTTP session map
portalPageId - the id to add to the session.

resetPortalPageSessionState

public static void resetPortalPageSessionState(java.util.Map session)
Called to reset the PortalPage information that is contained within the session

Parameters:
session - the Session map to clear

isConfiguringFromSession

public static boolean isConfiguringFromSession(java.util.Map session)

setConfiguringInSession

public static void setConfiguringInSession(java.util.Map session,
                                           boolean configuring)


Copyright © 2002-2010 Atlassian. All Rights Reserved.