@SessionScoped @Named(value="windowContextManager") public class EditableWindowContextManagerProxy extends Object implements EditableWindowContextManager
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()
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) |
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 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 windowContext)
WindowContext
closeWindowContext
in interface EditableWindowContextManager
windowContext
- 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 WindowContext getCurrentWindowContext()
WindowContext
getCurrentWindowContext
in interface org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.spi.WindowContextManager
public WindowContext getWindowContext(String windowContextId)
WindowContext
for the given window-idgetWindowContext
in interface org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.spi.WindowContextManager
windowContextId
- window-idpublic 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.