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 Object

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

Since:
v3.13

Method Summary
static Long getPageIdFromSession(Map session)
          Return the current pageId as currently stored in the session.
static boolean isConfiguringFromSession(Map session)
           
static void resetPortalPageSessionState(Map session)
          Called to reset the PortalPage information that is contained within the session
static void setConfiguringInSession(Map session, boolean configuring)
           
static void setPageIdInSession(Map session, 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 Long getPageIdFromSession(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(Map session,
                                      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(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(Map session)

setConfiguringInSession

public static void setConfiguringInSession(Map session,
                                           boolean configuring)


Copyright © 2002-2009 Atlassian. All Rights Reserved.