|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.EditableWindowContextManagerProxy
@SessionScoped @Named(value="windowContextManager") public class EditableWindowContextManagerProxy
Field Summary |
---|
Fields inherited from interface org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.spi.WindowContextManager |
---|
AUTOMATED_ENTRY_POINT_PARAMETER_KEY, WINDOW_CONTEXT_ID_PARAMETER_KEY |
Constructor Summary | |
---|---|
protected |
EditableWindowContextManagerProxy()
|
|
EditableWindowContextManagerProxy(WindowContextConfig windowContextConfig,
ConversationConfig conversationConfig,
javax.enterprise.inject.spi.BeanManager beanManager)
Workaround for a producer-method which produces a session-scoped instance. |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected EditableWindowContextManagerProxy()
@Inject public EditableWindowContextManagerProxy(WindowContextConfig windowContextConfig, ConversationConfig conversationConfig, javax.enterprise.inject.spi.BeanManager beanManager)
windowContextConfig
- current windowContextConfigconversationConfig
- current conversationConfigbeanManager
- current beanManagerMethod Detail |
---|
@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-id
public boolean activateWindowContext(EditableWindowContext windowContext)
WindowContext
activateWindowContext
in interface EditableWindowContextManager
windowContext
- window-context which has to be activated
public void restartConversations()
WindowContext
restartConversations
in interface EditableWindowContextManager
public void restartConversations(String windowContextId)
WindowContext
with the given window-id
restartConversations
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-id
closeWindowContext
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()
getCurrentWindowContext
in interface WindowContextManager
public WindowContext getWindowContext(String windowContextId)
getWindowContext
in interface WindowContextManager
public boolean isWindowContextActive(String windowContextId)
WindowContext
with the
given window-id is currently active
isWindowContextActive
in interface EditableWindowContextManager
windowContextId
- current window-id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |