@SessionScoped @Named(value="windowContextManager") public class EditableWindowContextManagerProxy extends Object implements EditableWindowContextManager
AUTOMATED_ENTRY_POINT_PARAMETER_KEY, WINDOW_CONTEXT_ID_PARAMETER_KEY| Modifier | Constructor and Description |
|---|---|
protected |
EditableWindowContextManagerProxy() |
|
EditableWindowContextManagerProxy(WindowContextConfig windowContextConfig,
ConversationConfig conversationConfig,
javax.enterprise.inject.spi.BeanManager beanManager)
Workaround for a producer-method which produces a session-scoped instance.
|
| 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 windowContext)
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) |
boolean |
isWindowContextActive(String windowContextId)
Evaluates if the
WindowContext with the
given window-id is currently active |
protected void |
preDestroy() |
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 EditableWindowContextManagerProxy()
@Inject public EditableWindowContextManagerProxy(WindowContextConfig windowContextConfig, ConversationConfig conversationConfig, javax.enterprise.inject.spi.BeanManager beanManager)
windowContextConfig - current windowContextConfigconversationConfig - current conversationConfigbeanManager - current beanManager@PreDestroy protected void preDestroy()
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 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 windowContext)
WindowContextcloseWindowContext in interface EditableWindowContextManagerwindowContext - 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 WindowContext getCurrentWindowContext()
getCurrentWindowContext in interface WindowContextManagerpublic WindowContext getWindowContext(String windowContextId)
getWindowContext in interface WindowContextManagerpublic 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.