@Typed public class DefaultWindowContextManager extends Object implements EditableWindowContextManager
AUTOMATED_ENTRY_POINT_PARAMETER_KEY, WINDOW_CONTEXT_ID_PARAMETER_KEY
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() |
WindowContext |
getWindowContext(String windowContextId) |
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()
getCurrentWindowContext
in interface WindowContextManager
public WindowContext getWindowContext(String windowContextId)
getWindowContext
in interface WindowContextManager
public 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 EditableWindowContextManager
windowContextId
- window-idpublic boolean activateWindowContext(EditableWindowContext windowContext)
WindowContext
activateWindowContext
in interface EditableWindowContextManager
windowContext
- window-context which has to be activatedpublic void restartConversations()
WindowContext
restartConversations
in interface EditableWindowContextManager
public void restartConversations(String windowContextId)
WindowContext
with the given window-idrestartConversations
in interface EditableWindowContextManager
windowContextId
- current window-idpublic void restartConversations(EditableWindowContext windowContext)
WindowContext
restartConversations
in interface EditableWindowContextManager
windowContext
- window-context which will be restarted (the conversations of it)public void closeCurrentWindowContext()
WindowContext
closeCurrentWindowContext
in interface EditableWindowContextManager
public void closeWindowContext(String windowContextId)
WindowContext
with the given window-idcloseWindowContext
in interface EditableWindowContextManager
windowContextId
- current window-idpublic void closeWindowContext(EditableWindowContext editableWindowContext)
WindowContext
closeWindowContext
in interface EditableWindowContextManager
editableWindowContext
- window-context which will be closed (the conversations of it)public Collection<EditableWindowContext> getWindowContexts()
WindowContext
instances for
the current user(-session)getWindowContexts
in interface EditableWindowContextManager
public void closeAllWindowContexts()
WindowContext
of the current
user(-session)closeAllWindowContexts
in interface EditableWindowContextManager
public boolean isWindowContextActive(String windowContextId)
WindowContext
with the
given window-id is currently activeisWindowContextActive
in interface EditableWindowContextManager
windowContextId
- current window-idCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.