Class HttpSessionPageFlowStore
- java.lang.Object
-
- org.onehippo.forge.pageflow.core.rt.impl.HttpSessionPageFlowStore
-
- All Implemented Interfaces:
PageFlowStore
public class HttpSessionPageFlowStore extends Object implements PageFlowStore
-
-
Constructor Summary
Constructors Constructor Description HttpSessionPageFlowStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PageFlow
getPageFlow(javax.servlet.http.HttpServletRequest request, String flowId)
boolean
removePageFlow(javax.servlet.http.HttpServletRequest request, String flowId)
Remove the associatedpageFlow
from the backend storage by theflowId
.boolean
storePageFlow(javax.servlet.http.HttpServletRequest request, String flowId, PageFlow pageFlow)
Store thepageFlow
into the backend storage by theflowId
.
-
-
-
Method Detail
-
getPageFlow
public PageFlow getPageFlow(javax.servlet.http.HttpServletRequest request, String flowId) throws PageFlowException
Description copied from interface:PageFlowStore
Find and retrieve thePageFlow
instance by the identifier of thePageFlow
(flowId
) from the backend storage. Return null if not found.- Specified by:
getPageFlow
in interfacePageFlowStore
- Parameters:
request
-HttpServletRequest
objectflowId
- the identifier of thePageFlow
- Returns:
- the
PageFlow
instance by the identifier of thePageFlow
(flowId
) from the backend storage, or null if not found - Throws:
PageFlowException
- if any exception occurs
-
storePageFlow
public boolean storePageFlow(javax.servlet.http.HttpServletRequest request, String flowId, PageFlow pageFlow) throws PageFlowException
Description copied from interface:PageFlowStore
Store thepageFlow
into the backend storage by theflowId
.- Specified by:
storePageFlow
in interfacePageFlowStore
- Parameters:
request
-HttpServletRequest
objectflowId
- the identifier of thePageFlow
pageFlow
-PageFlow
instance- Returns:
- true if stored
- Throws:
PageFlowException
- if any exception occurs
-
removePageFlow
public boolean removePageFlow(javax.servlet.http.HttpServletRequest request, String flowId) throws PageFlowException
Description copied from interface:PageFlowStore
Remove the associatedpageFlow
from the backend storage by theflowId
.- Specified by:
removePageFlow
in interfacePageFlowStore
- Parameters:
request
-HttpServletRequest
objectflowId
- the identifier of thePageFlow
- Returns:
- true if removed
- Throws:
PageFlowException
- if any exception occurs
-
-