|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.seam.core.Manager
@Scope(value=EVENT) @Name(value="org.jboss.seam.core.manager") @Intercept(value=NEVER) public class Manager
The Seam conversation manager.
Field Summary | |
---|---|
static String |
CONVERSATION_ID
|
static String |
CONVERSATION_IS_LONG_RUNNING
|
static String |
PAGEFLOW_COUNTER
|
static String |
PAGEFLOW_NAME
|
static String |
PAGEFLOW_NODE_NAME
|
Constructor Summary | |
---|---|
Manager()
|
Method Summary | |
---|---|
String |
appendConversationIdFromRedirectFilter(String url)
Called by the Seam Redirect Filter when a redirect is called. |
void |
beforeRedirect()
Temporarily promote a temporary conversation to a long running conversation for the duration of a browser redirect. |
void |
beginConversation(String initiator)
Promote a temporary conversation and make it long-running |
void |
beginNestedConversation(String ownerName)
Begin a new nested conversation. |
void |
conversationTimeout(javax.faces.context.ExternalContext externalContext)
Clean up timed-out conversations |
String |
encodeParameters(String url,
Map<String,Object> parameters)
|
void |
endConversation(boolean beforeRedirect)
Make a long-running conversation temporary. |
int |
getConcurrentRequestTimeout()
|
String |
getConversationIdParameter()
|
String |
getConversationIsLongRunningParameter()
|
int |
getConversationTimeout()
|
String |
getCurrentConversationDescription()
|
ConversationEntry |
getCurrentConversationEntry()
|
String |
getCurrentConversationId()
|
List<String> |
getCurrentConversationIdStack()
|
Object |
getCurrentConversationInitiator()
Get the name of the component that started the current conversation. |
String |
getCurrentConversationViewId()
|
String |
getParentConversationId()
|
String |
getParentConversationViewId()
|
String |
getRootConversationId()
|
void |
handleConversationPropagation(Map parameters)
Look for a conversation propagation style in the request parameters and begin, nest or join the conversation, as necessary. |
void |
initializeTemporaryConversation()
Initialize a new temporary conversation context, and assign it a conversation id. |
static Manager |
instance()
|
void |
interpolateAndRedirect(String url)
|
boolean |
isConversationAlreadyStored()
|
boolean |
isLongRunningConversation()
|
boolean |
isNestedConversation()
|
boolean |
isReallyLongRunningConversation()
|
boolean |
isUpdateModelValuesCalled()
|
void |
leaveConversation()
Leave the scope of the current conversation, leaving it completely intact. |
void |
prepareBackswitch(javax.faces.event.PhaseEvent event)
If a page description is defined, remember the description and view id for the current page, to support conversation switching. |
void |
redirect(String viewId)
Redirect to the given view id, encoding the conversation id into the request URL. |
void |
redirect(String viewId,
Map<String,Object> parameters,
boolean includeConversationId)
Redirect to the given view id, after encoding parameters and conversation id into the request URL. |
void |
redirectToNoConversationView()
|
boolean |
restoreAndLockConversation(String storedConversationId,
boolean isLongRunningConversation)
Initialize the request conversation context, given the conversation id. |
boolean |
restoreConversation(Map parameters)
Initialize the request conversation context, taking into account conversation propagation style, and any conversation id passed as a request parameter or in the PAGE context. |
void |
setConcurrentRequestTimeout(int requestWait)
|
void |
setConversationIdParameter(String conversationIdParameter)
|
void |
setConversationIsLongRunningParameter(String conversationIdLongRunning)
|
void |
setConversationTimeout(int conversationTimeout)
|
void |
setCurrentConversationId(String id)
Only public for the unit tests! |
void |
setLongRunningConversation(boolean isLongRunningConversation)
|
void |
setUpdateModelValuesCalled(boolean updateModelValuesCalled)
|
void |
storeConversation(ContextAdaptor session,
Object response)
Flush the server-side conversation context to the session and write the conversation id and pageflow info to the response if we have a long running conversation, or discard the state of a temporary conversation. |
boolean |
swapConversation(String id)
Switch to another long-running conversation. |
void |
unlockConversation()
|
void |
updateCurrentConversationId(String id)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONVERSATION_ID
public static final String CONVERSATION_IS_LONG_RUNNING
public static final String PAGEFLOW_COUNTER
public static final String PAGEFLOW_NODE_NAME
public static final String PAGEFLOW_NAME
Constructor Detail |
---|
public Manager()
Method Detail |
---|
public String getCurrentConversationId()
public void setCurrentConversationId(String id)
id
- public void updateCurrentConversationId(String id)
public Object getCurrentConversationInitiator()
public List<String> getCurrentConversationIdStack()
public String getCurrentConversationDescription()
public String getCurrentConversationViewId()
public String getParentConversationViewId()
public String getParentConversationId()
public String getRootConversationId()
public boolean isLongRunningConversation()
public boolean isReallyLongRunningConversation()
public boolean isNestedConversation()
public void setLongRunningConversation(boolean isLongRunningConversation)
public static Manager instance()
public void conversationTimeout(javax.faces.context.ExternalContext externalContext)
public void storeConversation(ContextAdaptor session, Object response)
public void unlockConversation()
public boolean restoreConversation(Map parameters)
parameters
- the request parameters
public void handleConversationPropagation(Map parameters)
parameters
- the request parameterspublic boolean restoreAndLockConversation(String storedConversationId, boolean isLongRunningConversation)
public void initializeTemporaryConversation()
public void beginConversation(String initiator)
initiator
- the name of the component starting the conversation.public void endConversation(boolean beforeRedirect)
public void beginNestedConversation(String ownerName)
ownerName
- the name of the component starting the conversationpublic ConversationEntry getCurrentConversationEntry()
public void leaveConversation()
public boolean swapConversation(String id)
id
- the id of the conversation to switch to
public int getConversationTimeout()
public void setConversationTimeout(int conversationTimeout)
public void beforeRedirect()
public void redirect(String viewId)
viewId
- the JSF view idpublic void interpolateAndRedirect(String url)
public String encodeParameters(String url, Map<String,Object> parameters)
public void redirect(String viewId, Map<String,Object> parameters, boolean includeConversationId)
viewId
- the JSF view idparameters
- request parameters to be encoded (possibly null)includeConversationId
- determines if the conversation id is to be encodedpublic String appendConversationIdFromRedirectFilter(String url)
url
- the requested URL
public void prepareBackswitch(javax.faces.event.PhaseEvent event)
public String getConversationIdParameter()
public void setConversationIdParameter(String conversationIdParameter)
public String getConversationIsLongRunningParameter()
public void setConversationIsLongRunningParameter(String conversationIdLongRunning)
public void redirectToNoConversationView()
public boolean isConversationAlreadyStored()
public boolean isUpdateModelValuesCalled()
public void setUpdateModelValuesCalled(boolean updateModelValuesCalled)
public int getConcurrentRequestTimeout()
public void setConcurrentRequestTimeout(int requestWait)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |