Package com.webmethods.caf.faces.bean
Class BaseFacesSessionBean
java.lang.Object
com.webmethods.caf.faces.bean.BaseFacesBean
com.webmethods.caf.faces.bean.BaseFacesSessionBean
- All Implemented Interfaces:
IPageFlowScopeAdapter
,EventListener
,HttpSessionBindingListener
- Direct Known Subclasses:
BaseFacesPreferencesBean
,BaseViewBean
,BpmProcessContentProvider
,BpmProcessDefContentProvider
,BpmProcessStepContentProvider
,CommentsListProvider
,DelegationRuleDisplayProvider
,FunctionalPrivilegeProvider
,ProcessDisplayProvider
,RepositorySessionManager
,TaskAuditDisplayProvider
,TaskDisplayProvider
public abstract class BaseFacesSessionBean
extends BaseFacesBean
implements HttpSessionBindingListener, IPageFlowScopeAdapter
Base class for managed beans with session scope.
Clients must implement
release()
method to cleanup all allocated resources when
http session gets invalidated.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Boolean
The value of 'expireWithPageFlow' flag from faces-config.Fields inherited from class com.webmethods.caf.faces.bean.BaseFacesBean
DATA_BINDING_CLIENTS, EMPTY_RESOURCES, OUTCOME_ERROR, OUTCOME_OK, resourcesProviders
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the expireWithPageFlow flagprotected abstract void
release()
Override this method to release any resources associated with this session.void
setExpireWithPageFlow
(Boolean value) Sets the expireWithPageFlow flag.void
Implementation of theHttpSessionBindingListener
.void
Implementation of theHttpSessionBindingListener
.Methods inherited from class com.webmethods.caf.faces.bean.BaseFacesBean
createMethodBinding, createMethodExpression, createValueBinding, createValueExpression, createValueExpression, error, error, error, error, error, getBean, getFacesContext, getLocale, getResourceInputStream, getResources, getResourcesProvider, getRootCause, getStackTrace, getTreeAttribute, isUserInRole, log, log, log, putTreeAttribute, resetDataBindingClients, resolveDataBinding, resolveDataBinding, resolveExpression, setValue
-
Field Details
-
fExpireWithPageFlow
The value of 'expireWithPageFlow' flag from faces-config.NOTE: changing this value will have no effect after the managed bean has already been initialized and stored.
-
-
Constructor Details
-
BaseFacesSessionBean
public BaseFacesSessionBean()Default constructor
-
-
Method Details
-
getExpireWithPageFlow
Description copied from interface:IPageFlowScopeAdapter
Returns the value of the expireWithPageFlow flag- Specified by:
getExpireWithPageFlow
in interfaceIPageFlowScopeAdapter
- Returns:
-
setExpireWithPageFlow
Description copied from interface:IPageFlowScopeAdapter
Sets the expireWithPageFlow flag. NOTE: changing this value has no effect if the managed bean has already been initialized and stored.- Specified by:
setExpireWithPageFlow
in interfaceIPageFlowScopeAdapter
- Parameters:
value
- true or false
-
release
protected abstract void release()Override this method to release any resources associated with this session. Please note, the FacesContext is not valid for this function -
valueBound
Implementation of theHttpSessionBindingListener
. Does nothing by default.- Specified by:
valueBound
in interfaceHttpSessionBindingListener
-
valueUnbound
Implementation of theHttpSessionBindingListener
. Callsrelease()
- Specified by:
valueUnbound
in interfaceHttpSessionBindingListener
-