@Typed public class DefaultWindowContextManager extends Object implements EditableWindowContextManager
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultWindowContextManager(WindowContextConfig windowContextConfig,
ConversationConfig conversationConfig,
ProjectStage projectStage,
javax.enterprise.inject.spi.BeanManager beanManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
activateWindowContext(EditableWindowContext windowContext)
Activates the given
WindowContext |
boolean |
activateWindowContext(String windowContextId)
Activates the
WindowContext with has
the given window-id. |
void |
closeAllWindowContexts()
Closes all
WindowContext of the current
user(-session) |
void |
closeCurrentWindowContext()
Closes all conversations of the current
WindowContext |
void |
closeWindowContext(EditableWindowContext editableWindowContext)
Closes all conversations of the given
WindowContext |
void |
closeWindowContext(String windowContextId)
Closes all conversations of the
WindowContext
with the given window-id |
WindowContext |
getCurrentWindowContext()
Resolves the current
WindowContext |
WindowContext |
getWindowContext(String windowContextId)
Resolves the
WindowContext for the given window-id |
Collection<EditableWindowContext> |
getWindowContexts()
Exposes all
WindowContext instances for
the current user(-session) |
protected void |
init() |
boolean |
isWindowContextActive(String windowContextId)
Evaluates if the
WindowContext with the
given window-id is currently active |
void |
restartConversations()
Restarts all conversations of the current
WindowContext |
void |
restartConversations(EditableWindowContext windowContext)
Restarts all conversations of the given
WindowContext |
void |
restartConversations(String windowContextId)
Restarts all conversations of the
WindowContext
with the given window-id |
protected DefaultWindowContextManager(WindowContextConfig windowContextConfig, ConversationConfig conversationConfig, ProjectStage projectStage, javax.enterprise.inject.spi.BeanManager beanManager)
protected void init()
public WindowContext getCurrentWindowContext()
WindowContextgetCurrentWindowContext in interface org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.spi.WindowContextManagerpublic WindowContext getWindowContext(String windowContextId)
WindowContext for the given window-idgetWindowContext in interface org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.spi.WindowContextManagerwindowContextId - window-idpublic boolean activateWindowContext(String windowContextId)
WindowContext with has
the given window-id. If there is no
WindowContext
which has the given id a new context will be created automatically.activateWindowContext in interface EditableWindowContextManagerwindowContextId - window-idpublic boolean activateWindowContext(EditableWindowContext windowContext)
WindowContextactivateWindowContext in interface EditableWindowContextManagerwindowContext - window-context which has to be activatedpublic void restartConversations()
WindowContextrestartConversations in interface EditableWindowContextManagerpublic void restartConversations(String windowContextId)
WindowContext
with the given window-idrestartConversations in interface EditableWindowContextManagerwindowContextId - current window-idpublic void restartConversations(EditableWindowContext windowContext)
WindowContextrestartConversations in interface EditableWindowContextManagerwindowContext - window-context which will be restarted (the conversations of it)public void closeCurrentWindowContext()
WindowContextcloseCurrentWindowContext in interface EditableWindowContextManagerpublic void closeWindowContext(String windowContextId)
WindowContext
with the given window-idcloseWindowContext in interface EditableWindowContextManagerwindowContextId - current window-idpublic void closeWindowContext(EditableWindowContext editableWindowContext)
WindowContextcloseWindowContext in interface EditableWindowContextManagereditableWindowContext - window-context which will be closed (the conversations of it)public Collection<EditableWindowContext> getWindowContexts()
WindowContext instances for
the current user(-session)getWindowContexts in interface EditableWindowContextManagerpublic void closeAllWindowContexts()
WindowContext of the current
user(-session)closeAllWindowContexts in interface EditableWindowContextManagerpublic boolean isWindowContextActive(String windowContextId)
WindowContext with the
given window-id is currently activeisWindowContextActive in interface EditableWindowContextManagerwindowContextId - current window-idCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.