BEA Systems, Inc.

com.beasys.commerce.foundation.flow.helper
Class FlowManagerHelper

java.lang.Object
  |
  +--com.beasys.commerce.foundation.flow.helper.FlowManagerHelper

public class FlowManagerHelper
extends java.lang.Object
implements FlowManagerConstants

Helper for scoping session values per application.


Fields inherited from interface com.beasys.commerce.foundation.flow.FlowManagerConstants
APPLICATION_FLOW_MANAGER, APPLICATION_RESET_FLAG, PERIOD
 
Constructor Summary
FlowManagerHelper()
           
 
Method Summary
protected static java.lang.String fixupName(java.lang.String aName, javax.servlet.ServletRequest aRequest)
          Fixup name.
static java.lang.String getApplicationFlowManager(javax.servlet.ServletRequest aRequest)
          Get application flow manager.
static java.lang.String getApplicationFlowManagerNoContext(javax.servlet.ServletRequest aRequest)
          Get application flow manager no context.
static java.lang.Object getCachedValue(java.lang.String aName, javax.servlet.http.HttpServletRequest aRequest, boolean isScoped)
          Get cached value.
static java.lang.Object getGlobalCachedValue(java.lang.String aName, javax.servlet.http.HttpServletRequest aRequest, boolean isScoped)
          Get cached value.
static java.lang.Object getSessionAttribute(java.lang.String aName, javax.servlet.http.HttpServletRequest aRequest)
          Get a scoped session attribute.
static void removeCachedValue(java.lang.String aName, javax.servlet.http.HttpServletRequest aRequest, boolean isScoped)
          Remove cached value.
static void removeGlobalCachedValue(java.lang.String aName, javax.servlet.http.HttpServletRequest aRequest, boolean isScoped)
          Remove cached value.
static void removeSessionAttribute(java.lang.String aName, javax.servlet.http.HttpServletRequest aRequest)
          Remove session attribute.
static void setCachedValue(java.lang.String aName, java.lang.Object aValue, javax.servlet.http.HttpServletRequest aRequest, boolean isScoped)
          Set cached value.
static void setGlobalCachedValue(java.lang.String aName, java.lang.Object aValue, javax.servlet.http.HttpServletRequest aRequest, boolean isScoped)
          Set cached value.
static void setSessionAttribute(java.lang.String aName, java.lang.Object aValue, javax.servlet.http.HttpServletRequest aRequest)
          Set a scoped session attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowManagerHelper

public FlowManagerHelper()
Method Detail

getApplicationFlowManager

public static java.lang.String getApplicationFlowManager(javax.servlet.ServletRequest aRequest)
Get application flow manager.
Parameters:
aRequest -  
Returns:
String

getApplicationFlowManagerNoContext

public static java.lang.String getApplicationFlowManagerNoContext(javax.servlet.ServletRequest aRequest)
Get application flow manager no context.
Parameters:
aRequest -  
Returns:
String

fixupName

protected static java.lang.String fixupName(java.lang.String aName,
                                            javax.servlet.ServletRequest aRequest)
Fixup name.
Parameters:
aName -  
aRequest -  
Returns:
String

setSessionAttribute

public static void setSessionAttribute(java.lang.String aName,
                                       java.lang.Object aValue,
                                       javax.servlet.http.HttpServletRequest aRequest)
Set a scoped session attribute.
Parameters:
aName -  
aValue -  
aRequest -  

getSessionAttribute

public static java.lang.Object getSessionAttribute(java.lang.String aName,
                                                   javax.servlet.http.HttpServletRequest aRequest)
Get a scoped session attribute.
Parameters:
aName -  
aRequest -  
Returns:
Object

removeSessionAttribute

public static void removeSessionAttribute(java.lang.String aName,
                                          javax.servlet.http.HttpServletRequest aRequest)
Remove session attribute.
Parameters:
aName -  
aRequest -  
Returns:
Object

getCachedValue

public static java.lang.Object getCachedValue(java.lang.String aName,
                                              javax.servlet.http.HttpServletRequest aRequest,
                                              boolean isScoped)
Get cached value.
Parameters:
aName -  
aRequest -  
isScoped - if true, will scope the value to the application
Returns:
Object

setCachedValue

public static void setCachedValue(java.lang.String aName,
                                  java.lang.Object aValue,
                                  javax.servlet.http.HttpServletRequest aRequest,
                                  boolean isScoped)
Set cached value.
Parameters:
aName -  
aValue -  
aRequest -  
isScoped - if true, will scope the value to the application

removeCachedValue

public static void removeCachedValue(java.lang.String aName,
                                     javax.servlet.http.HttpServletRequest aRequest,
                                     boolean isScoped)
Remove cached value.
Parameters:
aName -  
aRequest -  
isScoped - if true, will scope the value to the application

getGlobalCachedValue

public static java.lang.Object getGlobalCachedValue(java.lang.String aName,
                                                    javax.servlet.http.HttpServletRequest aRequest,
                                                    boolean isScoped)
Get cached value.
Parameters:
aName -  
aRequest -  
isScoped - if true, will scope the value to the application
Returns:
Object

setGlobalCachedValue

public static void setGlobalCachedValue(java.lang.String aName,
                                        java.lang.Object aValue,
                                        javax.servlet.http.HttpServletRequest aRequest,
                                        boolean isScoped)
Set cached value.
Parameters:
aName -  
aValue -  
aRequest -  
isScoped - if true, will scope the value to the application

removeGlobalCachedValue

public static void removeGlobalCachedValue(java.lang.String aName,
                                           javax.servlet.http.HttpServletRequest aRequest,
                                           boolean isScoped)
Remove cached value.
Parameters:
aName -  
aRequest -  
isScoped - if true, will scope the value to the application

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved